A Foray into Number Theory with Haskell

from blog Fred Akalin, | ↗ original
// See https://github.com/Khan/KaTeX/issues/85 . KaTeXMacros = { "\\cfrac": "\\dfrac{#1}{#2}\\kern-1.2pt", }; I encountered an interesting problem on reddit a few days ago which can be paraphrased as follows: Find a perfect square \(s\) such that \(1597s + 1\) is also perfect square. After reading the discussion about implementing a...