Number Sequence MEDIUM by henkma

import Data.Bits
main=mapM print[xor(0%x)x|x<-[0..254::Int]]
n%0=n;n%x=(n*2+x.&.1)%div x 2

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

download

return to the top page