Solve the Congruence (Discrete Math)

In summary: That number is the inverse of 7 in modulo 17. In summary, the student is trying to solve a congruence problem, and is stuck because they don't understand what modulo is. They have found the gcd and inverse, and are trying to solve for x.
  • #1
erok81
464
0

Homework Statement



Solve the congruence 2x≡7 (mod 17)

Homework Equations



None.

The Attempt at a Solution



I think my main problem with this is I am still confused on what modulo actually means. But I'll save that for some other time.

So here is what I have done so far.

I found the gcd using the Euclidean Algorithm which was 1 and therefore also has an inverse.

gcd(7,17,)=1

Next working backwards I obtained the inverse which was 5.

This is where I am stuck. I've tried looking at examples, but I am still not getting it. The texts starts with multiplying both sides by by the inverse which gives me 5·2x ≡ 5·7 (mod 17)

Any idea where to go next?
 
Physics news on Phys.org
  • #2
5 is the inverse of 7 mod 17. You don't want to multiply both sides by that. You want to multiply by the inverse of 2 mod 17.
 
  • #3
erok81 said:

Homework Statement



Solve the congruence 2x≡7 (mod 17)

Homework Equations



None.

The Attempt at a Solution



I think my main problem with this is I am still confused on what modulo actually means. But I'll save that for some other time.
Saving that for another time is not a good idea. The equation 2x [itex]\equiv[/itex] 7 (mod 17) says that if you divide 2x by 17, the remainder is 7. We don't care about the quotient, just the remainder. So any number divided by 17 will have a remainder of 0, 1, 2, 3, 4, ... , 15, or 16.




erok81 said:
I think my main problem with this is I am still confused on what modulo actually means. But I'll save that for some other time.



So here is what I have done so far.

I found the gcd using the Euclidean Algorithm which was 1 and therefore also has an inverse.

gcd(7,17,)=1

Next working backwards I obtained the inverse which was 5.
The inverse of what? You should say that you are finding the inverse of 7, which is 5. The reason is that 5 * 7 = 35 [itex]\equiv[/itex] 1 (mod 17). (35 = 2 * 17 + 1, so 1 is the remainder.)
Since the product of 5 and 7 is 1 (using modular multiplication), then 5 and 7 are inverses.


erok81 said:
This is where I am stuck. I've tried looking at examples, but I am still not getting it. The texts starts with multiplying both sides by by the inverse which gives me 5·2x ≡ 5·7 (mod 17)

Any idea where to go next?
 
  • #4
Mark44 said:
Saving that for another time is not a good idea. The equation 2x [itex]\equiv[/itex] 7 (mod 17) says that if you divide 2x by 17, the remainder is 7. We don't care about the quotient, just the remainder. So any number divided by 17 will have a remainder of 0, 1, 2, 3, 4, ... , 15, or 16.

I know it's a bad idea. As soon as learn this (last problem on the homework) I am going to go back through and master it. Which is kind of backwards I suppose. :redface:

But now that you typed that out it makes sense. My professor compared it to clock arithmetic. With that and your post I get it now.

Mark44 said:
The inverse of what? You should say that you are finding the inverse of 7, which is 5. The reason is that 5 * 7 = 35 [itex]\equiv[/itex] 1 (mod 17). (35 = 2 * 17 + 1, so 1 is the remainder.)
Since the product of 5 and 7 is 1 (using modular multiplication), then 5 and 7 are inverses.

Sloppy on my part. I was trying to follow examples in the text. Now I see I should be referencing which inverse I am looking for. I'll practice a few more inverse problems as well.

Now for the x. How do we go about solving for the x?
 
  • #5
Multiply both sides of the equation 2x [itex]\equiv[/itex] 7 (mod 17) by the inverse of 2. The inverse of 2 (in modulo 17) is a number b such that b*2 [itex]\equiv[/itex] 1 (mod 17). You should be able to figure it out by trial and error by going through the 17 possible numbers (0, ..., 16) and doubling them. Find the doubled number that has a remainder of 1 when you divide by 17.
 

Related to Solve the Congruence (Discrete Math)

1. What is a congruence in discrete math?

A congruence in discrete math is a relationship between two integers, where the remainders of both integers are equal when divided by a given modulus. This is represented as a ≡ b (mod n), where a and b are the integers and n is the modulus.

2. How do you solve a congruence equation?

To solve a congruence equation, you must first determine the modulus. Then, use the properties of congruence to manipulate the equation and isolate the variable. Finally, use the inverse of the variable's coefficient to find the solution.

3. What are the properties of congruence in discrete math?

The properties of congruence in discrete math are reflexive, symmetric, and transitive. Reflexive property states that a number is congruent to itself (a ≡ a). Symmetric property states that if a is congruent to b, then b is also congruent to a (a ≡ b implies b ≡ a). Transitive property states that if a is congruent to b and b is congruent to c, then a is congruent to c (a ≡ b and b ≡ c implies a ≡ c).

4. Can congruence be applied to operations other than addition and multiplication?

Yes, congruence can be applied to other operations such as subtraction and division. However, the modulus must be relatively prime to the numbers involved in the operation for the congruence to hold.

5. How is congruence used in cryptography?

Congruence is used in cryptography to ensure the security and confidentiality of messages. It is used in algorithms such as RSA and Diffie-Hellman to encrypt and decrypt information by using large prime numbers and modular arithmetic.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
5K
  • Calculus and Beyond Homework Help
Replies
16
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
992
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
Back
Top