OFFSET
0,2
LINKS
Paul D. Hanna, Table of n, a(n) for n = 0..300
FORMULA
Generating function A(x) = Sum_{n>=0} a(n)*x^n satisfies the following formulas.
(1) 1 = Sum_{n=-oo..+oo} x^n * (2*A(x) - x^n)^(3*n-1).
(2) 1 = Sum_{n=-oo..+oo} (-1)^(n+1) * x^(3*n^2) / (1 - 2*A(x)*x^n)^(3*n+1).
EXAMPLE
G.f.: A(x) = 1 + 2*x + 30*x^2 + 621*x^3 + 14196*x^4 + 351802*x^5 + 9179386*x^6 + 248533626*x^7 + 6917835992*x^8 + 196730606200*x^9 + ...
PROG
(PARI) {a(n) = my(A=[1]); for(i=1, n, A=concat(A, 0);
A[#A] = polcoeff(-1 + sum(m=-#A, #A, x^m * (2*Ser(A) - x^m)^(3*m-1) ), #A-1)/2); A[n+1]}
for(n=0, 30, print1(a(n), ", "))
(PARI) {a(n) = my(A=[1]); for(i=1, n, A=concat(A, 0);
A[#A] = polcoeff(-1 + sum(m=-#A, #A, (-1)^(m+1) * x^(3*m^2)/(1 - 2*Ser(A)*x^m)^(3*m+1) ), #A-1)/2); A[n+1]}
for(n=0, 30, print1(a(n), ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, May 14 2023
STATUS
approved