Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A079050
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A079050 Sum of the digits of LookAndSay(n). +0
1
2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 3, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 4, 7, 8, 9, 10, 11, 12, 13, 5, 6, 7, 5, 9, 10, 11, 12, 13, 14, 6, 7, 8, 9, 6, 11, 12, 13, 14, 15, 7, 8, 9, 10, 11, 7, 13, 14, 15, 16, 8, 9, 10, 11, 12, 13, 8, 15, 16, 17, 9, 10, 11, 12, 13, 14, 15, 9, 17, 18, 10, 11, 12, 13 (list; graph; listen)
OFFSET

1,1

EXAMPLE

LookAndSay(23) = 1213, the sum of whose digits = 7, so a(23) = 7.

MATHEMATICA

lookandsay[n_] := Module[{r, d, f, i, l, k}, r = ""; d = IntegerDigits[n]; While[d != {}, f = First[d]; i = 2; l = Length[d]; While[i <= l && d[[i]] == f, i = i + 1]; k = i - 1; r = r <> ToString[k]; r = r <> ToString[f]; d = Drop[d, k]]; ToExpression[r]]; t = Table[Apply[Plus, IntegerDigits[lookandsay[i]]], {i, 1, 100}]

CROSSREFS

Sequence in context: A043270 A089898 A071785 this_sequence A064698 A094175 A048893

Adjacent sequences: A079047 A079048 A079049 this_sequence A079051 A079052 A079053

KEYWORD

base,nonn

AUTHOR

Joseph L. Pe (joseph_l_pe(AT)hotmail.com), Feb 02 2003

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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research