Let a and b be relatively prime positive integers. Find the sum of all possible values of
g cd ( a + b a 2 0 1 7 + b 2 0 1 7 , a + b ) .
Note: 2017 is prime .
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.
Note that F ( a , b ) = a + b a 2 0 1 7 + b 2 0 1 7 = j = 0 ∑ 2 0 1 6 ( − 1 ) j a 2 0 1 6 − j b j Regarding F ( a , b ) as a polynomial in a with integer coefficients, the Remainder Theorem tells us that F ( a , b ) = ( a + b ) G ( a ) + F ( − b , b ) for some polynomial G ( a ) with integer coefficients. Thus the HCF of F ( a , b ) and a + b is also the HCF of F ( − b , b ) = 2 0 1 7 b 2 0 1 6 and a + b . Since a , b are coprime, no divisor of a + b can have a prime factor in common with b , and hence it follows that the only possible HCFs of F ( a , b ) and a + b are 1 and 2 0 1 7 . Putting a = 1 0 0 9 , b = 1 0 0 8 shows that we can obtain 2 0 1 7 as HCF. Putting a = 2 , b = 3 shows that we can obtain 1 as HCF. This makes the answer 1 + 2 0 1 7 = 2 0 1 8 .
Problem Loading...
Note Loading...
Set Loading...
We denote the greatest common divisor of x and y as ( x , y ) . I will use the following results:
We show now that for any odd prime p , if a and b are relatively prime, ( a + b a p + b p , a + b ) is either p or 1 . Let c = a + b , so a = c − b . Then, using the Binomial Theorem, we have: a + b a p + b p = c ( c − b ) p + b p = c 1 ( b p + k = 0 ∑ p ( k p ) c k ( − b ) p − k ) = c 1 ( b p + ( − b ) p + c k = 1 ∑ p ( k p ) c k − 1 ( − b ) p − k ) = k = 1 ∑ p ( k p ) c k − 1 ( − b ) p − k ≡ ( 1 p ) ( − b ) p − 1 ≡ p b p − 1 ( m o d c ) So we can write ( a p + b p ) / ( a + b ) = q c + p b p − 1 for some integer q . Note then, by result 2: ( a , b ) ( a + b a p + b p , c ) = ( a + b , b ) = ( c , b ) = 1 = ( a + b a p + b p − q c , c ) = ( p b p − 1 , c ) Since ( c , b ) = 1 , ( c , b p − 1 ) = 1 since raising b to a power does not change its distinct prime factors. Therefore, by result 1: ( a + b a p + b p , c ) = ( p b p − 1 , c ) = ( p , c ) If p ∣ c , then we have ( p , c ) = p . Otherwise, if p ∤ c , since p is prime, c and p are relatively prime, so ( p , c ) = 1 . Therefore, the greatest common divisor of ( a p + b p ) / ( a + b ) and a + b is either p or 1 .
Since we have p = 2 0 1 7 , our desired sum is p + 1 = 2 0 1 7 + 1 = 2 0 1 8 .
Edit: As Mark has shown, it is important to show that the case p ∣ c is possible! Since p is an odd prime, we can write p = 2 m + 1 = m + ( m + 1 ) where m ≥ 1 is an integer. Since m and m + 1 are relatively prime (suppose they aren't; then they have a common divisor d > 1 such that d ∣ 1 = ( m + 1 ) − m , a contradiction), by letting a = m and b = m + 1 , we have c = 2 m + 1 = p , which leads us to p ∣ c . By a similar argument, p ∤ c is possible by taking an odd prime c = p .