OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..2500
Kevin Ryde, PARI/GP Code
FORMULA
From G. C. Greubel, Oct 30 2016: (Start)
a(2*n + 1) = a(n), n>=1.
a(2*n + 2) = 2*a(n) + a(n-1), n>=1. (End)
G.f. g(x) satisfies g(x) = 1 + (x^4+2*x^2+x)*g(x^2). - Robert Israel, Nov 13 2017
MAPLE
gg:= 1:
for iter from 1 to 7 do
gg:= convert(series(1+(x^4+2*x^2+x)*eval(gg, x=x^2), x, 2^iter+1), polynom)
od:
seq(coeff(gg, x, n), n=0..2^7); # Robert Israel, Nov 13 2017
MATHEMATICA
b[0] := 0; b[1] := 1;
b[n_?EvenQ] := b[n] = b[n/2];
b[n_?OddQ] := b[n] = 2*b[(n - 1)/2] + b[(n - 3)/2];
Table[b[n], {n, 1, 70}]
PROG
(PARI) See links.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Mar 15 2006
EXTENSIONS
New name using formula, Joerg Arndt, Dec 17 2022
STATUS
approved