OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..16383
MAPLE
b:= proc(n) option remember; `if`(n=0, 1,
`if`(n::odd, 1, 4*b(n/2-1)-1))
end:
a:= n-> b(2*n):
seq(a(n), n=0..100); # Alois P. Heinz, Sep 07 2016
MATHEMATICA
b[n_] := b[n] = If[n == 0, 1, If[OddQ[n], 1, 4*b[n/2 - 1] - 1]];
a[n_] := b[2*n];
Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Jun 12 2018, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 07 2016
EXTENSIONS
More terms from Alois P. Heinz, Sep 07 2016
STATUS
approved