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.

A178334 Number of mountain numbers <= n.

Original entry on oeis.org

0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 0

Views

Author

Reinhard Zumkeller, May 25 2010

Keywords

Comments

a(n) = 21846 for n >= 12345678987654321.

Crossrefs

Cf. A135417.

Programs

  • Python
    from itertools import count, islice
    def agen(): # generator of terms; uses code in A134941
        A134941_full = A134941() + [-1]
        c = i = 0
        for j in count(0):
            if j == A134941_full[i]: i, c = i+1, c+1
            yield c
    print(list(islice(agen(), 122))) # Michael S. Branicky, Jan 09 2023

Formula

a(n) = Sum_{k=0..n} A178333(k).