OFFSET
0,3
COMMENTS
Let q=3; a(n) equals the partitions of q^n-1 into powers of q, or, the coefficient of x^(q^n-1) in 1/Product_{j>=0}(1-x^(q^j)).
LINKS
T. D. Noe, Table of n, a(n) for n=0..40
FORMULA
a(n) = [x^(3^n-1)] Product_{k>=0} 1/(1-x^(3^k)).
PROG
(PARI) {a(n, q=3)=local(A=Mat(1), B); if(n<0, 0, for(m=1, n+1, B=matrix(m, m); for(i=1, m, for(j=1, i, if(j==i, B[i, j]=1, if(j==1, B[i, j]=(A^q)[i-1, 1], B[i, j]=(A^q)[i-1, j-1])); )); A=B); return(A[n+1, 1]))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Aug 22 2005
STATUS
approved