OFFSET
0,3
COMMENTS
Equals A230297 = A010062 converted from decimal to binary, prefixed by another initial 1. - M. F. Hasler, Nov 18 2019
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
MAPLE
b:= proc(n) option remember; `if`(n<2, 1, b(n-1)+
add(i, i=convert(a(n-1), base, 10)))
end:
a:= n-> convert(b(n), binary):
seq(a(n), n=0..44); # Alois P. Heinz, Nov 18 2019
MATHEMATICA
s[0] = s[1] = 1; s[n_] := s[n] = s[n-1] + DigitCount[s[n-1], 2, 1]; Table[FromDigits[IntegerDigits[s[n], 2]], {n, 0, 50}] (* Amiram Eldar, Jul 28 2023 *)
PROG
(PARI) lista(nn) = {my(s = 1); my(t = 1); print1(t, ", "); for (i=1, nn, sb = binary(s); t = subst(Pol(sb), x, 10); print1(t, ", "); s += hammingweight(sb); ); }
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Oliver K. Seet, Mar 07 2009
EXTENSIONS
a(11) corrected and extended by R. J. Mathar, Mar 12 2009
More terms from Michel Marcus, Apr 19 2014
STATUS
approved