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.

A054632 Partial sums of A007376.

Original entry on oeis.org

0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 46, 46, 47, 48, 49, 51, 52, 55, 56, 60, 61, 66, 67, 73, 74, 81, 82, 90, 91, 100, 102, 102, 104, 105, 107, 109, 111, 114, 116, 120, 122, 127, 129, 135, 137, 144, 146, 154, 156, 165, 168, 168, 171, 172, 175, 177
Offset: 0

Views

Author

N. J. A. Sloane, Apr 16 2000

Keywords

Programs

  • Haskell
    a054632 n = a054632_list !! n
    a054632_list = scanl (+) 0 a007376_list
    -- Reinhard Zumkeller, Dec 29 2011
    
  • Python
    from itertools import accumulate, count, islice
    def A054632gen(): return accumulate(int(d) for n in count(0) for d in str(n))
    A054632_list = list(islice(A054632gen(),40)) # Chai Wah Wu, Dec 04 2021