OFFSET
0,4
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
FORMULA
MATHEMATICA
Clear[a, b, c, f, n, lst] f[n_]:=Plus@@IntegerDigits[n, 2]; a=1; b=0; c=0; lst={b}; Do[c=a+b+c; AppendTo[lst, f[c]]; a=b; b=c, {n, 5!}]; lst
DigitCount[LinearRecurrence[{2, 1}, {0, 1}, 100], 2, 1] (* Amiram Eldar, Jul 29 2023 *)
PROG
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Oct 10 2009
EXTENSIONS
Keyword:base added by R. J. Mathar, Oct 28 2009
Offset changed to 0 by Georg Fischer, Dec 19 2020
STATUS
approved