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
-
Sum all integers from 1 to 2^n
13702 Solvers
-
Project Euler: Problem 5, Smallest multiple
1201 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
462 Solvers
-
Mysterious digits operation (easy)
251 Solvers
-
Add the number of horizontal and vertical movements to each matrix element
32 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!