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 Solvers5
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
52662 Solvers
-
1181 Solvers
-
Generate N equally spaced intervals between -L and L
942 Solvers
-
Create sequnce 1 4 9 16 25.........
413 Solvers
-
Calculate the structural rank of a 2-by-4 matrix.
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?!