Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A004157
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A004157 Sum of digits of n-th triangular number. +0
3
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; listen)
OFFSET

0,3

MAPLE

P:=proc(n) local a, i, k, w; a:=0; for i from 1 by 1 to n do a:=a+i; w:=0; k:=a; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; print(w); od; end: P(100); - Paolo P. Lava (ppl(AT)spl.at), May 03 2007

CROSSREFS

Cf. A000217, A145389.

Sequence in context: A134804 A145389 A055263 this_sequence A091068 A065233 A072452

Adjacent sequences: A004154 A004155 A004156 this_sequence A004158 A004159 A004160

KEYWORD

nonn,base

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 18 21:37 EST 2009. Contains 171024 sequences.


AT&T Labs Research