A293838 "Look once to the left" sequence starting with 1,2 (see comment).
1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 2
Offset: 1
Keywords
Programs
-
Mathematica
Nest[Join[#, Take[#, Length@ # - 1]] &, {1, 2}, 7] (* Michael De Vlieger, Oct 18 2017 *)
-
PARI
v=[1,2];for(n=1,10,l=length(v);w=vector(l-1,i,v[i]);v=concat(v,if(v[l]-1,concat(w),w)));a(n)=v[n];
Formula
Limit_{n->oo} (a(1) + a(2) + ... + a(n))/n = 1.354....
Comments