OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
MAPLE
b:= proc(n) option remember; `if`(n<0, 0, 1+
(t-> 2*(b(floor(t))+b(ceil(t))))(n/2-1))
end:
a:= proc(n) option remember; `if`(n<0, 0, b(n)+a(n-1)) end:
seq(a(n), n=0..55); # Alois P. Heinz, Jul 10 2019
MATHEMATICA
b[n_] := b[n] = If[EvenQ[n], 2b[n/2] + 2b[n/2-1], 4b[(n-1)/2]]+1;
b[0] = 0; b[1] = 1; b[2] = 3;
b /@ Range[100] // Accumulate (* Jean-François Alcover, Nov 09 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 01 2001
EXTENSIONS
More terms from Ralf Stephan, Sep 15 2003
STATUS
approved