Given a vector of pairwise coprime positive integers, p, and a vector of corresponding remainders, r, return a positive integer, d, which, when divided by each of the elements of p, produces the respective remainders r.
Example:
p = [3, 5, 7]
r = [2, 3, 2]
d = 23
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers6
Suggested Problems
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1325 Solvers
-
Back to basics 22 - Rotate a matrix
938 Solvers
-
Who has power to do everything in this world?
488 Solvers
-
Sum the squares of numbers from 1 to n
260 Solvers
-
Compound Interest : Future Value
80 Solvers
More from this Author45
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Similar to - Problem 1672. Leftovers? Again?!