OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..270
MAPLE
s:=1; j1:=[s];
f:=proc(n) local t1, t2;
t1:=digsum(n);
t2:=length(t1); n*10^t2 + t1; end;
for n from 1 to 24 do s:=f(s); j1:=[op(j1), s]; od:
j1;
MATHEMATICA
NestList[With[{s = DigitSum[#]}, #*10^IntegerLength[s] + s] &, 1, 20] (* Paolo Xausa, Jun 16 2024 *)
PROG
(Python)
from itertools import islice
def A372074_gen(): # generator of terms
yield (a:=1)
while True: yield (a:=(s:=sum(map(int, str(a))))+a*10**len(str(s)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Jun 16 2024
STATUS
approved