|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
|
|
REFERENCES
|
Norman Sullivan, Test Your Own IQ, Workman Publishing Co. New York, NY, 1994, pp. 49, 51.
|
|
LINKS
|
|
|
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))
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
More terms from Larry Reeves (larryr(AT)acm.org), May 07 2001
|
|
STATUS
|
approved
|
|
|
|