let equation 1: x % n1 = 0, equation 2: x % n2 =1, where n1 and n2 are known positive integers, any multiple of n1 will solve eqn1 and any multiple of n2 (and adding 1 to the multiple) will solve eqn2, but is there a short way to simultaneously solve the two equations to find x instead of continuously trying to find the first multiple of n2 that if 1 is added to it will be a multiple of n1 ?(adsbygoogle = window.adsbygoogle || []).push({});

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# I Modulus of two numbers ?

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - Modulus numbers | Date |
---|---|

I How to do division in modulus mode ? | Aug 28, 2016 |

Modulus of the difference of two complex numbers | Apr 30, 2013 |

Complex numbers: Why is the modulus of z | May 26, 2012 |

Modulus of negative numbers | Jan 23, 2012 |

Complex numbers and modulus problem | Jun 7, 2005 |

**Physics Forums - The Fusion of Science and Community**