How to Find the Smallest Integer with Specific Remainders?

  • Context: Undergrad 
  • Thread starter Thread starter CalculusSandwich
  • Start date Start date
  • Tags Tags
    Classes
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
CalculusSandwich
Messages
16
Reaction score
0
Find the smallest positive integer which when divided by 12, by 17, by 45 or by 70 gives
a remainder of 4 in each case.

I know I can approach this problem by writing the equivalence classes.

x=4mod12
x=4mod17
x=4mod45 or x=4mod70

I also know I can find x by multiplying 12*17*45 + 4, but this isn't the smallest positive integer.

Can someone help me with a formula I can use?
 
Physics news on Phys.org
If you for some reason do not like the number 4, you have to add the lcm of your moduli to get the next.