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”).

A239778
Number of pairs of functions f, g from a size n set into itself satisfying f(f(f(x))) = f(g(g(x))).
1
1, 1, 12, 255, 8968, 452485, 31456656, 2899786855, 343386848064
OFFSET
0,3
LINKS
Lucas A. Brown, C program.
Lucas A. Brown, Python program.
MAPLE
s:= proc(n, i) option remember; `if`(i=0, [[]],
map(x-> seq([j, x[]], j=1..n), s(n, i-1)))
end:
a:= proc(n) (l-> add(add(`if`([true$n]=[seq(evalb(
f[f[f[i]]]=f[g[g[i]]]), i=1..n)], 1, 0), g=l), f=l))(s(n$2))
end:
seq(a(n), n=0..5); # Alois P. Heinz, Jul 16 2014
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Chad Brewbaker, Mar 26 2014
EXTENSIONS
a(6)-a(7) from Giovanni Resta, Mar 28 2014
a(8) from Lucas A. Brown, Oct 23 2024
STATUS
approved