cp's OEIS Frontend

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.

A239776 Number of pairs of functions f, g from a size n set into itself satisfying f(f(g(x))) = g(g(f(x))).

This page as a plain text file.
%I A239776 #8 Jul 16 2014 19:21:35
%S A239776 1,1,12,189,5200,208945,11517936,828676933
%N A239776 Number of pairs of functions f, g from a size n set into itself satisfying f(f(g(x))) = g(g(f(x))).
%p A239776 s:= proc(n, i) option remember; `if`(i=0, [[]],
%p A239776        map(x-> seq([j, x[]], j=1..n), s(n, i-1)))
%p A239776     end:
%p A239776 a:= proc(n) (l-> add(add(`if`([true$n]=[seq(evalb(
%p A239776        f[f[g[i]]]=g[g[f[i]]]), i=1..n)], 1, 0), g=l), f=l))(s(n$2))
%p A239776     end:
%p A239776 seq(a(n), n=0..5);  # _Alois P. Heinz_, Jul 16 2014
%Y A239776 Cf. A181162, A239769, A239773.
%K A239776 nonn,more
%O A239776 0,3
%A A239776 _Chad Brewbaker_, Mar 26 2014
%E A239776 a(6)-a(7) from _Giovanni Resta_, Mar 28 2014