2013 AMC 10B Problem 20
The number is expressed in the form where and are positive integers and is as small as possible. What is ?
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 , so there are two halves: show it cannot be smaller than some value, then show that value can be reached.
- Break into primes: , and is prime.
Part 1: is at least .
- The biggest prime is the hardest to produce, so look at it first. The factorial contains the prime only if . The in must come from the top, so the largest top factorial satisfies .
- But also contains the prime , and does not divide . So some factorial on the bottom must cancel it, and only a factorial of or more contains . So .
- Together, . The only way to reach exactly is and .
Part 2: can be reached.
5. Start with . Compare it with :
So we still need to divide by and multiply by .
6. Small factorials can do both: and . So
Check: and . The top numbers and the bottom numbers are each in decreasing order, as required.
7. So , , and .
The answer is .
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: .
Lower bound. The prime must divide the numerator, and only when , so . But then is divisible by the prime (and by ), which does not divide , so must be cancelled by the denominator: some is divisible by , forcing . Hence .
Construction. Try , : , and . We still need to divide by and multiply by , which factorials do easily:
since and . The ordering conditions hold, and is minimal.
Therefore .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 2: Primes and Composites
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Number Theory, Chapter 4: Prime Factorization (§4.2, §4.4)
- Introduction to Number Theory, Chapter 5: Divisor Problems (§5.2, §5.3)
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.