How to solve simultaneous congruence 3x= 14 mod 17, 7x= 13 mod 31

  • Thread starter Thread starter andrey21
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around solving simultaneous congruences, specifically the equations 3x ≡ 14 (mod 17) and 7x ≡ 13 (mod 31). Participants are exploring methods to approach these types of problems, particularly when they differ from simpler forms they are familiar with.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • The original poster attempts to relate the problem to simpler congruences they have previously solved. Some participants suggest expressing the congruences in terms of equations and finding common values for x. Others raise questions about the steps involved in manipulating the equations and finding modular inverses.

Discussion Status

Participants are actively engaging with the problem, with some providing detailed algebraic manipulations and others expressing confusion about the steps. There is a mix of approaches being discussed, but no consensus has been reached on a single method to solve the simultaneous congruences.

Contextual Notes

Some participants note the need to find modular inverses for the coefficients in the congruences, which adds complexity to the problem. The original poster also indicates a preference for simpler forms of congruences, highlighting a potential gap in understanding the current problem setup.

andrey21
Messages
475
Reaction score
0
Solve the following simultaneous congruence

3x= 14 mod 17

7x= 13 mod 31


My attempt

I have no problems solving when in the form:

x= 2 mod 13

x= 4 mod 27

for example but am confused by the above question, any help would be great.
 
Physics news on Phys.org
Well,
[tex]3x \equiv 14 mod 17 \Rightarrow 17 \mid (3x - 14) \Rightarrow 17n = 3x - 14 \Rightarrow x = \frac{17n+14}{3}[/tex]
[tex]7x \equiv 13 mod 31 \Rightarrow 31 \mid (7x - 13) \Rightarrow 31m = 7x - 13 \Rightarrow x = \frac{31m + 13}{7}[/tex]

Basically, we need to find values of x such that [tex]x = \frac{31m + 13}{7} = \frac{17n+14}{3}[/tex]

Solving for n or m should give you a line of values that will work.
 
Sorry I am still a little confused, solving for m I obtained:

31m = 7x-13 = 17n + 14 / 3
 
To solve 3x= 14 mod 17, you need to "divide" by 3- you need to find "1/3" in mod 17 which means you want to solve 3x= 1 mod 17. For this simple problem, you can note that 3(6)= 18 mod 17 so that x= 6 mod 17. For a more algorithmic method (specifically, using the Euclidean division algorithm) note that 3x= 1 mod 17 means that 3x= 1+ 17y which is the same as 3x- 17y= 1, a Diophantine equation. 3 divides into 17 5 times with remainder 2: 17(1)- 3(5)= 2. Further 2 divides into 3 once with remainder 1: 3- 2= 1. Replacing the "2" in that equation with the "17(1)- 3(5)" we have 3- (17(1)- 3(5))= 3(6)- 17(1)= 1. So x= 6 is a solution: 6 is "1/3" mod 17 (6(3)= 18= 1 mod 17)

Once we have that x= 14/3= 14(6)= 84= 16 mod 17 satisfies your first equation.

Similarly, to solve 7x= 13 mod 31, first solve 7x= 1 mod 31. That means that 7x= 1+ 31y or 7x- 31y= 1. 7 divides into 31 4 times with remainder 3: 31- 4(7)= 3. 3 divides into 7 twice with remainder 1: 7- 2(3)= 1. Replacing the "3" in that by 31- 4(7) we have 7- 2(31- 4(7)= 7(9)- 2(31) xo x= 9 is a solution: "1/7" is 9 mod 31. From that x= 13/7= 13(9)= 24 mod 31.

Your two equations are equivalent to x= 16 mod 17 and x= 24 mod 31 which you say you can solve.
 

Similar threads

Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
6K
Replies
5
Views
5K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
9K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K