VOOZH
about
URL: https://oeis.org/A022520
⇱ A022520 - OEIS
login
A022520
Describe previous term from the right (method B - initial term is 9).
9
9, 91, 1191, 119112, 21129112, 211291211221, 112212211191211221, 1122122111911322112212, 21112212223112911322112212, 21112212223112912112312311221321
(
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 1191 is obtained by saying "1 once, 9 once, 1 twice", which gives 119112.
PROG
(Haskell)
import Data.List (group, transpose)
a022520 n = a022520_list !! n
a022520_list = 9 : f [9] :: [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
Cf.
A022481
,
A022488
,
A022514
-
A022519
.
Sequence in context:
A286786
A123792
A383171
*
A020236
A068624
A034666
Adjacent sequences:
A022517
A022518
A022519
*
A022521
A022522
A022523
KEYWORD
nonn
,
base
,
easy
,
nice
AUTHOR
N. J. A. Sloane
EXTENSIONS
More terms from
Patrick De Geest
, Jun 15 1999
STATUS
approved