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!)
A245959 Number of endofunctions f on [2n] satisfying f^3(i) = i for all i in [n]. 3
1, 2, 36, 1440, 84624, 7675200, 962250624, 151851992544, 30421572307200, 7430515709340672, 2142144445293849600, 727442024443449689088, 285148327160858698469376, 127152465871110917459189760, 64226006581334387301393186816, 36322574197169989225245335040000 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = A245958(2n,n).
MAPLE
with(combinat): M:=multinomial:
T:= proc(n, k) local l, g; l, g:= [1, 3],
proc(k, m, i, t) option remember; local d, j; d:= l[i];
`if`(i=1, n^m, add(M(k, k-(d-t)*j, (d-t)$j)/j!*
(d-1)!^j *M(m, m-t*j, t$j) *g(k-(d-t)*j, m-t*j,
`if`(d-t=1, [i-1, 0], [i, t+1])[]), j=0..min(k/(d-t),
`if`(t=0, [][], m/t))))
end; g(k, n-k, nops(l), 0)
end:
a:= n-> T(2*n, n):
seq(a(n), n=0..20);
MATHEMATICA
M[n_, m_, k_List] := n!/Times @@ (Join[{m}, k]!);
T[0, 0] = 1; T[n_, k_] := T[n, k] = Module[{l = {1, 3}, g}, g[k0_, m_, {i_, t_}] := g[k0, m, i, t]; g[k0_, m_, i_, t_] := g[k0, m, i, t] = Module[ {d}, d = l[[i]]; If[i == 1, n^m, Sum[M[k0, k0 - (d - t)*j, Table[(d - t), {j}]]/j!*(d - 1)!^j*M[m, m - t*j, Table[t, {j}]]*g[k0 - (d - t)*j, m - t*j, If[d - t == 1, {i - 1, 0}, {i, t + 1}]], {j, 0, Min[k0/(d - t), If[t == 0, Infinity, m/t]]}]]]; g[k, n - k, Length[l], 0]];
a[n_] := T[2 n, n];
a /@ Range[0, 20] (* Jean-François Alcover, Oct 03 2019, after Alois P. Heinz *)
CROSSREFS
Cf. A245958.
Column k=3 of A246070.
Sequence in context: A187535 A263421 A046673 * A174580 A209803 A088026
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 08 2014
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 April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)