Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.2.24* ( For every prime $p \equiv 1 \pmod 4$ , $\sum_{i=1}^{(p-1)/4} \left \lfloor \sqrt{ip} \right \rfloor = (p^2 - 1)/12$)
Exercise 3.2.24* ( For every prime $p \equiv 1 \pmod 4$ , $\sum_{i=1}^{(p-1)/4} \left \lfloor \sqrt{ip} \right \rfloor = (p^2 - 1)/12$)
Let be a prime number of the form . Show that
Answers
Proof. Let be a prime number. Put
We first compute the last term . Note that
Since these two last conditions are true, we obtain for any prime ,
which proves that
Consider now the parabola with equation , and be the set of all ordered pairs of integers satisfying . The set has members. Separate this set into two mutually exclusive subsets and according as or . Note that there is no pair on the parabola , otherwise , where are integers, thus , , so , thus . But , so . This contradiction shows that
To summarize,
and , where , so that
The set can be described as the set of all pairs such that and . Since , this last condition is equivalent to , so that . Therefore
Similarly, the set can be described as the set of all pairs such that and . Thus
By equation (1),
(Formula verified with Sage for all primes up to .)
This seems not to be a progress, because the value of this last sum is not obvious. But consider the Euclidean division of by . For all ,
Here if , and is a quadratic residue in if . By the solution of Problem 3.1.14, every quadratic residue modulo is congruent to , thus defined in (2) take all possible values of quadratic residues in when . By Problem 3.1.15, the sum of all such residues is , thus
By equation (3),
therefore, using for , we obtain
Finally, by equation (2)
We have proved, for all prime ,
□
The star of this problem is well deserved!