|
|
A059043
|
|
Numbers in which each digit is the (immediate) successor of the previous one (if it exists) and 0 is considered the successor of 9.
|
|
4
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 23, 34, 45, 56, 67, 78, 89, 90, 123, 234, 345, 456, 567, 678, 789, 890, 901, 1234, 2345, 3456, 4567, 5678, 6789, 7890, 8901, 9012, 12345, 23456, 34567, 45678, 56789, 67890, 78901, 89012, 90123, 123456, 234567, 345678, 456789
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
PROG
|
(Python)
def ok(n):
s = str(n)
return s == "".join(str((int(s[0])+i)%10) for i in range(len(s)))
(Python)
from itertools import count, islice
def agen(): # generator of terms
yield 0
for d in count(1):
for s0 in range(1, 10):
yield int("".join(str((s0+i)%10) for i in range(d)))
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn,base
|
|
AUTHOR
|
Thomas Schulze (jazariel(AT)tiscalenet.it), Feb 12 2001
|
|
EXTENSIONS
|
More terms from Brian DiCesare (bdicesar(AT)ashland.edu), Oct 11 2004
|
|
STATUS
|
approved
|
|
|
|