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!)
A363054 Look and say sequence: describe the previous term (method A, starting with 20). 0
20, 1210, 11121110, 31123110, 132112132110, 11131221121113122110, 311311222112311311222110, 1321132132211213211321322110, 11131221131211132221121113122113121113222110, 3113112221131112311332211231131122211311123113322110 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
The term after 1210 is given by saying "I see one 1, one 2, one 1, and one 0", and then writing down the digits as 11-12-11-10, yielding 11121110.
MATHEMATICA
NestList[FromDigits@ Flatten@ Map[Reverse@ Tally[#][[1]] &, Split@ IntegerDigits[#] ] &, 20, 12] (* Michael De Vlieger, Jul 05 2023 *)
PROG
(Python)
from itertools import count, groupby, islice
def LS(n): return int(''.join(str(len(list(g)))+k for k, g in groupby(str(n))))
def agen(an=20): yield an; yield from (an:=LS(an) for n in count(1))
print(list(islice(agen(), 10))) # Michael S. Branicky, May 15 2023
CROSSREFS
Sequence in context: A203775 A184269 A042745 * A158912 A036067 A294191
KEYWORD
nonn,base
AUTHOR
Julia Zimmerman, May 15 2023
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 August 14 13:35 EDT 2024. Contains 375165 sequences. (Running on oeis4.)