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.

This page as a plain text file.
%I A054632 #15 Dec 05 2021 00:10:36
%S A054632 0,1,3,6,10,15,21,28,36,45,46,46,47,48,49,51,52,55,56,60,61,66,67,73,
%T A054632 74,81,82,90,91,100,102,102,104,105,107,109,111,114,116,120,122,127,
%U A054632 129,135,137,144,146,154,156,165,168,168,171,172,175,177
%N A054632 Partial sums of A007376.
%H A054632 Reinhard Zumkeller, <a href="/A054632/b054632.txt">Table of n, a(n) for n = 0..10000</a>
%o A054632 (Haskell)
%o A054632 a054632 n = a054632_list !! n
%o A054632 a054632_list = scanl (+) 0 a007376_list
%o A054632 -- _Reinhard Zumkeller_, Dec 29 2011
%o A054632 (Python)
%o A054632 from itertools import accumulate, count, islice
%o A054632 def A054632gen(): return accumulate(int(d) for n in count(0) for d in str(n))
%o A054632 A054632_list = list(islice(A054632gen(),40)) # _Chai Wah Wu_, Dec 04 2021
%K A054632 nonn,base,easy
%O A054632 0,3
%A A054632 _N. J. A. Sloane_, Apr 16 2000