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.

A061518 a(0) = 0; a(n) is obtained by incrementing each digit of a(n-1) by 5.

Original entry on oeis.org

0, 5, 10, 65, 1110, 6665, 11111110, 66666665, 1111111111111110, 6666666666666665, 11111111111111111111111111111110, 66666666666666666666666666666665, 1111111111111111111111111111111111111111111111111111111111111110
Offset: 0

Views

Author

Amarnath Murthy, May 08 2001

Keywords

Comments

In A061511-A061522, A061746-A061750 when the incremented digit exceeds 9 it is written as a 2-digit string. So 9+1 becomes the 2-digit string 10, etc.

Programs

  • Python
    from itertools import accumulate, repeat
    def f(n, _): return int("".join(str(int(d)+5) for d in str(n)))
    def aupton(nn): return list(accumulate(repeat(0, nn+1), f))
    print(aupton(12)) # Michael S. Branicky, Mar 19 2022

Extensions

More terms from Larry Reeves (larryr(AT)acm.org), May 11 2001
a(3) and following corrected and formula removed by Georg Fischer, Mar 19 2022