The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A022517 Describe previous term from the right (method B - initial term is 6). 4
6, 61, 1161, 116112, 21126112, 211261211221, 112212211161211221, 1122122111611322112212, 21112212223112611322112212, 21112212223112612112312311221321 (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 1161 is obtained by saying "1 once, 6 once, 1 twice", which gives 116112.
PROG
(Haskell)
import Data.List (group, transpose)
a022517 n = a022517_list !! n
a022517_list = 6 : f [6] :: [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: A056546 A127695 A144343 * A275221 A243455 A271965
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 June 4 03:29 EDT 2024. Contains 373089 sequences. (Running on oeis4.)