The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.



Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS").
Other ways to donate

(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A022507 Describe previous term from the right (method A - initial term is 3). 10


%S 3,13,1311,211311,21132112,122112132112,122112131112212211,

%T 2122112231131112212211,21221122311321132221221112,

%U 12312211321321121321132221221112

%N Describe previous term from the right (method A - initial term is 3).

%C Method A = 'frequency' followed by 'digit'-indication.

%H Reinhard Zumkeller, <a href="/A022507/b022507.txt">Table of n, a(n) for n = 0..21</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/LookandSaySequence.html">Look and Say Sequence</a>

%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Look-and-say_sequence">Look-and-say sequence</a>

%F a(n+1) = A045918(A004086(a(n))). - _Reinhard Zumkeller_, Mar 02 2014

%e E.g. the term after 1311 is obtained by saying "two 1's, one 3, one 1", which gives 211311.

%t A022507[1]:=3;A022507[n_]:=A022507[n]=FromDigits[Flatten[{Length[#],First[#]}&/@Split[Reverse[IntegerDigits[A022507[n-1]]]]]];Map[A022507,Range[15]] (* _Peter J. C. Moses_, Apr 22 2013 *)

%o (Haskell)

%o a022507 n = a022507_list !! n

%o a022507_list = iterate (a045918 . a004086) 3

%o -- _Reinhard Zumkeller_, Mar 02 2014

%Y Cf. A022506, A006711, A022482, A022508-A022513.

%K nonn,base,easy,nice

%O 0,1

%A _N. J. A. Sloane_.

%E More terms from _Erich Friedman_.

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 25 14:47 EST 2020. Contains 338625 sequences. (Running on oeis4.)