Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 7.3.6 (Hermite's method for Fermat's theorem on sums of two squares)
Exercise 7.3.6 (Hermite's method for Fermat's theorem on sums of two squares)
Let be a prime number, , and suppose that . (A quick method for finding such a is described in Section 2.9., in the remarks preceding Theorem 2.45.) Write , and let be the largest integer such that . Show that , and hence that . Put . Show that , and that . Deduce that .
Answers
Proof. We suppose that . Then , so there exists some integer such that .
Write . Since , there exists a largest integer such that . Since the sequence is increasing, this means that
By Problem 5,
-
If ,
-
If , then
In either case,
hence
Put . Then , thus , and by (1) and (3),
So
Moreover
since .
The only multiple of such that is , so
This gives another proof of Fermat’s theorem on sums of two squares, and one more fast algorithm to find such that (if ). □