AMC 10 Step by Step

2022 AMC 10A Problem 7

P1-10~2 minPrint

The least common multiple of a positive integer nn and 1818 is 180180 , and the greatest common divisor of nn and 4545 is 1515 . What is the sum of the digits of nn ?

Log in to save your progress.
Show solution without answering

Key insight

Break every number into primes. The lcm condition says n has two 2s and one 5; the gcd condition says n has exactly one 3.

Solution

The least common multiple and greatest common divisor both work one prime at a time, so break everything into primes first.

1. Prime factors. 18=2⋅3218 = 2 \cdot 3^2,  180=22⋅32⋅5\ 180 = 2^2 \cdot 3^2 \cdot 5,  45=32⋅5\ 45 = 3^2 \cdot 5,  15=3⋅5\ 15 = 3 \cdot 5.
2. What n can contain. 180180 is a multiple of nn, so nn is built only from 22s, 33s and 55s, and has no more of each than 180180 has.
3. The lcm condition. For each prime, the lcm uses the larger count from nn and 1818.
- Twos: 1818 has one 22, but 180180 has two. The extra 22 must come from nn, so nn has exactly two 22s.
- Fives: 1818 has no 55, but 180180 has one, so nn has exactly one 55.
- Threes: 1818 already has two 33s, so this condition tells us nothing about the 33s in nn.
4. The gcd condition. For each prime, the gcd uses the smaller count. 4545 has two 33s, but the gcd 1515 has only one. So nn has exactly one 33. (With no 33s the gcd would have none; with two 33s it would have two.)
5. Put it together. n=22⋅3⋅5=60n = 2^2 \cdot 3 \cdot 5 = 60. Check: lcm⁡(60,18)=180\operatorname{lcm}(60, 18) = 180 and gcd⁡(60,45)=15\gcd(60, 45) = 15.
6. The digit sum of 6060 is 6+0=66 + 0 = 6.

The answer is (B) 6\boxed{\textbf{(B)}\ 6}.

Why this works

The lcm takes the larger power of each prime and the gcd takes the smaller one. So when a problem mixes the two, write every number in primes and settle one prime at a time. Here each condition fixed a different prime, and together they pinned nn down.

Alternative approach

List the candidates. Since gcd⁡(n,45)=15\gcd(n, 45) = 15, nn is a multiple of 1515 but not a multiple of 99. The multiples of 1515 that divide 180180 are 15,30,45,60,90,18015, 30, 45, 60, 90, 180; removing the multiples of 99 leaves 15,30,6015, 30, 60. For the lcm with 1818 to be 180180, nn must be a multiple of 44, and only 6060 is.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Factor everything: 18=2⋅3218 = 2 \cdot 3^2, 180=22⋅32⋅5180 = 2^2 \cdot 3^2 \cdot 5, 45=32⋅545 = 3^2 \cdot 5, 15=3⋅515 = 3 \cdot 5. Write n=2a3b5cn = 2^a 3^b 5^c (no other primes can appear, since nn divides 180180).

From lcm⁡(n,18)=180\operatorname{lcm}(n, 18) = 180: the exponent of 22 in the lcm is max⁡(a,1)=2\max(a, 1) = 2, so a=2a = 2; the exponent of 55 is max⁡(c,0)=1\max(c, 0) = 1, so c=1c = 1; and max⁡(b,2)=2\max(b, 2) = 2, so b≤2b \le 2.

From gcd⁡(n,45)=15\gcd(n, 45) = 15: the exponent of 33 is min⁡(b,2)=1\min(b, 2) = 1, so b=1b = 1 (and min⁡(c,1)=1\min(c, 1) = 1 confirms c=1c = 1).

Therefore n=22⋅3⋅5=60n = 2^2 \cdot 3 \cdot 5 = 60, whose digit sum is 6+0=66 + 0 = 6.

The answer is (B) 6\boxed{\textbf{(B)}\ 6}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.