Kolakoski Sequence by teebee

class K{static void Main(){var a=new int[10000];for(int i=0,n=0;;n+=--a[n]<1?1:0)System.Console.Write(a[i++]=1+n%2);}}

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

download

return to the top page