Exercise 9.31

Let p be prime, p ≡ 1 ( mod 4 ) . Show that p = a 2 + b 2 where a and b are uniquely determined by the conditions a ≡ 1 ( mod 4 ) , b ≡ − ( ( p − 1 ) ∕ 2 ) ! a ( mod p ) .

Answers

Proof. Recall the following lemma :

Lemma :

Let p be prime, p ≡ 1 [ 4 ] , then [ ( p − 1 2 ) ! ] 2 ≡ − 1 [ p ] .

By Wilson’s theorem (Prop. 4.1.1, Corollary), ( p − 1 ) ! ≡ − 1 [ p ] .

− 1 ≡ ( p − 1 ) ! = 1.2 . ⋯ . ( p − 1 2 ) ( p + 1 2 ) ⋯ ( p − 2 ) ( p − 1 ) ≡ 1.2 . ⋯ p − 1 2 [ − ( p − 1 2 ) ] ⋯ ( − 2 ) ( − 1 ) ≡ ( − 1 ) ( p − 1 ) ∕ 2 [ ( p − 1 2 ) ! ] 2 ≡ [ ( p − 1 2 ) ! ] 2 [ p ] , since p ≡ 1 [ 4 ] .
∙
We show that there exists a pair a , b ∈ ℤ which verifies the sentence.

By lemma 5 section 7, as p ≡ 1 [ 4 ] , there exists an irreducible π such that N ( π ) = p , and we can choose π such that π = A + Bi is primary (lemma 7 section 7), so A is odd.

If A ≡ 1 ( mod 4 ) , we take a = A , and if A ≡ 3 ( mod 4 ) , we take a = − A : then a ≡ 1 ( mod 4 ) .

Let u = ( p − 1 2 ) ! . Then 0 ≡ p = A 2 + B 2 ( mod p ) , B 2 ≡ − A 2 ≡ ( uA ) 2 ( mod p ) .

p ∣ ( B − uA ) ( B + uA ) , thus B ≡ ± uA ( mod p ) .

Since a = ± A , B ≡ ± ua ( mod p ) .

If B ≡ − ua ( mod p ) , we take b = B , if not b = − B .

Then a , b are such that p = a 2 + b 2 , a ≡ 1 [ 4 ] , b ≡ − ( ( p − 1 ) ∕ 2 ) ! a [ p ] .

∙
Unicity of the pair ( a , b ) such that p = a 2 + b 2 , a ≡ 1 [ 4 ] , b ≡ − ( ( p − 1 ) ∕ 2 ) ! a [ p ] .

Suppose that c , d are such that p = c 2 + d 2 , c ≡ 1 [ 4 ] , d ≡ − ( ( p − 1 ) ∕ 2 ) ! c [ p ] .

Let π = a + ib , λ = c + id . As p = Nπ = Nλ is a rational prime, π and λ are primes in D , and p = π π ¯ = λ λ ¯ , thus λ is associate to π or π ¯ . :

λ ∈ { π , − π , iπ , − iπ , π ¯ , − π ¯ , i π ¯ , − i π ¯ } .

As a , c are odd, and b , d even, it remains only the possibilities λ = ± π , λ = ± π ¯ , thus c = ± a . Moreover a ≡ c ≡ 1 [ 4 ] , thus a = c , and d ≡ − ( ( p − 1 ) ∕ 2 ) ! c ≡ − ( ( p − 1 ) ∕ 2 ) ! a ≡ b [ p ] .

p = a 2 + b 2 = a 2 + d 2 , so d = ± b , and d ≡ b [ p ] .

If d = − b , then p ∣ 2 b , thus p ∣ b , and also p ∣ a , so p 2 ∣ a 2 + b 2 = p : this is impossible. So a = c , b = d . Unicity is proved.

Conclusion : if p ≡ 1 [ 4 ] , there exists an unique pair a , b such that

p = a 2 + b 2 , a ≡ 1 ( mod 4 ) , b ≡ − ( ( p − 1 ) ∕ 2 ) ! a ( mod p ) .

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