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

  • Thread starter Thread starter Math100
  • Start date Start date
  • Tags Tags
    Integer
Click For Summary
SUMMARY

The integer that satisfies the conditions of the congruences \(x \equiv 1 \pmod{2}\), \(x \equiv 2 \pmod{3}\), \(x \equiv 5 \pmod{6}\), and \(x \equiv 5 \pmod{12}\) is definitively \(x = 17\). The general solution can be expressed as \(x = 12k + 5\) for any integer \(k\), where \(k = 0\) yields the smallest solution \(x = 5\). The discussion also highlights the consistency of the system of linear congruences, as all divisors \(2, 3, 6\) divide \(12\).

PREREQUISITES
  • Understanding of modular arithmetic and congruences
  • Familiarity with the Chinese Remainder Theorem
  • Basic knowledge of integer solutions in number theory
  • Ability to manipulate algebraic expressions involving integers
NEXT STEPS
  • Study the Chinese Remainder Theorem for solving systems of congruences
  • Explore integer programming techniques for finding solutions to linear congruences
  • Learn about the properties of modular arithmetic and their applications
  • Investigate the relationship between greatest common divisors and congruences
USEFUL FOR

Mathematicians, students studying number theory, and anyone interested in solving modular arithmetic problems will benefit from this discussion.

Math100
Messages
817
Reaction score
230
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

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K