6N plus minus one by tttaki

s=shows
f n|mod n 6>4=s(div(n+1)6)" - 1"|1>0=s(div(n-1)6)" + 1"
m@main=do n<-readLn;putStrLn$s n" = 6 * "++f n;m

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

download

return to the top page