login
A061729
Start with 0; to get next term reverse digits and add 1 to each digit (9's get replaced by 10's).
2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 32, 34, 54, 56, 76, 78, 98, 910, 1210, 1232, 3432, 3454, 5654, 5676, 7876, 7898, 91098, 9101210, 12321210, 12323432, 34543432, 34545654, 56765654, 56767876, 78987876, 789891098, 910121091098, 910121012321210, 1232343212321210
OFFSET
0,3
COMMENTS
a(98) has 1014 digits. Michael S. Branicky, Apr 14 2023
REFERENCES
Norman Sullivan, Test Your Own IQ, Workman Publishing Co. New York, NY, 1994, pp. 49, 51.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..97
EXAMPLE
a(13) = 34 because the previous term was 32 and 32 reversed with 1 added to each digit is 34.
PROG
(Python)
from itertools import count, islice
def f(n): return int("".join(str(int(d)+1) for d in str(n)[::-1]))
def agen(): yield (an:=0); yield from (an:=f(an) for n in count(1))
print(list(islice(agen(), 41))) # Michael S. Branicky, Apr 14 2023
CROSSREFS
Cf. A061728.
Sequence in context: A048322 A048335 A068862 * A286126 A249157 A033621
KEYWORD
easy,nonn,base
AUTHOR
Jason Earls, May 06 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), May 07 2001
a(39) and beyond from Michael S. Branicky, Apr 14 2023
STATUS
approved