login
A071122
a(n) = a(n-1) + sum of decimal digits of 2^n.
1
2, 6, 14, 21, 26, 36, 47, 60, 68, 75, 89, 108, 128, 150, 176, 201, 215, 234, 263, 294, 320, 345, 386, 423, 452, 492, 527, 570, 611, 648, 695, 753, 815, 876, 935, 999, 1055, 1122, 1193, 1254, 1304, 1350, 1406, 1464, 1526, 1596, 1664, 1737, 1802, 1878, 1958
OFFSET
1,1
LINKS
MATHEMATICA
s=0; Do[s=s+Apply[Plus, IntegerDigits[2^n]]; Print[s], {n, 1, 128}]
nxt[{n_, a_}]:={n+1, a+Total[IntegerDigits[2^(n+1)]]}; NestList[nxt, {1, 2}, 50][[;; , 2]] (* Harvey P. Dale, Jan 15 2026 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Labos Elemer, May 27 2002
STATUS
approved