Kolakoski Sequence by jpl

s=[1,2,2];2.upto(6666){|i|s+=[i%2+1]*s[i]};$><<s

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

download

return to the top page