AMC 10 Step by Step

2013 AMC 10B Problem 20

P16-20~6 minPrint

The number 20132013 is expressed in the form 2013=a1!a2!⋯am!b1!b2!⋯bn!,2013=\frac{a_1!a_2!\cdots a_m!}{b_1!b_2!\cdots b_n!}, where a1≥a2≥⋯≥ama_1\ge a_2\ge\cdots\ge a_m and b1≥b2≥⋯≥bnb_1\ge b_2\ge\cdots\ge b_n are positive integers and a1+b1a_1+b_1 is as small as possible. What is ∣a1−b1∣|a_1-b_1| ?

Log in to save your progress.
Show solution without answering

Key insight

2013 has the prime factor 61, so the top needs 61!. That brings in the prime 59, so the bottom needs 59! to cancel it.

Solution

This asks for the smallest possible a1+b1a_1 + b_1, so there are two halves: show it cannot be smaller than some value, then show that value can be reached.

  1. Break 20132013 into primes: 2013=3×11×612013 = 3 \times 11 \times 61, and 6161 is prime.

Part 1: a1+b1a_1 + b_1 is at least 120120.

  1. The biggest prime is the hardest to produce, so look at it first. The factorial k!=1×2×⋯×kk! = 1 \times 2 \times \cdots \times k contains the prime 6161 only if k≥61k \ge 61. The 6161 in 20132013 must come from the top, so the largest top factorial satisfies a1≥61a_1 \ge 61.
  2. But 61!61! also contains the prime 5959, and 5959 does not divide 20132013. So some factorial on the bottom must cancel it, and only a factorial of 5959 or more contains 5959. So b1≥59b_1 \ge 59.
  3. Together, a1+b1≥61+59=120a_1 + b_1 \ge 61 + 59 = 120. The only way to reach exactly 120120 is a1=61a_1 = 61 and b1=59b_1 = 59.

Part 2: 120120 can be reached.

5. Start with 61!59!=61×60=3660\frac{61!}{59!} = 61 \times 60 = 3660. Compare it with 2013=61×332013 = 61 \times 33:
36602013=61×6061×33=6033=2011.\frac{3660}{2013} = \frac{61 \times 60}{61 \times 33} = \frac{60}{33} = \frac{20}{11}.
So we still need to divide by 2020 and multiply by 1111.
6. Small factorials can do both: 19!20!=120\frac{19!}{20!} = \frac{1}{20} and 11!10!=11\frac{11!}{10!} = 11. So
2013=61!⋅19!⋅11!59!⋅20!⋅10!.2013 = \frac{61! \cdot 19! \cdot 11!}{59! \cdot 20! \cdot 10!}.
Check: 3660÷20=1833660 \div 20 = 183 and 183×11=2013183 \times 11 = 2013. The top numbers 61,19,1161, 19, 11 and the bottom numbers 59,20,1059, 20, 10 are each in decreasing order, as required.
7. So a1=61a_1 = 61, b1=59b_1 = 59, and ∣a1−b1∣=2|a_1 - b_1| = 2.

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

Why this works

A fraction of factorials is a product of runs of whole numbers, so the largest prime in the target decides how big the top factorial must be. Any unwanted prime just below it then has to be cancelled by a bottom factorial almost as big. Prove the limit using the biggest prime and the next prime down, then build an example that reaches it.

Concise solution

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

Factor: 2013=3⋅11⋅612013 = 3 \cdot 11 \cdot 61.

Lower bound. The prime 6161 must divide the numerator, and 61∣k!61 \mid k! only when k≥61k \ge 61, so a1≥61a_1 \ge 61. But then a1!a_1! is divisible by the prime 5959 (and by 53,47,…53, 47, \dots), which does not divide 20132013, so 5959 must be cancelled by the denominator: some bj!b_j! is divisible by 5959, forcing b1≥59b_1 \ge 59. Hence a1+b1≥61+59=120a_1 + b_1 \ge 61 + 59 = 120.

Construction. Try a1=61a_1 = 61, b1=59b_1 = 59: 61!59!=61⋅60=3660\frac{61!}{59!} = 61 \cdot 60 = 3660, and 36602013=6033=2011\frac{3660}{2013} = \frac{60}{33} = \frac{20}{11}. We still need to divide by 2020 and multiply by 1111, which factorials do easily:
2013=61!⋅19!⋅11!59!⋅20!⋅10!,2013 = \frac{61! \cdot 19! \cdot 11!}{59! \cdot 20! \cdot 10!},
since 19!20!=120\frac{19!}{20!} = \frac{1}{20} and 11!10!=11\frac{11!}{10!} = 11. The ordering conditions hold, and a1+b1=120a_1 + b_1 = 120 is minimal.

Therefore ∣a1−b1∣=61−59=2|a_1 - b_1| = 61 - 59 = 2.

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

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.