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.

A022506 Describe previous term from the right (method A - initial term is 0).

Original entry on oeis.org

0, 10, 1011, 211011, 21102112, 122112102112, 122112101112212211, 2122112231101112212211, 21221122311021132221221112, 12312211321321121021132221221112
Offset: 0

Views

Author

Keywords

Comments

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

Examples

			The term after 1011 is obtained by saying "two 1's, one 0, one 1", which gives 211011.
		

Crossrefs

Programs

  • Haskell
    a022506 n = a022506_list !! n
    a022506_list = 0 : 10 : iterate (a045918 . a004086) 1011
    -- Reinhard Zumkeller, Mar 02 2014
  • Mathematica
    a[0] = 0;
    a[n_] := a[n] = Split[IntegerDigits[a[n-1]]] /. L_List /; IntegerQ[L[[1]]] :> {Length[L], L[[1]]} // Reverse // Flatten // FromDigits;
    a /@ Range[0, 9] (* Jean-François Alcover, Nov 26 2019 *)

Formula

For n > 1: a(n+1) = A045918(A004086(a(n))). - Reinhard Zumkeller, Mar 02 2014

Extensions

More terms from Erich Friedman