Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 7.8.1* (Solutions to $x^2 -d y^2 = -1$)
Exercise 7.8.1* (Solutions to $x^2 -d y^2 = -1$)
Assuming that is solvable, let be the smallest positive solution. Prove that defined by (*) is the smallest positive solution of . Also prove that all solutions of are given by , where , with , and that all solutions of are given by with .
(*) typo corrected (R.G.)
Answers
Proof. Here is a positive integer which is not a perfect square.
By Theorem 7.25, all solutions of are to be found among , where are the convergents of the expansion of . Since the sequences and are increasing, if and are positives solutions of , then and , or and . The relation defined on the set of positive solutions of by
is a total order relation, and even a well-ordering. So we may consider a smallest positive solution of .
Let be the smallest positive solution of (assuming that is solvable, we will prove later that is a solution of ). For every , we define , by .
Let be any positive solution of , so that
We know that and thus , so the sequence is strictly increasing, with limit . Since , there is some integer such that
Assume for the sake of contradiction that , so that
Since , we have
we can multiply the inequality (1) by to obtain
Define integers and by . Then
Moreover
therefore , where , hence , so
Using (4) and (5), we obtain
so is a positive solution of .
Since is the smallest positive solution of , then and , so , in contradiction with (4).
This contradiction shows that , so every solution of is equal to for some index .
If was a solution of , then for every , therefore is not solvable, in contradiction with the hypothesis. This shows that
Moreover,
hence all solutions of are given by , where , and all solutions of are given by with .
In particular, the smallest solution of is , such that . □