Triangle read by rows: T(n,k) is the number of ternary words of length n having k levels (n >= 1, 0 <= k <= n-1). A level is a pair of identical consecutive letters.

A120910

Triangle read by rows: T(n,k) is the number of ternary words of length n having k levels (n >= 1, 0 <= k <= n-1). A level is a pair of identical consecutive letters.

Terms

    a(0) =3a(1) =6a(2) =3a(3) =12a(4) =12a(5) =3a(6) =24a(7) =36a(8) =18a(9) =3a(10) =48a(11) =96a(12) =72a(13) =24a(14) =3a(15) =96a(16) =240a(17) =240a(18) =120a(19) =30a(20) =3a(21) =192a(22) =576a(23) =720a(24) =480a(25) =180a(26) =36a(27) =3a(28) =384a(29) =1344

External references