A question on modular arithmetics

  • Thread starter Thread starter life is maths
  • Start date Start date
AI Thread Summary
The discussion centers on proving that the equation x² ≡ 1 (mod p) has exactly two solutions when p is a prime greater than 2. Participants clarify that the problem can be approached by factoring the equation into (x + 1)(x - 1) ≡ 0 (mod p) and noting that in modular arithmetic with a prime modulus, there are no zero divisors. This means that if the product of two factors is zero, at least one factor must be zero, leading to the solutions x ≡ 1 and x ≡ -1 (mod p). The confusion around zero divisors is addressed, emphasizing that for prime p, the factors cannot be the same, confirming the uniqueness of the solutions. Understanding these concepts is crucial for constructing a solid proof.
life is maths
Messages
37
Reaction score
0

Homework Statement





Hi, my question is:

Show that if p is a prime, x2≡1(mod p) has exactly two solutions for p>2.

Homework Equations





The Attempt at a Solution


I did:
p|x2-1
Then for a number a;
pa=x2-1
pa+1=x2
x=\mp\sqrt{pa+1}

But I did not use the fact that p is prime and greater than 2. Do you have any ideas? Thanks in advance.

This is not a homework but a suggested exercise before exam.
 
Physics news on Phys.org
It's more likely the problem is based on
x^2 - 1 = 0 (mod\ p)
(x+1)(x-1) = 0 (mod\ p)
and the facts about the "zero divisors" of mod p arithmetic.
 
Thank you, but we haven't learned zero divisors yet. Is it a subject related to rings?
Since I have no idea on that subject, do you have any ideas about how to solve it in another way? Thanks again :)
 
Yes, it is a topic in rings. It's also one of main reasons that people are interested in have a prime modulus.

If you can have non-zero numbers such a,b such that ab = 0 (mod K) then the mod K arithmetic is said to have "zero divisors". For example if you are solving

(x)(x+1) = 0 (mod 12) , you get one solution due to x = 3 because ( 3)(4) = 0 (mod 12).
You also can have the solutions x = 0 and x = 11. That's more than 2 solutions to this quadratic equation.

When the modulus is a prime number, you can solve an equation like
(x)(x+1) = 0 (mod p) just as you would solve it in ordinary algebra by assuming that one of the factors must be zero. That gives only two solutions.
 
Thanks, I think I understood the zero divisors, but I'm still a bit confused and couldn't actually constructed a good proof. I have (x+1)(x-1) = 0 (mod p) and what should I do next? Should I assume the factors are 0? How is it possible without knowing p? Thanks for your help.
 
life is maths said:
(x+1)(x-1) = 0 (mod p) and what should I do next? Should I assume the factors are 0?

Assume one or the other factor is zero. It's just like solving a quadratic equation by factoring.


How is it possible without knowing p?

Because p is a prime, so in its modular arithmetic there can't be two non-zero factors whose product is zero. Arithmetic modulo a prime has no zero divisors. And p > 2 so x+1 and x-1 can't be the same number.
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks
Back
Top