Problem 56463. Find the dividend
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
Dyuman Joshi
on 8 Nov 2022
Similar to - Problem 1672. Leftovers? Again?!
Solution Comments
Show commentsProblem Recent Solvers5
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15761 Solvers
-
Check if number exists in vector
13695 Solvers
-
Create a vector whose elements depend on the previous element
772 Solvers
-
The sum of the numbers in the vector
636 Solvers
-
562 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!