Triangle read by rows: T(n,k) is the number of permutations p of [n] in which the length of the longest initial segment avoiding the 123-, the 132- and the 321-pattern is equal to k.

A094067

Triangle read by rows: T(n,k) is the number of permutations p of [n] in which the length of the longest initial segment avoiding the 123-, the 132- and the 321-pattern is equal to k.

Terms

    a(0) =1a(1) =0a(2) =2a(3) =0a(4) =3a(5) =3a(6) =0a(7) =12a(8) =7a(9) =5a(10) =0a(11) =60a(12) =35a(13) =17a(14) =8a(15) =0a(16) =360a(17) =210a(18) =102a(19) =35a(20) =13a(21) =0a(22) =2520a(23) =1470a(24) =714a(25) =245a(26) =70a(27) =21a(28) =0a(29) =20160

External references