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
KEYWORD
base,nonn
AUTHOR
Joseph L. Pe, Feb 02 2003
STATUS
approved