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.
%I A293838 #11 Oct 22 2022 16:18:37 %S A293838 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, %T A293838 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, %U A293838 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 %N A293838 "Look once to the left" sequence starting with 1,2 (see comment). %C A293838 Stage 0: we start from 1,2. %C A293838 Stage 1: we add one copy of the block to the left of the last term (here the block 1) giving 1,2,1. %C A293838 Stage 2: we add one copy of the block to the left of the last term (here the block 1,2) giving 1,2,1,1,2. %C A293838 Stage 3: we add one copy of the block to the left of the last term (here the block 1,2,1,1) giving 1,2,1,1,2,1,2,1,1. %C A293838 Iterate the process. %C A293838 At stage n there are 2^n+1 terms. %F A293838 Limit_{n->oo} (a(1) + a(2) + ... + a(n))/n = 1.354.... %t A293838 Nest[Join[#, Take[#, Length@ # - 1]] &, {1, 2}, 7] (* _Michael De Vlieger_, Oct 18 2017 *) %o A293838 (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]; %Y A293838 Cf. A293630, A293811. %K A293838 nonn %O A293838 1,2 %A A293838 _Benoit Cloitre_, Oct 17 2017