Relatively Prime in 2015

How many ordered pairs of positive integers ( m , n ) (m, n) are there such that m + n = 2015 m + n = 2015 and gcd ( m , n ) = 1 \gcd(m, n) = 1 ?


The answer is 1440.

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.

2 solutions

Discussions for this problem are now closed

Steven Yuan
Jan 19, 2015

WLOG, let n > m . n > m. Since gcd ( m , n ) = 1 , \gcd(m, n) = 1, the fraction m n \frac{m}{n} is in lowest terms. Thus, we find the number of fractions from 1 2014 \frac{1}{2014} to 1007 1008 \frac{1007}{1008} such that m + n = 2015 m + n = 2015 and m n \frac{m}{n} is in lowest terms. Note that

m n = 2015 n n = 2015 n 1. \frac{m}{n} = \frac{2015 - n}{n} = \frac{2015}{n} - 1.

We reduce our problem to finding the number of integers 1008 n 2014 1008 \leq n \leq 2014 that are relatively prime to 2015. 2015. We do this by counting the number of integers in the range that share a common factor with 2015 2015 :

The prime factorization of 2015 2015 is 5 13 21. 5 \cdot 13 \cdot 21. There are 1007 1007 integers between 1008 1008 and 2014 2014 inclusive. Of these,

  • 201 201 have a factor of 5 5 .
  • 77 77 have a factor of 13 13 .
  • 32 32 have a factor of 31 31 .
  • 15 15 have a factor of 5 13 5 \cdot 13 .
  • 6 6 have a factor of 5 21 5 \cdot 21 .
  • 2 2 have a factor of 13 31 13 \cdot 31 .
  • 0 0 have a factor of 5 13 31 5 \cdot 13 \cdot 31 .

Using PIE, we find that the number of integers in the range that share at least one common factor with 2015 2015 is 201 + 77 + 32 15 6 2 + 0 = 287 , 201 + 77 + 32 - 15 - 6 - 2 + 0 = 287, and the number of integers that are relatively prime to 2015 2015 is 1007 287 = 720. 1007 - 287 = 720.

Since this covers only half of the possible pairs ( m , n ) (m, n) , our total number of ordered pairs is 720 × 2 = 1440 . 720 \times 2 = \boxed{1440}.

Use Euler's Totient Function to find the number of integers that are coprime.

Calvin Lin Staff - 6 years, 4 months ago

Forgot about that! Thanks for pointing it out.

Steven Yuan - 6 years, 4 months ago

I have used it too. I wish you had not mentioned it, sir; in that case, I could have added a solution, though @William Chau has used it, as I see. Thanks to @Calvin Lin and William Chau.

Sheikh Asif Imran Shouborno - 6 years, 4 months ago
William Chau
Jan 20, 2015

If d = gcd(m, 2015) = gcd(m, 5 * 13 * 31) > 1, then d | n, which is not allowed. Similar reason holds if gcd(n, 2015) > 1. Therefore both m and n are relatively prime to 2015. Clearly there are 2014 positive integral solutions to the given equation, namely (m, n) = (1, 2014), (2, 2013), ..., and (2014, 1). Moreover, 2015 is not relatively prime to 2015. Therefore the number of solutions is the number of positive integers <= 2015 relatively prime to 2015, i.e. phi(2015) = phi(5 * 13 * 31) = (5-1)(13-1)(31-1) = 1440.

Yes. It is ϕ ( 2015 ) = ϕ ( 5 × 13 × 31 ) = 1440 \phi (2015) = \phi (5\times 13 \times 31) = 1440 . We find out the number of totients to solve the problem.

Sheikh Asif Imran Shouborno - 6 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...