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!)
A004157 Sum of digits of n-th triangular number. 4
0, 1, 3, 6, 1, 6, 3, 10, 9, 9, 10, 12, 15, 10, 6, 3, 10, 9, 9, 10, 3, 6, 10, 15, 3, 10, 9, 18, 10, 12, 15, 19, 15, 12, 19, 9, 18, 10, 12, 15, 10, 15, 12, 19, 18, 9, 10, 12, 15, 10, 15, 12, 19, 9, 18, 10, 21, 15, 10, 15, 12, 19, 18, 9, 10, 12, 6, 19, 15, 12, 19, 18, 18, 10, 21, 15, 19, 6, 12, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = A007953(A000217(n)). - Robert Israel, Jun 18 2015
MAPLE
seq(convert(convert(n*(n+1)/2, base, 10), `+`), n=0..100); # Robert Israel, Jun 18 2015
MATHEMATICA
Table[Plus@@IntegerDigits@(n (n + 1) / 2), {n, 0, 90}] (* Vincenzo Librandi, Jun 18 2015 *)
Total[IntegerDigits[#]]&/@Accumulate[Range[0, 100]] (* Harvey P. Dale, Mar 31 2024 *)
PROG
(Magma) [&+Intseq(n*(n+1) div 2): n in [0..80] ]; // Vincenzo Librandi, Jun 18 2015
(PARI) a(n) = sumdigits(n*(n+1)/2); \\ Michel Marcus, Jun 18 2015
CROSSREFS
Sequence in context: A134804 A145389 A055263 * A331514 A091068 A065233
KEYWORD
nonn,base
AUTHOR
STATUS
approved

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 23 02:23 EDT 2024. Contains 371906 sequences. (Running on oeis4.)