Kolakoski Sequence by *yuko*

var a:array[0..9999]of byte;i,j:word;begin repeat a[i]:=1+j div 2and 1;j:=j+3-a[j div 2];write(a[i]);i:=i+1until 0>0end.

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

download

return to the top page