Kolakoski Sequence by recursive

S="122"
i=2
exec"S+=`i%2+1`*int(S[i]);i+=1;"*6665
print S

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

download

return to the top page