OFFSET
1,4
FORMULA
a(n) == 1 (mod 48).
EXAMPLE
G.f.: A(x) = x + x^2 + x^3 + 49*x^4 + 721*x^5 + 17281*x^6 + 452065*x^7 +...
Let G(x) = A(A(A(A(x)))):
G(x) = x + 4*x^2 + 16*x^3 + 256*x^4 + 4864*x^5 + 111616*x^6 + 2983936*x^7 +...
such that G(x) = x + 3*x^2 + x*G(G(G(G(x)))):
G(G(G(G(x)))) = x + 16*x^2 + 256*x^3 + 4864*x^4 + 111616*x^5 + 2983936*x^6 +...
PROG
(PARI) {a(n)=local(A=x+x^2, B=x+4*x^2); for(i=1, n+1, B=x+3*x^2+x*subst(B, x, subst(B, x, subst(B, x, B+x^2*O(x^n)))));
for(j=1, n+1, A=round((3*A+subst(B, x, serreverse(subst(A, x, subst(A, x, A+x^2*O(x^n))))))/4));; polcoeff(A, n)}
for(n=1, 31, print1(a(n), ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Aug 03 2012
STATUS
approved