2018 AMC 10B Problem 21
Mary chose an even -digit number . She wrote down all the divisors of in increasing order from left to right: . At some moment Mary wrote as a divisor of . What is the smallest possible value of the next divisor written to the right of ?
Show solution without answering
Key insight
The next divisor must share the factor 17 or 19 with 323; otherwise n would be a multiple of their product, far too big.
Solution
Break into primes first: .
1. Why the choices and fail. Suppose the next divisor has no factor or . Then is a multiple of and also of , with no factors in common, so is a multiple of . But
is already six digits, and is at least . So could not have four digits.
2. So is a multiple of or . Neither nor is, so both are ruled out.
3. Smallest such above 323. Since :
- the next multiple of is ;
- the next multiple of is .
So is at least .
4. Show really happens. Try . It is even and has four digits, and both and divide it. Its prime factors are . Could a divisor land between and ? A divisor using both and is times , so the next one is . One using but not is times a divisor of , the closest being . One using but not is at most and otherwise or less. One using neither is at most . So nothing lies strictly between, and comes right after .
The answer is .
Why this works
Two divisors of the same number that share no prime factor force the number to be a multiple of their product. With a four-digit limit and divisors around , that product is far too big, so the next divisor must share a prime with . That leaves only a couple of candidates, and an explicit example confirms the smallest one works.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
Factor . Let be the next divisor of .
Both and divide , so divides and hence is at most . If shared no prime factor with , the lcm would be , impossible. So is a multiple of or of .
The multiples of just above start at ; the multiples of start at . So , and this rules out and (neither is divisible by or ).
Now check that is attainable: take
which is even and has four digits. Its divisors are products of , and none of them lies strictly between and , so really is the divisor written immediately after .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Number Theory, Chapter 3: Multiples and Divisors (§3.3, §3.4, §3.7)
- Introduction to Number Theory, Chapter 5: Divisor Problems (§5.2, §5.3)
- Introduction to Number Theory, Chapter 4: Prime Factorization (§4.7)
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.