login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A239781
Number of pairs of functions f, g from a size n set into itself satisfying f(g(x)) = f(f(g(x))).
1
1, 1, 12, 321, 15280, 1127745, 118507536, 16731979033, 3044595017472, 692050790547297, 191796657547052800, 63563842088104098081, 24793529117087476242432, 11232023076988690608825505, 5843573099019743656060348416, 3457799186387568447755745563625
OFFSET
0,3
LINKS
FORMULA
a(n) = Sum_{k=0..n} C(n,k) * Sum_{i=0..n-k} C(n-k,i) * k^i * (n-k-1)^(n-k-i) * (k+i)^n. - Alois P. Heinz, Jul 17 2014
MAPLE
a:= n-> add(binomial(n, k)*add(binomial(n-k, i)*k^i*
(n-k-1)^(n-k-i)*(k+i)^n, i=0..n-k), k=0..n):
seq(a(n), n=0..20); # Alois P. Heinz, Jul 17 2014
MATHEMATICA
Unprotect[Power]; 0^0 = 1; a[n_] := Sum[Binomial[n, k]*Sum[Binomial[n-k, i]*k^i*(n-k-1)^(n-k-i)*(k+i)^n, {i, 0, n-k}], {k, 0, n}]; Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Feb 28 2017, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Chad Brewbaker, Mar 26 2014
EXTENSIONS
a(6)-a(7) from Giovanni Resta, Mar 28 2014
a(8)-a(15) from Alois P. Heinz, Jul 17 2014
STATUS
approved