Solving x^2=1 (mod pq) with Odd Primes

  • Thread starter pupeye11
  • Start date
  • Tags
    Primes
In summary, the conversation discusses the investigation of solutions to the equation x^2=1 (mod pq), where p and q are distinct odd primes. It is shown that for an odd prime p, there are exactly two solutions to the equation (mod p). The next part involves finding all pairs (a,b) that satisfy a^2=1 (mod p) and b^2=1 (mod q). This can be solved by using the solutions from part (a). For specific values of p=17 and q=23, the conversation then asks to compute an integer x modulo 17*23 that satisfies x=a (mod 17) and x=b (mod 23) for each pair (a,b) from
  • #1
pupeye11
100
0

Homework Statement



The idea of this problem is to investigate the solutions to x^2=1 (mod pq), where p,q are distinct odd primes.

(a) Show that if p is an odd prime, then there are exactly two solutions (mod p) to x^2=1 (mod p). (Hint: difference of two squares)

(b) Find all pairs (a,b) such that a^2=1 (mod p) and b^2=1 (mod q)

(c) Let p=17 and q=23. For each pair (a,b) from part (b), compute an integer x modulo 17*23 such that x=a(mod 17) and x=b(mod 23)

(d) Verify that each integer found in part (c) is a solution to x^2=1 (mod 17*23)

The Attempt at a Solution



For part (a), rewrite it as x^2-1= 0 (mod p). Then that splits into (x+1)(x-1)= 0 (mod p). which can be further split into (x+1)= 0 (mod p) and (x-1)= 0 (mod p). Then since p is an odd prime x= -1+p (mod p) cannot equal x=1 (mod p) so there are exactly two solutions.

I have no idea where to start on (b) though.
 
Physics news on Phys.org
  • #2
(b) looks like it follows immediately from (a) to me. You know the 2 solutions for a and the 2 solutions for b, which should give you 4 pairs, I think.
 
  • #3
Yup, I don't know why I didn't see that right away. Thanks!
 

1. How do you solve for x in the equation x^2=1 (mod pq) with odd primes?

To solve for x in this equation, we can use the Chinese Remainder Theorem. First, we need to rewrite the equation as two separate equations, x^2=1 (mod p) and x^2=1 (mod q), where p and q are the two odd primes. Then, we can solve each equation separately using quadratic residue properties and the Legendre symbol. Finally, we can combine the solutions using the Chinese Remainder Theorem to get the final solution for x.

2. Can this equation have multiple solutions for x?

Yes, this equation can have multiple solutions for x. In fact, there are exactly four solutions for x, as long as p and q are distinct odd primes. The four solutions are x=±1 (mod pq) and x=±1 (mod pq). This is because the quadratic equation has two solutions for x, and the Chinese Remainder Theorem allows for two solutions for each equation.

3. Are there any special cases when solving this equation?

Yes, there are a few special cases when solving this equation. One special case is when p=q, which results in a simpler equation of x^2=1 (mod p^2). Another special case is when p and q are equal to 3, in which case the solutions for x are only ±1 (mod 9). Additionally, if either p or q is equal to 2, then there are only two solutions for x, which are ±1 (mod 2).

4. How is this equation used in cryptography?

This equation is used in cryptography for generating public and private keys in the RSA encryption algorithm. The equation is used to find two large prime numbers, p and q, and then use the Chinese Remainder Theorem to calculate the private key. This private key is then used to decrypt messages that have been encrypted using the public key.

5. Can this equation be solved with non-prime numbers?

No, this equation can only be solved with odd prime numbers. This is because the Chinese Remainder Theorem only works with co-prime numbers, and all odd primes are co-prime to each other. If we were to use non-prime numbers, the equation would have an infinite number of solutions, making it impossible to solve for x.

Similar threads

  • Calculus and Beyond Homework Help
Replies
15
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
769
  • Calculus and Beyond Homework Help
Replies
16
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
954
  • Calculus and Beyond Homework Help
Replies
11
Views
1K
  • Calculus and Beyond Homework Help
Replies
16
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
737
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Back
Top