Triangle read by rows: T(n,k) is the number of ternary words of length n on {0,1,2} that have k inversions (n >= 0, k >= 0).

A129529

Triangle read by rows: T(n,k) is the number of ternary words of length n on {0,1,2} that have k inversions (n >= 0, k >= 0).

Terms

    a(0) =1a(1) =3a(2) =6a(3) =3a(4) =10a(5) =8a(6) =8a(7) =1a(8) =15a(9) =15a(10) =21a(11) =18a(12) =9a(13) =3a(14) =21a(15) =24a(16) =39a(17) =45a(18) =48a(19) =30a(20) =24a(21) =9a(22) =3a(23) =28a(24) =35a(25) =62a(26) =82a(27) =107a(28) =108a(29) =101

External references