OFFSET
1,2
LINKS
FORMULA
a(n) = (A245542(n) - 1)/8. - Omar E. Pol, Mar 07 2015
MATHEMATICA
b[n_] := b[n] = Which[n == 1, 1, Mod[n, 2] == 0, b[n/2], Mod[n, 4] == 3, 2b[(n-1)/2] + b[n-2], True, 8b[(n-1)/4]];
Accumulate[Array[b, 58]] (* Jean-François Alcover, Oct 01 2018 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
N. J. A. Sloane, Jul 26 2014
STATUS
approved