OFFSET
0,3
FORMULA
EXAMPLE
G.f.: A(x) = 1 + x + 3*x^2 + 2*x^3 + 9*x^4 + 7*x^5 + 17*x^6 + 10*x^7 +...
where:
A(x) = (1+x+x^2) * (1+x^2+x^4)^2 * (1+x^4+x^8)^4 * (1+x^8+x^16)^8 * (1+x^16+x^32)^16 *...* (1 + x^(2^n) + x^(2*2^n))^(2^n) *...
PROG
(PARI) {a(n)=local(A=1+x); for(i=1, #binary(n), A=(1+x+x^2)*subst(A^2, x, x^2) +x*O(x^n)); polcoeff(A, n)}
for(n=0, 50, print1(a(n), ", "))
(PARI) {a(n)=local(A=1+x); A=prod(k=0, #binary(n), (1+x^(2^k)+x^(2*2^k)+x*O(x^n))^(2^k)); polcoeff(A, n)}
for(n=0, 50, print1(a(n), ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, May 04 2014
STATUS
approved