Find an integer having the remainders ## 1, 2, 5, 5 ##

  • Thread starter Thread starter Math100
  • Start date Start date
  • Tags Tags
    Integer
AI Thread Summary
The integer solutions to the congruences x ≡ 1 (mod 2), x ≡ 2 (mod 3), x ≡ 5 (mod 6), and x ≡ 5 (mod 12) can be expressed as x = 12k + 5 for any integer k. This formulation shows that all numbers of the form 12k + 5 satisfy the given conditions, with the smallest solution being x = 5 when k = 0. The discussion highlights the consistency of the system of linear congruences, as all divisors (2, 3, 6) divide 12. Additionally, the Chinese Remainder Theorem is mentioned as a potential method for solving such problems. The overall conclusion is that x = 5 is a valid solution, with a general form of x = 12k + 5 for all integer k.
Math100
Messages
813
Reaction score
229
Homework Statement
Find an integer having the remainders ## 1, 2, 5, 5 ## when divided by ## 2, 3, 6, 12 ##, respectively. (Yih-hing, died ## 717 ##).
Relevant Equations
None.
Let ## x ## be an integer.
Then ## x\equiv 1\pmod {2}, x\equiv 2\pmod {3}, x\equiv 5\pmod {6} ## and ## x\equiv 5\pmod {12} ##.
Note that ## x\equiv 5\pmod {6}\implies x\equiv 5\pmod {2\cdot 3} ## and ## x\equiv 5\pmod {12}\implies x\equiv 5\pmod {3\cdot 4} ##.
Since ## gcd(2, 3)=1 ## and ## gcd(3, 4)=1 ##, it follows that ## x\equiv 1\pmod {4} ##.
This means ## x\equiv 2\pmod {3} ## and ## x\equiv 1\pmod {4} ##.
Now we have ## x=2+3a ## where ## a=1+4b ## for some ## a, b\in\mathbb{N} ##.
Thus ## x=2+3a=2+3(1+4b)=5+12b=5+12(1)=17 ##.
Therefore, the integer is ## 17 ##.
 
Physics news on Phys.org
Why is ##a\equiv 1 \pmod{5}?##.

You get directly from the given conditions that ##x=12k+5.## From that, ##x\equiv 1\pmod{2}\, , \,x\equiv 2\pmod{3}## and ##x\equiv 5\pmod{6}## follows automatically. So ##x=12k+5## is actually all we have, and conversely, all numbers ##12k+5## fulfill the criteria, e.g. ##x=5.##
 
fresh_42 said:
Why is ##a\equiv 1 \pmod{5}?##.

You get directly from the given conditions that ##x=12k+5.## From that, ##x\equiv 1\pmod{2}\, , \,x\equiv 2\pmod{3}## and ##x\equiv 5\pmod{6}## follows automatically. So ##x=12k+5## is actually all we have, and conversely, all numbers ##12k+5## fulfill the criteria, e.g. ##x=5.##
I don't understand your question about why is ## a\equiv 1\pmod {5} ##. But I found out that all ## 2, 3, 6 ## divide ## 12 ##, so the system of linear congruences is consistent. And that is why I got ## x=5+12b ## at the end.
 
Math100 said:
I don't understand your question about why is ## a\equiv 1\pmod {5} ##.
Typo, I meant ##\pmod{4}.##
Math100 said:
But I found out that all ## 2, 3, 6 ## divide ## 12 ##, so the system of linear congruences is consistent. And that is why I got ## x=5+12b ## at the end.
You can get this right from the start from ##x\equiv 5\pmod{12}## without any calculation.
 
fresh_42 said:
Typo, I meant ##\pmod{4}.##

You can get this right from the start from ##x\equiv 5\pmod{12}## without any calculation.
So how would you show the work for this problem?
 
Math100 said:
So how would you show the work for this problem?
##x\equiv 5\pmod{12} \Longrightarrow x=12k+5## for some ##k\in \mathbb{Z}.##
Conversely, any number ##x=12k+5## fulfills all given conditions and are such valid solutions.

The smallest solution is for ##k=0## that means ##x=5.##
 
  • Like
  • Wow
Likes DrClaude, topsquark and Math100
fresh_42 said:
##x\equiv 5\pmod{12} \Longrightarrow x=12k+5## for some ##k\in \mathbb{Z}.##
Conversely, any number ##x=12k+5## fulfills all given conditions and are such valid solutions.

The smallest solution is for ##k=0## that means ##x=5.##
That was short.
 
As a comment, you may also use the Chinese Remainder Theorem. Just need to make sure the remainder is indeed Chinese ;).
 

Similar threads

Back
Top