A219218 G.f. satisfies: A(x) = Sum_{n>=0} [A(x)^(2*n) (mod 3)]*x^n, where A(x)^(2*n) (mod 3) reduces all coefficients modulo 3 to {0,1,2}.
1, 1, 3, 3, 1, 6, 9, 3, 3, 9, 3, 6, 3, 1, 15, 18, 6, 6, 27, 9, 12, 9, 3, 9, 9, 3, 3, 27, 9, 18, 9, 3, 18, 18, 6, 6, 9, 3, 6, 3, 1, 42, 45, 15, 15, 54, 18, 24, 18, 6, 18, 18, 6, 6, 81, 27, 36, 27, 9, 36, 36, 12, 12, 27, 9, 12, 9, 3, 27, 27, 9, 9, 27, 9, 12, 9, 3, 9, 9, 3, 3, 81, 27, 54
Offset: 0
Keywords
Links
- Paul D. Hanna, Table of n, a(n) for n = 0..500
Crossrefs
Cf. A080100.
Programs
-
PARI
{A=1;for(i=1,122,A=Ser(sum(n=0,#A-1,Vec(1+x^n*A^(2*n) +x*O(x^#A))%3))-#A);Vec(A+O(x^122))}