login
Start with 0; to get next term reverse digits and add 1 to each digit (9's get replaced by 10's).
2

%I #13 Apr 14 2023 14:21:19

%S 0,1,2,3,4,5,6,7,8,9,10,12,32,34,54,56,76,78,98,910,1210,1232,3432,

%T 3454,5654,5676,7876,7898,91098,9101210,12321210,12323432,34543432,

%U 34545654,56765654,56767876,78987876,789891098,910121091098,910121012321210,1232343212321210

%N Start with 0; to get next term reverse digits and add 1 to each digit (9's get replaced by 10's).

%C a(98) has 1014 digits. _Michael S. Branicky_, Apr 14 2023

%D Norman Sullivan, Test Your Own IQ, Workman Publishing Co. New York, NY, 1994, pp. 49, 51.

%H Michael S. Branicky, <a href="/A061729/b061729.txt">Table of n, a(n) for n = 0..97</a>

%e a(13) = 34 because the previous term was 32 and 32 reversed with 1 added to each digit is 34.

%o (Python)

%o from itertools import count, islice

%o def f(n): return int("".join(str(int(d)+1) for d in str(n)[::-1]))

%o def agen(): yield (an:=0); yield from (an:=f(an) for n in count(1))

%o print(list(islice(agen(), 41))) # _Michael S. Branicky_, Apr 14 2023

%Y Cf. A061728.

%K easy,nonn,base

%O 0,3

%A _Jason Earls_, May 06 2001

%E More terms from Larry Reeves (larryr(AT)acm.org), May 07 2001

%E a(39) and beyond from _Michael S. Branicky_, Apr 14 2023