login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A374734
a(n) = a(n-1) + rotate(a(n-1), n-1 digits left) with a(1) = 1.
4
1, 2, 4, 8, 16, 77, 154, 695, 1264, 3905, 4444, 8888, 17776, 93953, 133348, 481481, 1296295, 7591424, 11839015, 50854133, 92189218, 114081407, 928152547, 1182945362, 10636566544, 47203110650, 78309615370, 139846693679, 606783485077, 955291245755, 1201047201046
OFFSET
1,2
LINKS
EXAMPLE
Here we use -m (where m > 0) to represent rotating the digits of a number m digits to the left.
a(9) = a(8) + rotate(a(8), -8) = 695 + rotate(695, -8) = 695 + 569 = 1264.
MATHEMATICA
a[1] = 1; a[n_] := a[n] = a[n - 1] + FromDigits@RotateLeft[IntegerDigits[a[n - 1]], n - 1]; arr = a[#] & /@ Range[1, 100]
nxt[{n_, a_}]:={n+1, a+FromDigits[RotateLeft[IntegerDigits[a], n]]}; NestList[nxt, {1, 1}, 30][[;; , 2]] (* Harvey P. Dale, Nov 08 2024 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved