Computer has greatly released scientists from heavy calculation. Before computer is invented, calculation must be done by hand, which is boring and easy to make mistake. But now, with the help of computer much calculation can be finished within a second.
But one day Professor Smith met a strange problem. He had tried to find the positive solutions of the equation with the following form:
X ^ 2 – N * Y ^ 2 = 1,
in which N is a positive integer. But for many values of N, his poor computer seems cannot find an answer!
"That's strange!" said Professor Smith "There must be something wrong with my program!" And you, the assistant of Professor Smith, are assigned the work to solve the problem.