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.

A317333 Indices m for which A058304(m) = 9.

Original entry on oeis.org

1, 6, 14, 25, 30, 38, 49, 57, 62, 70, 78, 89, 97, 102, 113, 121, 126, 134, 142, 153, 158, 166, 177, 185, 193, 198, 206, 217, 225, 230, 241, 249, 254, 262, 270, 281, 286, 294, 305, 313, 318, 326, 334, 345, 353, 358, 369, 377, 385, 390, 398, 409, 414, 422, 433, 441, 449, 454, 462, 473, 481, 486, 497, 505
Offset: 1

Views

Author

A.H.M. Smeets, Jul 26 2018

Keywords

Crossrefs

Programs

  • Python
    n, f, i, p, q = 1, 1, 0, 0, 1
    while i < 1000000:
        i, p, q = i+1, p*10, q*10
        if i == f:
            p, n = p+1, n+1
            f = f*n
    n, a, j = 0, 0, 0
    while p%q > 0:
        a, f, p, q = a+1, p//q, q, p%q
        if f == 9:
            n = n+1
            print(n, a-1)

Formula

a(n) = 8*n + A317336(n).