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 picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top