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 1141 is obtained by saying "1 once, 4 once, 1 twice", which gives 114112.
MATHEMATICA
PROG
(Haskell)
import Data.List (group, transpose)
a022515 n = a022515_list !! n
a022515_list = 4 : f [4] :: [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
KEYWORD
nonn,base,easy,nice
AUTHOR
EXTENSIONS
More terms from Patrick De Geest, Jun 15 1999
STATUS
approved