2020 AMC 10 A

Complete problem set with solutions and individual problem pages

Problem 24 Hard

Let n be the least positive integer greater than 1000 for which

\text{gcd}(63, n+120)=21 \quad and \quad \text{gcd}(n+63,120)=60.

What is the sum of the digits of n?

  • A.

    12

  • B.

    15

  • C.

    18

  • D.

    21

  • E.

    24

Answer:C

Solution 1: We know that g c d(63, n+120)=21, so we can write n+120 \equiv 0(\bmod 21). Simplifying, we get n \equiv 6(\bmod 21). Similarly, we can write n+63 \equiv 0(\bmod 60)or n \equiv-3(\bmod 60). Solving these two modular congruences, n \equiv 237(\bmod 420) which we know is the only solution by CRT (Chinese Remainder Theorem). Now, since the problem is asking for the least positive integer greater than 1000 , we find the least solution is n=1077. However, we are have not considered cases where g c d(63, n+120)=63 or g c d(n+63,120)=120. 1077+120 \equiv 0(\bmod 63) so we try n=1077+420=1497.1497+63 \equiv 0(\bmod 120)_{\text{s}} so again we add 420 to n. It turns out that n=1497+420=1917 does indeed satisfy the original conditions, so our answer is 1+9+1+7= (C) 18

Solution 2 (bashing): We are given that \text{gcd}(63, n+120)=21 and \text{gcd}(n+63,120)=60. This tells us that n+120 is divisible by 21 but not 63 . It also tells us that n+63 is divisible by 60 but not 120 . Starting, we find the least value of n+120 which is divisible by 21 which satisfies the conditions for n, which is 1134 , making n=1014. We then now keep on adding 21 until we get a number which satisfies the second equation. This number turns out to be 1917 , whose digits add up to (C) 18