Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #12 May 26 2022 08:37:01
%S 0,1,2,3,4,5,6,7,8,9,12,23,34,45,56,67,78,89,90,123,234,345,456,567,
%T 678,789,890,901,1234,2345,3456,4567,5678,6789,7890,8901,9012,12345,
%U 23456,34567,45678,56789,67890,78901,89012,90123,123456,234567,345678,456789
%N Numbers in which each digit is the (immediate) successor of the previous one (if it exists) and 0 is considered the successor of 9.
%C Numbers that are contiguous substrings of those in A062273. - _Michael S. Branicky_, May 26 2022
%H Michael S. Branicky, <a href="/A059043/b059043.txt">Table of n, a(n) for n = 1..9001</a>
%o (Python)
%o def ok(n):
%o s = str(n)
%o return s == "".join(str((int(s[0])+i)%10) for i in range(len(s)))
%o print([k for k in range(10**6) if ok(k)]) # _Michael S. Branicky_, May 26 2022
%o (Python)
%o from itertools import count, islice
%o def agen(): # generator of terms
%o yield 0
%o for d in count(1):
%o for s0 in range(1, 10):
%o yield int("".join(str((s0+i)%10) for i in range(d)))
%o print(list(islice(agen(), 50))) # _Michael S. Branicky_, May 26 2022
%Y Cf. A161760, A006055, A062273.
%K easy,nonn,base
%O 1,3
%A Thomas Schulze (jazariel(AT)tiscalenet.it), Feb 12 2001
%E More terms from Brian DiCesare (bdicesar(AT)ashland.edu), Oct 11 2004
%E a(1) = 0 inserted by _Michael S. Branicky_, May 26 2022