Exercise 5.30

Show that ( RR ) + ( NN ) − ( RN ) − ( NR ) = ∑ ⁡ n = 1 p − 1 ( n ( n + 1 ) ∕ p ) . Evaluate this sum and show that it is equal to − 1 . (Hint : The result of Exercise 8 is useful.)

Answers

Proof. Let χ be the characteristic function of RR ∪ NN : if 1 ≤ n ≤ p − 1 , χ ( n ) = 1 if n , n + 1 are both quadratic residues, or if n , n + 1 are both quadratic nonresidues. Then

χ ( n ) = 1 2 ( 1 + ( n p ) ( n + 1 p ) )

(if χ ( n ) = 1 , ( n p ) ( n + 1 p ) = 1 , and ( n p ) ( n + 1 p ) = − 1 otherwise.)

Similarly, let χ ′ be the characteristic function of the complement RN ∪ NR : χ ( n ) = 1 if exactly one of the integer n , n + 1 is a residue, 0 otherwise. Then χ ′ ( n ) = 1 − χ ( n ) , so that

χ ′ ( n ) = 1 2 ( 1 − ( n p ) ( n + 1 p ) ) .

Since

| ( RR ) ∪ ( NN ) | = ∑ n = 1 p − 1 χ ( n ) | ( RN ) ∪ ( NR ) | = ∑ n = 1 p − 1 χ ′ ( n ) ,

we obtain

( RR ) + ( NN ) − ( RN ) − ( NR ) = ∑ n = 1 p − 1 ( χ ( n ) − χ ′ ( n ) ) = 1 2 ∑ n = 1 p − 1 ( 1 + ( n ( n + 1 ) p ) ) − ( 1 − ( n ( n + 1 ) p ) ) = ∑ n = 1 p − 1 ( n ( n + 1 ) p )

To evaluate this sum S , note that 4 n ( n + 1 ) = ( 2 n + 1 ) 2 − 1 , so

S = ∑ n = 1 p − 1 ( n ( n + 1 ) p ) = ∑ n = 1 p − 1 ( 4 n ( n + 1 ) p ) = ∑ n = 1 p − 1 ( ( 2 n + 1 ) 2 − 1 p ) .

This sum can be written S = ∑ ⁡ n ¯ ∈ 𝔽 p ∗ ( ( 2 n + 1 ) 2 − 1 ) ∕ p ) = ∑ n ¯ ∈ 𝔽 p ( ( 2 n + 1 ) 2 − 1 ) ∕ p ) , since ( 0 ∕ p ) = 0 . As f : 𝔽 p → 𝔽 p , n ¯ ↦ ( 2 n ¯ + 1 ) is a bijection ( 2 is invertible in 𝔽 p ∗ ),

∑ n ¯ ∈ 𝔽 p ( ( 2 n + 1 ) 2 − 1 p ) = ∑ y ¯ ∈ 𝔽 p ( y 2 − 1 p ) ( y = 2 n + 1 ) .

As p ∤ 1 , the evaluation of this last sum is given in Exercise 5.8 : S = − 1 , so

( RR ) + ( NN ) − ( RN ) − ( NR ) = ∑ n = 1 p − 1 ( n ( n + 1 ) p ) = − 1 .

□

User profile picture
2022-07-19 00:00
Comments