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 p be a prime number of the form 4 k + 1 . Show that

i = 1 k ip = ( p 2 1 ) 12 .

Answers

Proof. Let p = 4 k + 1 be a prime number. Put

S = i = 1 k ip = p + 2 p + + kp .

We first compute the last term kp = p 1 4 p . Note that

p 1 2 < kp < p + 1 2 ( p 1 2 ) 2 < p 1 4 p < ( p + 1 2 ) 2 p 2 2 p + 1 < p 2 p < p 2 + 2 p + 1 2 p + 1 < p < 2 p + 1 { p > 1 , 3 p + 1 > 0 .

Since these two last conditions are true, we obtain for any prime p = 4 k + 1 ,

p 1 2 < kp < p + 1 2 ,

which proves that

kp = p 1 2 .

Consider now the parabola 𝒫 with equation y 2 = px , and 𝒮 = [ [ 1 , p 1 4 ] ] × [ [ 1 , p 1 2 ] ] be the set of all ordered pairs of integers ( x , y ) satisfying 1 x p 1 4 , 1 y p 1 2 . The set 𝒮 has ( p 1 ) 2 8 members. Separate this set into two mutually exclusive subsets 𝒮 1 and 𝒮 2 according as y 2 > px or y 2 < px . Note that there is no pair ( x , y ) 𝒮 on the parabola 𝒫 , otherwise y 2 = px , where x , y are integers, thus p y 2 , p y , so p 2 y 2 = px , thus p x . But 1 x p 1 4 , so p x . This contradiction shows that

𝒫 𝒮 = { ( x , y ) 𝒮 y 2 = px } = .

To summarize,

𝒮 = { ( x , y ) 2 1 x p 1 4 , 1 y p 1 2 } , 𝒮 1 = { ( x , y ) 𝒮 y 2 > px } , 𝒮 2 = { ( x , y ) 𝒮 y 2 < px } ,

and 𝒮 = 𝒮 1 𝒮 2 , where 𝒮 1 𝒮 2 = , so that

| 𝒮 | = | 𝒮 1 | + | 𝒮 2 | . (1)

The set 𝒮 2 can be described as the set of all pairs ( x , y ) 2 such that 1 x k = ( p 1 ) 4 and 1 y < px . Since ( x , y ) 𝒫 , this last condition is equivalent to 1 y px , so that Card { y 1 y < px } = px . Therefore

| 𝒮 2 | = i = 1 k ip = S .

Similarly, the set 𝒮 1 can be described as the set of all pairs ( x , y ) 2 such that 1 y p 1 2 and 1 x y 2 p . Thus

| 𝒮 1 | = j = 1 ( p 1 ) 2 j 2 p .

By equation (1),

S = i = 1 ( p 1 ) 4 ip = ( p 1 ) 2 8 j = 1 ( p 1 ) 2 j 2 p . (2)

(Formula verified with Sage for all primes p 1 ( mod 4 ) up to 1000 .)

This seems not to be a progress, because the value of this last sum is not obvious. But consider the Euclidean division of j 2 by p . For all j [ [ 1 , p 1 2 ] ] ,

j 2 = p j 2 p + r j , 0 r j < p . (3)

Here r j = 0 if p j , and is a quadratic residue in [ [ 1 , p 1 ] ] if p j . By the solution of Problem 3.1.14, every quadratic residue modulo p is congruent to 1 2 , 2 2 , , ( ( p 1 ) 2 ) 2 , thus r j defined in (2) take all possible values of quadratic residues in [ [ 1 , p 1 ] ] when 1 y ( p 1 ) 2 . By Problem 3.1.15, the sum of all such residues is p ( p 1 ) 4 , thus

j = 1 ( p 1 ) 2 r j = p p 1 4 .

By equation (3),

j = 1 ( p 1 ) 2 j 2 = p j = 1 ( p 1 ) 2 j 2 p + j = 1 ( p 1 ) 2 r j ,

therefore, using j = 1 n j 2 = n ( n + 1 ) ( 2 n + 1 ) 6 for n = p 1 2 , we obtain

S 1 = j = 1 ( p 1 ) 2 j 2 p = 1 p ( j = 1 ( p 1 ) 2 j 2 j = 1 ( p 1 ) 2 r j ) = 1 p ( p p 2 1 24 p p 1 4 ) = p 2 1 24 p 1 4 = p 2 6 p + 5 24 = ( p 1 ) ( p 5 ) 24 .

Finally, by equation (2)

S = ( p 1 ) 2 8 ( p 1 ) ( p 5 ) 24 = p 1 8 ( p 1 p 5 3 ) = p 2 1 12 .

We have proved, for all prime p 1 ( mod 4 ) ,

i = 1 ( p 1 ) 4 ip = p 2 1 12 .

The star of this problem is well deserved!

User profile picture
2024-10-28 10:25
Comments