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 Solvers7
Suggested Problems
-
Find the sum of all the numbers of the input vector
55530 Solvers
-
Return the first and last characters of a character array
12454 Solvers
-
1510 Solvers
-
Who is the smartest MATLAB programmer?
794 Solvers
-
Simple Interest : Calculate annual simple interest rate
46 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?!