OFFSET
0,4
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..8192
FORMULA
MATHEMATICA
a[n_] := a[n] = Which[n == 0, 1, EvenQ@ n, a[n/2] + a[n/2 - 1], True, a[(n - 1)/2] - Mod[(n - 1)/2 - 1, 3] + 1]; Table[a[2 n], {n, 0, 97}] (* Michael De Vlieger, Apr 05 2017, after Jean-François Alcover at A000360 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 05 2017
STATUS
approved