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!)
A022516 Describe previous term from the right (method B - initial term is 5). 4
5, 51, 1151, 115112, 21125112, 211251211221, 112212211151211221, 1122122111511322112212, 21112212223112511322112212, 21112212223112512112312311221321 (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 1151 is obtained by saying "1 once, 5 once, 1 twice", which gives 115112.
PROG
(Haskell)
import Data.List (group, transpose)
a022516 n = a022516_list !! n
a022516_list = 5 : f [5] :: [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
CROSSREFS
Sequence in context: A368838 A348023 A172403 * A003515 A022501 A134097
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 16 03:21 EDT 2024. Contains 371696 sequences. (Running on oeis4.)