OFFSET
0,3
FORMULA
a(n) = A078932(2n). a(m) = 1 (mod 3) when m = (3^n - 1)/2, otherwise a(m) = 0 (mod 3).
EXAMPLE
Given f(x) = 1 + x + x^4 + x^13 + x^40 + x^121 + ... so that f(x)^2 = 1 + 2x + x^2 + 2x^4 + 2x^5 + x^8 + 2*x^13 + ... then A(x) = 1 + x*A(x)*(1 + 2x + x^2 + 2x^4 + 2x^5 + x^8 + ...) = 1 + x + 3x^2 + 6x^3 + 13x^4 + 30x^5 + ...
PROG
(PARI) a(n)=local(A, m); if(n<1, 1, m=1; A=1+O(x); while(m<=2*n, m*=3; A=1/(1/subst(A, x, x^3)-x)); polcoeff(A, 2*n));
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Aug 26 2003
STATUS
approved