Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 4.4.26* (If $p$ is a prime then $\lfloor (2+\sqrt{5})^p\rfloor \equiv 2^{p+1} \pmod {20p}$)
Exercise 4.4.26* (If $p$ is a prime then $\lfloor (2+\sqrt{5})^p\rfloor \equiv 2^{p+1} \pmod {20p}$)
Show that if is a prime then .
Answers
Proof. Consider the sequence defined by
Let , so that . Then , thus are the roots of the polynomial .
By Theorem 4.10, is characterized by
Since , and is odd, then , thus
Therefore, if is an odd prime,
It remains to show that .
If , then , so is true for . In the following, we will suppose that , so that .
We look at the congruences modulo and .
-
Modulo 4.
By (1), , where , thus for all odd integers , so
-
Modulo 5.
We note that , thus for all . First . If we suppose that for some , and , then . The induction is done, which proves that for all , . In particlular
-
Modulo 20.
Since , we conclude from (3) and (4) that
-
Modulo p.
As in Problems 19, 20, 21, consider the sequence defined by
where denotes the class of modulo . Then, for all ,
The discriminant of the polynomial is . Moreover, using the law of quadratic reciprocity,
So is a square in if and only if .
-
If , then has two roots in . Since and , then , thus .
By induction, we obtain thus
By Fermat’s theorem, , thus , so
-
If , then is irreducible over . Then has two roots in , where is a quadratic extension of .
We proved in Problem 20 (see equality (8)) that
Therefore
Since , we obtain , so
Since , there is no other case, and in both cases,
Since , (5) and (6) give
We know that this is true also for .
In conclusion, for all odd prime ,
-
Note: There are two much odd composite numbers which satisfy this property, so there is no hope to obtain a good primality test. Up to 1000, they are