OFFSET
1,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..400
N. J. A. Sloane, Transforms
MAPLE
b:= proc(n) option remember; `if`(n<2, n,
`if`(irem(n, 2, 'r')=0, b(r), b(r) + b(r+1)))
end:
a:= proc(n) option remember; `if`(n<0, 0,
`if`(n=0, 1, b(n)*a(n-1)+a(n-2)))
end:
seq(a(n), n=1..35); # Alois P. Heinz, Aug 06 2013
MATHEMATICA
b[n_] := b[n] = If[n < 2, n, r = Quotient[n, 2]; If[Mod[n, 2] == 0, b[r], b[r] + b[r + 1]]];
a[n_] := a[n] = If[n < 0, 0, If[n == 0, 1, b[n] a[n - 1] + a[n - 2]]];
Array[a, 35] (* Jean-François Alcover, Nov 10 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 10 2002
STATUS
approved