login
Describe the previous term! (method B - initial term is 4).
10

%I #14 Jan 05 2018 22:01:47

%S 4,41,4111,4113,411231,4112213111,411222113113,41122312311231,

%T 4112223111213112213111,41122331132111311222113113,

%U 411222321231211331122312311231

%N Describe the previous term! (method B - initial term is 4).

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

%H Seiichi Manyama, <a href="/A022500/b022500.txt">Table of n, a(n) for n = 1..23</a>

%e E.g. the term after 4113 is obtained by saying "4 once, 1 twice, 3 once", which gives 411231.

%t a[1] = 4;

%t a[n_] := a[n] = {#[[1]], Length[#]}& /@ Split[a[n-1] // IntegerDigits] // Flatten // FromDigits;

%t Array[a, 11] (* _Jean-François Alcover_, Jul 13 2016 *)

%Y Cf. A007651, A022470, A022499, A022501-A022505.

%K nonn,base,easy,nice

%O 1,1

%A _N. J. A. Sloane_