login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A054632 Partial sums of A007376. 5

%I #15 Dec 05 2021 00:10:36

%S 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 74,81,82,90,91,100,102,102,104,105,107,109,111,114,116,120,122,127,

%U 129,135,137,144,146,154,156,165,168,168,171,172,175,177

%N Partial sums of A007376.

%H Reinhard Zumkeller, <a href="/A054632/b054632.txt">Table of n, a(n) for n = 0..10000</a>

%o (Haskell)

%o a054632 n = a054632_list !! n

%o a054632_list = scanl (+) 0 a007376_list

%o -- _Reinhard Zumkeller_, Dec 29 2011

%o (Python)

%o from itertools import accumulate, count, islice

%o def A054632gen(): return accumulate(int(d) for n in count(0) for d in str(n))

%o A054632_list = list(islice(A054632gen(),40)) # _Chai Wah Wu_, Dec 04 2021

%K nonn,base,easy

%O 0,3

%A _N. J. A. Sloane_, Apr 16 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 16:38 EDT 2024. Contains 371794 sequences. (Running on oeis4.)