How many ordered pairs of positive integers are there such that and ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
WLOG, let n > m . Since g cd ( m , n ) = 1 , the fraction n m is in lowest terms. Thus, we find the number of fractions from 2 0 1 4 1 to 1 0 0 8 1 0 0 7 such that m + n = 2 0 1 5 and n m is in lowest terms. Note that
n m = n 2 0 1 5 − n = n 2 0 1 5 − 1 .
We reduce our problem to finding the number of integers 1 0 0 8 ≤ n ≤ 2 0 1 4 that are relatively prime to 2 0 1 5 . We do this by counting the number of integers in the range that share a common factor with 2 0 1 5 :
The prime factorization of 2 0 1 5 is 5 ⋅ 1 3 ⋅ 2 1 . There are 1 0 0 7 integers between 1 0 0 8 and 2 0 1 4 inclusive. Of these,
Using PIE, we find that the number of integers in the range that share at least one common factor with 2 0 1 5 is 2 0 1 + 7 7 + 3 2 − 1 5 − 6 − 2 + 0 = 2 8 7 , and the number of integers that are relatively prime to 2 0 1 5 is 1 0 0 7 − 2 8 7 = 7 2 0 .
Since this covers only half of the possible pairs ( m , n ) , our total number of ordered pairs is 7 2 0 × 2 = 1 4 4 0 .