Chinese Remainder Theorem, discrete math problem. 5^{2003} equiv 3(mod 7).

Skye Vazquez

Skye Vazquez

Answered question

2022-09-05

Chinese Remainder Theorem, discrete math problem
5 2003 3 ( mod 7 )
5 2003 4 ( mod 11 )
5 2003 8 ( mod 13 )
Solve for 5 2003 (mod 1001) (Using Chinese remainder theorem).

Answer & Explanation

ivice7u

ivice7u

Beginner2022-09-06Added 18 answers

Step 1
Since we are given information about 5 2003 and then asked to find 5 2003 , I would start by letting x = 5 2003 .
x = 3 mod 7   s o   x = 7 i + 3. x = 4 mod 11   s o   x = 11 j + 4.
7 i + 3 = 11 j + 4 7 i 11 j = 1 7 divides into 11 once with remainder 4; 11 7 = 4. 4 divides into 7 once with remainder 3; 7 4 = 3   s o   7 ( 11 7 ) = 2 ( 7 ) 11 = 3. 3 divides into 4 once with remainder 1; 4 3 = 1   s o   ( 11 7 ) ( 2 ( 7 ) 11 ) = 2 ( 11 ) 3 ( 7 ) = 1.
i = 3 + 11 m   a n d   j = 2 + 7 m for some m. Replacing m with n + 1 , i = 3 + 11 n + 11 = 8 + 11 n and j = 2 + 7 n + 7 = 5 + 7 n. Check: 7 i 11 j = 7 ( 8 + 11 n ) 11 ( 5 + 7 n ) = 56 + 77 n 55 77 n = 1.
x = 7 i + 3 = 56 + 77 n + 3 = 59 + 77 n .
We also have x = 8 mod 13 so x = 13 k + 8. 59 + 77 n = 13 k + 8. 13 k 77 n = 51.
13 divides into 77 5 times with remainder 12: 77 5 ( 13 ) = 12 12 divides into 13 once with remainder 1: 13 12 = 1.
13 12 = 13 ( 77 5 ( 13 ) = 6 ( 13 ) 77 = 1 Multiply by 51: 306 ( 13 ) 51 ( 77 ) = 51.
Step 2
So k = 306 + 77 m and n = 51 + 13 m. Check 13 k 77 n = 3978 + 1001 m ( 3927 + 1001 m ) = 51.
So x = 59 + 77 n = 59 + 77 ( 51 + 13 m ) = 59 + 3927 + 1001 n = 3986 + 1001 n.
x = 52003 = 3986 = 983 ( mod 1001 ).
Check: 983 / 7 = 140 with remainder 3: 987 = 3 ( mod 7 ). 983 / 11 = 89 with remainder 4: 987 = 4 ( mod 11 ). 983 / 13 = 75 with remainder 8: 986 = 8 ( mod 13 ).
Manuel Leach

Manuel Leach

Beginner2022-09-07Added 13 answers

Step 1
Chinese Remainder Theorem
If m 1 , m 2 , , m k are positive integers with ( m i , m j ) = 1 for any 1 i < j k, then the system
x b 1 ( mod m 1 ) x b 2 ( mod m 2 ) x b k ( mod m k )
must have solutions for any integers b 1 , b 2 , , b k and the solution set is a congruence class modulo m 1 , m 2 , , m k that is, the solutions are formed by the numbers
x M 1 M 1 1 b 1 + M 2 M 2 1 b 2 + + M k M k 1 b k ( mod m 1 , m 2 , , m k )
Step 2
Where M i = m 1 , m 2 , , m k m i and M i 1 is the inverse of m i modulo mi for i = 1 , 2 , , k ..
Now you just have to recall that the inverse is any solution of the equation a x 1 ( mod m ) that has solutions if and only if ( a , m ) = 1.
With that being said let´s take x = 5 2003 and our system will be:
x 3 ( mod 7 )
x 4 ( mod 11 )
x 8 ( mod 13 )
Then, clearly the systmem holds the conditions of the theorem. Knowing that 11 7 13 = 1001 and after some calculations, we'll get:
M 1 = 1001 7 = 143 ; M 1 1 = 5 M 2 = 1001 11 = 91 ; M 2 1 = 4 M 3 = 1001 13 = 77 ; M 3 1 = 12
Therefore by CRT
x 143 5 3 + 91 4 4 + 77 12 8 ( mod 1001 )
x 10 , 993 983 ( mod 1001 )
The answer is 983.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?