OFFSET
0,3
FORMULA
a(n) is odd iff n is a generalized pentagonal number (A001318).
EXAMPLE
E.g.f.: A(x) = 1 + x + 3*x^2/2! + 12*x^3/3! + 66*x^4/4! + 449*x^5/5! + 3678*x^6/6! +...
where the reciprocal involves generalized pentagonal factorials:
A(x) = 1/(1 - x - x^2/2! + x^5/5! + x^7/7! - x^12/12! - x^15/15! + x^22/22! + x^26/26! - x^35/35! - x^40/40! +...).
PROG
(PARI) {a(n)=n!*polcoeff(1/(1+sum(m=1, n, (-1)^m*x^(m*(3*m-1)/2)/(m*(3*m-1)/2)!+(-1)^m*x^(m*(3*m+1)/2)/(m*(3*m+1)/2)! +x*O(x^n))), n)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Nov 09 2011
STATUS
approved