The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A216242 Triangular array read by rows: T(n,k) is the number of functions f:{1,2,...,n}->{1,2,...,n} with a height of k; n>=1, 0<=k<=n-1. 2
1, 2, 2, 6, 15, 6, 24, 124, 84, 24, 120, 1185, 1160, 540, 120, 720, 13086, 17610, 10560, 3960, 720, 5040, 165361, 296772, 214410, 104160, 32760, 5040, 40320, 2363320, 5536440, 4692576, 2686320, 1115520, 302400, 40320, 362880, 37780497, 113680800, 111488328, 72080064, 35637840, 12942720, 3084480, 362880 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Here, the height of a function f (represented as a directed graph) is the maximum distance from a recurrent element to any non-recurrent element. An element x in {1,2,...,n} is a recurrent element if there is some k such that f^k(x) = x where f^k(x) denotes iterated functional composition. In other words, a recurrent element is in a cycle of the functional digraph.
Row sums = n^n (A000312).
First column (k = 0) counts the n! bijective functions.
T(n,n-1) = n! (A000142).
LINKS
FORMULA
Define G(k) recursively by G(k) = x*exp(G(k-1)) for k>0, G(0) = 0.
E.g.f. for column k is 1/(1-G(k+1)) - 1/(1-G(k)).
EXAMPLE
Triangle T(n,k) begins:
1;
2, 2;
6, 15, 6;
24, 124, 84, 24;
120, 1185, 1160, 540, 120;
720, 13086, 17610, 10560, 3960, 720;
5040, 165361, 296772, 214410, 104160, 32760, 5040;
...
MAPLE
G:= proc(k) G(k):= `if`(k=0, 0, x*exp(G(k-1))) end:
T:= (n, k)-> n!*coeff(series(1/(1-G(k+1))-1/(1-G(k)), x, n+1), x, n):
seq(seq(T(n, k), k=0..n-1), n=1..10); # Alois P. Heinz, Mar 14 2013
MATHEMATICA
nn=8; a=NestList[x Exp[#]&, 0, nn]; f[list_]:=Sum[list[[i]]*i, {i, 1, Length[list]}]; g[list_]:=Select[list, #>0&]; Map[g, Transpose[Table[Range[0, nn]!CoefficientList[Series[1/(1-a[[i+1]])-1/(1-a[[i]]), {x, 0, nn}], x], {i, 1, nn-1}]]]//Grid
CROSSREFS
Sequence in context: A323233 A071208 A231536 * A330798 A260687 A083555
KEYWORD
nonn,tabl
AUTHOR
Geoffrey Critzer, Mar 14 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 27 16:57 EDT 2024. Contains 372880 sequences. (Running on oeis4.)