Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A123171
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A123171 a(1) = 123, a(n) = sum of digits of all previous terms. +0
1
123, 6, 12, 15, 21, 24, 30, 33, 39, 51, 57, 69, 84, 96, 111, 114, 120, 123, 129, 141, 147, 159, 174, 186, 201, 204, 210, 213, 219, 231, 237, 249, 264, 276, 291, 303, 309, 321, 327, 339, 354, 366, 381, 393, 408, 420, 426, 438, 453, 465, 480, 492, 507, 519, 534 (list; graph; listen)
OFFSET

1,1

COMMENT

a(1) = 123 a(2) = 1 + 2 + 3 = 6 a(3) = (1 + 2 + 3) + 6 = 12 a(4) = (1 + 2 + 3) + 6 + (1 + 2) = 15 a(5) = (1 + 2 + 3) + 6 + (1 + 2) + (1 + 5) = 21 a(6) = (1 + 2 + 3) + 6 + (1 + 2) + (1 + 5) + (2 + 1) = 24 a(7) = (1 + 2 + 3) + 6 + (1 + 2) + (1 + 5) + (2 + 1) + (2 + 4) = 30 ...

Essentially the same as A016052. - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 18 2008

LINKS

Sergio Silva, Teste Numerico.

FORMULA

a(n) = a(n-1) + sum of digits of a(n-1), a(1) = 123

PROGRAM

(PARI) s=0; a=123; print1(a, ", "); for(n=1, 100, dig=eval(Vec(Str(a))); s=s+sum(i=1, length(dig), dig[i]); print1(s, ", "); a=s)

CROSSREFS

Cf. A004207.

Sequence in context: A015079 A015042 A062233 this_sequence A125097 A077378 A031509

Adjacent sequences: A123168 A123169 A123170 this_sequence A123172 A123173 A123174

KEYWORD

nonn,base

AUTHOR

Herman Jamke (hermanjamke(AT)fastmail.fm), Oct 02 2006

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 11 12:57 EST 2009. Contains 170656 sequences.


AT&T Labs Research