This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A145877 #29 Nov 11 2021 10:23:23 %S A145877 1,1,1,4,0,2,15,3,0,6,76,20,0,0,24,455,105,40,0,0,120,3186,714,420,0, %T A145877 0,0,720,25487,5845,2688,1260,0,0,0,5040,229384,52632,22400,18144,0,0, %U A145877 0,0,40320,2293839,525105,223200,151200,72576,0,0,0,0,362880,25232230 %N A145877 Triangle read by rows: T(n,k) is the number of permutations of [n] for which the shortest cycle length is k (1<=k<=n). %C A145877 Row sums are the factorials (A000142). %C A145877 Sum(T(n,k), k=2..n) = A000166(n) (the derangement numbers). %C A145877 T(n,1) = A002467(n). %C A145877 T(n,n) = (n-1)! (A000142). %C A145877 Sum(k*T(n,k),k=1..n) = A028417(n). %C A145877 For the statistic "length of the longest cycle", see A126074. %H A145877 Alois P. Heinz, <a href="/A145877/b145877.txt">Rows n = 1..141, flattened</a> %H A145877 Steven Finch, <a href="https://arxiv.org/abs/2111.05720">Permute, Graph, Map, Derange</a>, arXiv:2111.05720 [math.CO], 2021. %H A145877 D. Panario and B. Richmond, <a href="https://doi.org/10.1007/s00453-001-0047-1">Exact largest and smallest size of components</a>, Algorithmica, 31 (2001), 413-432. %F A145877 E.g.f. for column k is (1-exp(-x^k/k))*exp( -sum(j=1..k-1, x^j/j ) ) / (1-x). - _Vladeta Jovovic_ %e A145877 T(4,2)=3 because we have 3412=(13)(24), 2143=(12)(34) and 4321=(14)(23). %e A145877 Triangle starts: %e A145877 1; %e A145877 1, 1; %e A145877 4, 0, 2; %e A145877 15, 3, 0, 6; %e A145877 76, 20, 0, 0, 24; %e A145877 455, 105, 40, 0, 0, 120; %e A145877 3186, 714, 420, 0, 0, 0, 720; %e A145877 25487, 5845, 2688, 1260, 0, 0, 0, 5040; %e A145877 ... %p A145877 F:=proc(k) options operator, arrow: (1-exp(-x^k/k))*exp(-(sum(x^j/j, j = 1 .. k-1)))/(1-x) end proc: for k to 16 do g[k]:= series(F(k),x=0,16) end do: T:= proc(n,k) options operator, arrow: factorial(n)*coeff(g[k],x,n) end proc: for n to 11 do seq(T(n,k),k=1..n) end do; # yields sequence in triangular form %t A145877 Rest[Transpose[Table[Range[0, 16]! CoefficientList[ %t A145877 Series[(Exp[x^n/n] -1) (Exp[-Sum[x^k/k, {k, 1, n}]]/(1 - x)), {x, 0, 16}],x], {n, 1, 8}]]] // Grid (* _Geoffrey Critzer_, Mar 04 2011 *) %Y A145877 Cf. A000142, A000166, A002467, A028417, A126074. %Y A145877 T(2n,n) gives A110468(n-1) (for n>0). - _Alois P. Heinz_, Apr 21 2017 %K A145877 nonn,tabl %O A145877 1,4 %A A145877 _Emeric Deutsch_, Oct 27 2008