Skip to content

Monthly Archives: July 2007

A foray into number theory with Haskell

06-Jul-07
I encountered an interesting problem on reddit a few days ago which can be paraphrased as follows: Find a perfect square s such that 1597 s + 1 is also perfect square. After reading the discussion about implementing a brute-force algorithm to solve the problem and spending a futile half-hour or so trying my hand at find a better way, someone noticed that [...]