Period of first differences by henkma

m@main=do l<-getLine;print$[x|x<-[1..],all(==0)$read`map`words l#1#x]!!0;m
l#x=zipWith(-)l$drop x l

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

download

return to the top page