cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

Original entry on oeis.org

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
Offset: 1

Views

Author

Thomas Schulze (jazariel(AT)tiscalenet.it), Feb 12 2001

Keywords

Comments

Numbers that are contiguous substrings of those in A062273. - Michael S. Branicky, May 26 2022

Crossrefs

Programs

  • 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

Extensions

More terms from Brian DiCesare (bdicesar(AT)ashland.edu), Oct 11 2004
a(1) = 0 inserted by Michael S. Branicky, May 26 2022