OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
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
Nicholas M. R. Frieler, Jul 17 2024
STATUS
approved