login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Numbers that are contiguous substrings of those in A062273. - Michael S. Branicky, May 26 2022
LINKS
PROG
(Python)
def ok(n):
s = str(n)
return s == "".join(str((int(s[0])+i)%10) for i in range(len(s)))
print([k for k in range(10**6) if ok(k)]) # Michael S. Branicky, May 26 2022
(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)))
print(list(islice(agen(), 50))) # Michael S. Branicky, May 26 2022
CROSSREFS
Sequence in context: A288528 A352927 A200372 * A259236 A138141 A228017
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
a(1) = 0 inserted by Michael S. Branicky, May 26 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 15:57 EDT 2024. Contains 371961 sequences. (Running on oeis4.)