Least possible value for a modulo with given remainders

1 visualizzazione (ultimi 30 giorni)
Hello guys. Im just asking how do you code a program that gets the LEAST value of a given modulo and remainder. Say example
Z = [3 4 5]
R = [2 1 4]
The inputs will give an output that gives the LEAST possible value for the given. So the answer to the above is 29.
  3 Commenti
Riven Yvet
Riven Yvet il 9 Dic 2015
Umm since i am given 3 modulos with remainders, there are a lot of possible values for that. How do i get the least possible though?
Riven Yvet
Riven Yvet il 9 Dic 2015
I can input any values of the modulo and remainder. the above is just an example input.

Accedi per commentare.

Risposte (0)

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by