1 0 1 , 1 0 8 , 1 2 7 , 1 6 4 , …
The numbers in the above sequence are of the form a n = 1 0 0 + n 3 for all integers n ≥ 1 . The maximum possible value of g cd ( a n , a n + 1 ) is D , and the smallest n such that g cd ( a n , a n + 1 ) = D is N . Find the last three digits of D + N .
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.
We have d n = g cd ( C + n 3 , C + ( n + 1 ) 3 ) = g cd ( C + n 3 , 3 n 2 + 3 n + 1 ) = g cd ( 3 C + 3 n 3 , 3 n 2 + 3 n + 1 ) = g cd ( 2 n + 3 C + 1 , 3 n 2 + 3 n + 1 ) and e n = g cd ( 4 ( 3 n 2 + 3 n + 1 ) , 2 n + 3 C + 1 ) = g cd ( 2 n + 3 C + 1 , 2 7 C 2 + 1 )
Problem Loading...
Note Loading...
Set Loading...
(This problem was inspired by an AIME problem .)
Let d n = g cd ( a n , a n + 1 ) . Since g cd ( a , b ) = g cd ( a , b − a ) , we have
d n = g cd ( 1 0 0 + n 3 , 1 0 0 + ( n + 1 ) 3 ) = g cd ( 1 0 0 + n 3 , ( n + 1 ) 3 − n 3 ) = g cd ( 1 0 0 + n 3 , 3 n 2 + 3 n + 1 ) .
Because 3 ∤ 3 n 2 + 3 n + 1 , we can multiply 1 0 0 + n 3 by 3 without changing the value of the greatest common divisor: d n = g cd ( 3 0 0 + 3 n 3 , 3 n 2 + 3 n + 1 ) . Now, we apply the Euclidean Algorithm:
d n = g cd ( 3 0 0 + 3 n 3 , 3 n 2 + 3 n + 1 ) = g cd ( 3 0 0 + 3 n 3 − ( n − 1 ) ( 3 n 2 + 3 n + 1 ) , 3 n 2 + 3 n + 1 ) = g cd ( 2 n + 3 0 1 , 3 n 2 + 3 n + 1 ) .
Because 4 ∤ 2 n + 3 0 1 , we can multiply 3 n 2 + 3 n + 1 by 4 and apply the Euclidean Algorithm again:
d n = g cd ( 2 n + 3 0 1 , 1 2 n 2 + 1 2 n + 4 ) = g cd ( 2 n + 3 0 1 , 1 2 n 2 + 1 2 n + 4 − ( 6 n − 8 9 7 ) ( 2 n + 3 0 1 ) ) = g cd ( 2 n + 3 0 1 , 2 7 0 0 0 1 ) .
Thus, D = 2 7 0 0 0 1 , and N = 2 2 7 0 0 0 1 − 3 0 1 = 1 3 4 8 5 0 , making our final answer D + N ≡ 2 7 0 0 0 1 + 1 3 4 8 5 0 ≡ 8 5 1 ( m o d 1 0 0 0 ) .
BONUS: What if instead of a n = 1 0 0 + n 3 we had a n = C + n 3 , where C is an arbitrary positive integer? What are D and N in this case?