OFFSET
0,3
COMMENTS
Let W() be the substitution defined above. If we define the sequence S(n) by S(0) = {1}, S(n+1) = S(n) + W(S(n)), then this sequence is the limiting sequence of S(n) as n approaches infinity. - Charlie Neder, Jul 11 2018
LINKS
Charlie Neder, Table of n, a(n) for n = 0..9999
MATHEMATICA
s[1] = {1, 2}; s[2] = {3}; s[3] = {4}; s[4] = {1};
t[a_] := Join[a, Flatten[s /@ a]];
p[0] = {1}; p[1] = t[{1}]; p[n_] := t[p[n - 1]]
aa = p[6]
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Roger L. Bagula, Apr 15 2005
EXTENSIONS
New name from Joerg Arndt, Jul 14 2018
STATUS
approved