The graph, shown below, of the hyperbola: , passes through four positive lattice points:.
It can be shown that those 4 points are the only positive lattice points that the above hyperbola touches. (A lattice point is a point on the xy-plane where both n and m are integers.)
Given the integers a and b, write a function that counts the number of positive lattice points that the hyperbola: , passes through.
NOTE: The trivial point , is not to be included in the count.

Solution Stats

11 Solutions

8 Solvers

Last Solution submitted on Nov 28, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...