Solve the Congruence (Discrete Math)

  • Thread starter Thread starter erok81
  • Start date Start date
  • Tags Tags
    Discrete math
Click For Summary
SUMMARY

The discussion focuses on solving the congruence 2x ≡ 7 (mod 17) using modular arithmetic principles. The user initially confuses the inverses involved, mistakenly identifying the inverse of 7 instead of 2. The correct approach involves finding the multiplicative inverse of 2 modulo 17, which is necessary to isolate x. The Euclidean Algorithm confirms that gcd(2, 17) = 1, allowing for the existence of an inverse, which is determined through trial and error.

PREREQUISITES
  • Understanding of modular arithmetic
  • Familiarity with the Euclidean Algorithm
  • Knowledge of multiplicative inverses in modular systems
  • Basic algebraic manipulation skills
NEXT STEPS
  • Learn how to find multiplicative inverses in modular arithmetic
  • Study the properties of congruences and their applications
  • Practice solving various congruences using the Euclidean Algorithm
  • Explore real-world applications of modular arithmetic, such as cryptography
USEFUL FOR

Students of discrete mathematics, particularly those studying number theory and modular arithmetic, as well as educators looking for examples of congruence problems.

erok81
Messages
454
Reaction score
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
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.
 
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 \equiv 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 \equiv 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?
 
Mark44 said:
Saving that for another time is not a good idea. The equation 2x \equiv 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 \equiv 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?
 
Multiply both sides of the equation 2x \equiv 7 (mod 17) by the inverse of 2. The inverse of 2 (in modulo 17) is a number b such that b*2 \equiv 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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
2
Views
1K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K