cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A022517 Describe previous term from the right (method B - initial term is 6).

This page as a plain text file.
%I A022517 #15 Dec 05 2014 09:09:36
%S A022517 6,61,1161,116112,21126112,211261211221,112212211161211221,
%T A022517 1122122111611322112212,21112212223112611322112212,
%U A022517 21112212223112612112312311221321
%N A022517 Describe previous term from the right (method B - initial term is 6).
%C A022517 Method B = 'digit'-indication followed by 'frequency'.
%H A022517 Reinhard Zumkeller, <a href="/A022517/b022517.txt">Table of n, a(n) for n = 0..21</a>
%e A022517 The term after 1161 is obtained by saying "1 once, 6 once, 1 twice", which gives 116112.
%o A022517 (Haskell)
%o A022517 import Data.List (group, transpose)
%o A022517 a022517 n = a022517_list !! n
%o A022517 a022517_list = 6 : f [6] :: [Integer] where
%o A022517    f xs = (read $ concatMap show ys) : f ys where
%o A022517           ys = concat $ transpose [map head zss, map length zss]
%o A022517           zss = reverse $ group xs
%o A022517 -- _Reinhard Zumkeller_, Jan 26 2014
%Y A022517 Cf. A022481, A022488, A022514-A022520.
%K A022517 nonn,base,easy,nice
%O A022517 0,1
%A A022517 _N. J. A. Sloane_
%E A022517 More terms from _Patrick De Geest_, Jun 15 1999