The question that I am being asked is as follows: "Prove that for every pair of positive integer p and q that have no prime factors in common, and every other positive integer r, there are integers m and n such that mp + nq = r."
This is not a homework or test question, it is a review question that I am stuck on.
I have gathered that I am supposed to apply the prime factorization theorem and the quotient-remainder theorem in some way, but I am completely stumped. I have gotten no farther than stating the premise and what it means mathematically to be relatively prime numbers. Any help would be much appreciated.