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 [...]