Linus Sequence by Sait2000

for(k=[1],C=0;++C<1e3;k[C]=X)for(E=X=3,A={};--E;A<F||(A=F,X=E))for(B=F=0,k[C]=E;B++*2<C;)for(D=0;k[C-D]==k[C-D-B]&&D<B;)B-++D||(F=B);print(k.join(''))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page