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!)
A022519 Describe previous term from the right (method B - initial term is 8). 5
8, 81, 1181, 118112, 21128112, 211281211221, 112212211181211221, 1122122111811322112212, 21112212223112811322112212, 21112212223112812112312311221321 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Method B = 'digit'-indication followed by 'frequency'.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..21
EXAMPLE
The term after 1181 is obtained by saying "1 once, 8 once, 1 twice", which gives 118112.
PROG
(Haskell)
import Data.List (group, transpose)
a022519 n = a022519_list !! n
a022519_list = 8 : f [8] :: [Integer] where
f xs = (read $ concatMap show ys) : f ys where
ys = concat $ transpose [map head zss, map length zss]
zss = reverse $ group xs
-- Reinhard Zumkeller, Jan 26 2014
(Python)
from itertools import groupby
A022519_list = [8]
for _ in range(10):
A022519_list.append(int(''.join(str(k)+str(len(list(g))) for k, g in groupby(str(A022519_list[-1])[::-1])))) # Chai Wah Wu, Sep 01 2021
CROSSREFS
Sequence in context: A318047 A338685 A092366 * A138439 A193563 A026845
KEYWORD
nonn,base,easy,nice
AUTHOR
EXTENSIONS
More terms from Patrick De Geest, Jun 15 1999
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 April 24 08:59 EDT 2024. Contains 371935 sequences. (Running on oeis4.)