Proof: p=1 mod 4 if p|x^2+1 Problem statement

  • Context: MHB 
  • Thread starter Thread starter I like Serena
  • Start date Start date
  • Tags Tags
    Proof
Click For Summary

Discussion Overview

The discussion revolves around proving that if an odd prime \( p \) divides \( n = x^2 + 1 \) for some integer \( x \), then \( p \equiv 1 \mod 4 \). Participants explore various approaches and reasoning related to modular arithmetic and the properties of primes.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants note that the case \( p = 3 \mod 4 \) is particularly relevant, but express difficulty in deriving conclusions from modular calculations.
  • Others point out that \( p = 5 \) works since it is congruent to \( 1 \mod 4 \) and divides \( x^2 + 1 \) when \( x = \pm 2 \).
  • One participant suggests that if \( p \equiv 3 \mod 4 \), it may lead to a contradiction, proposing to check specific primes like \( p = 3, 7, \) and \( 11 \) to illustrate this point.
  • A hint is provided regarding determining the order of \( x \) in \( \mathbb{Z}/p\mathbb{Z}^* \), which some participants find helpful.
  • Another participant presents a proof outline indicating that if \( x^2 \equiv -1 \mod p \), then the order of \( x \) modulo \( p \) cannot be \( 2 \), leading to the conclusion that \( 4 \) divides \( p - 1 \) based on Fermat's little theorem.

Areas of Agreement / Disagreement

Participants express various viewpoints on the implications of \( p \equiv 3 \mod 4 \), with some suggesting contradictions arise from this assumption, while others explore the conditions under which \( p \equiv 1 \mod 4 \) holds. The discussion remains unresolved with multiple competing views on how to approach the proof.

Contextual Notes

Participants note the importance of specific modular calculations and the implications of Fermat's little theorem, but the discussion does not fully resolve the generalization of these findings.

I like Serena
Science Advisor
Homework Helper
MHB
Messages
16,335
Reaction score
258
Problem statement

Let n be a whole number of the form n=x^2+1 with x \in Z, and p an odd prime that divides n.
Proof: p \equiv 1 \pmod 4.Attempt at a solution

The only relevant case is if p=3 (mod 4).

If I try to calculate mod 3, or mod 4, or mod p, I'm not getting anywhere.

Help?
 
Mathematics news on Phys.org
ILikeSerena said:
Attempt at a solution

The only relevant case is if p=3 (mod 4).

If I try to calculate mod 3, or mod 4, or mod p, I'm not getting anywhere.

Help?

What? 3 isn't congruent to 1 mod 4. p = 5 would work since 5 is congruent to 1 mod 4 and 5|(x^2+1) when x = pm 2.

Now have can you show that if n is an integer such that p|n then p is congruent to 1 mod 4.

I don't know at the moment but I will think about it more.
 
dwsmith said:
What? 3 isn't congruent to 1 mod 4. p = 5 would work since 5 is congruent to 1 mod 4 and 5|(x^2+1) when x = pm 2.

Now have can you show that if n is an integer such that p|n then p is congruent to 1 mod 4.

I don't know at the moment but I will think about it more.

Thanks for replying.

Since p is odd, it is either congruent to 1 or 3 mod 4.
If it is congruent to 1, we have what we need to proof.
So we need to proof that if p=3 mod 4 it would lead to a contradiction.

If we check for instance p=3, we can tell that x^2+1=1,2 mod 3, which is a contradiction (since p=0 mod 3).
With p=7, we can check all possibilities mod 7, which indeed also leads to a contradiction.
Same with p=11.

But how can we generalize this? :confused:
 
I received a hint for this problem (a first year algebra problem btw).

It's:
Hint: determine the order of x in Z/pZ*.

I've got it! I've got it! :D
 
ILikeSerena said:
I received a hint for this problem (a first year algebra problem btw).

It's:
Hint: determine the order of x in Z/pZ*.

I've got it! I've got it! :D
here's a proof which is essentially the same as you have pointed out but little more straight forward:

$x^2 +1 \equiv 0 \mod p$
$\Rightarrow x^2 \equiv -1 \mod p$ ----> we get order of $x$ mod $p$ is not 2.
$\Rightarrow x^4 \equiv 1 \mod p$. ----> one can now easily conclude that the order of $x$ mod $p$ is $4$.

Thus $4|(p-1)$. why? (hint: Fermat's little theorem).
 

Similar threads

Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 48 ·
2
Replies
48
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
17
Views
3K
Replies
16
Views
3K
  • · Replies 96 ·
4
Replies
96
Views
12K