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.

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

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