Problem 137 added.

A nice one, it kept me thinking until I saw the Pell equation. Then the
indentation chaos (although extermely unusual, it happened today).
Sorted it out, thankfully.