login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A342615
a(0) = 0, a(1) = 1; a(2*n) = 9*a(n), a(2*n+1) = a(n) + a(n+1).
5
0, 1, 9, 10, 81, 19, 90, 91, 729, 100, 171, 109, 810, 181, 819, 820, 6561, 829, 900, 271, 1539, 280, 981, 919, 7290, 991, 1629, 1000, 7371, 1639, 7380, 7381, 59049, 7390, 7461, 1729, 8100, 1171, 2439, 1810, 13851, 1819, 2520, 1261, 8829, 1900, 8271, 8209, 65610, 8281, 8919, 2620
OFFSET
0,3
LINKS
FORMULA
G.f.: x * Product_{k>=0} (1 + 9*x^(2^k) + x^(2^(k+1))).
MAPLE
N:= 100: # for a(0) to a(N)
g:= x*mul(1+9*x^(2^k)+x^(2^(k+1)), k=0..ilog2(N)):
S:= series(g, x, N+1):
seq(coeff(S, x, i), i=0..N); # Robert Israel, May 04 2023
MATHEMATICA
a[0] = 0; a[1] = 1; a[n_] := If[EvenQ[n], 9 a[n/2], a[(n - 1)/2] + a[(n + 1)/2]]; Table[a[n], {n, 0, 51}]
nmax = 51; CoefficientList[Series[x Product[(1 + 9 x^(2^k) + x^(2^(k + 1))), {k, 0, Floor[Log[2, nmax]] + 1}], {x, 0, nmax}], x]
KEYWORD
nonn,look
AUTHOR
Ilya Gutkovskiy, Mar 16 2021
STATUS
approved