Triangle read by rows: T(n,k) is the number of non-derangements of {1,2,...,n} for which the difference between the largest and smallest fixed points is k (n>=1; 0 <= k <= n-1).

A161129

Triangle read by rows: T(n,k) is the number of non-derangements of {1,2,...,n} for which the difference between the largest and smallest fixed points is k (n>=1; 0 <= k <= n-1).

Terms

    a(0) =1a(1) =0a(2) =1a(3) =3a(4) =0a(5) =1a(6) =8a(7) =3a(8) =2a(9) =2a(10) =45a(11) =8a(12) =9a(13) =8a(14) =6a(15) =264a(16) =45a(17) =44a(18) =42a(19) =36a(20) =24a(21) =1855a(22) =264a(23) =265a(24) =256a(25) =234a(26) =192a(27) =120a(28) =14832a(29) =1855

External references