2020 AMC 10A Problem 15
A positive integer divisor of is chosen at random. The probability that the divisor chosen is a perfect square can be expressed as , where and are relatively prime positive integers. What is ?
Show solution without answering
Key insight
Write 12! as prime powers. A divisor chooses a power of each prime, and it is a square exactly when every chosen power is even.
Solution
Divisors are easiest to count once the number is broken into primes, so start there.
1. How many 2s are in ? Among to : six numbers are even (), giving one each. Three of them () are multiples of and give an extra . One () is a multiple of and gives one more. Total .
2. The other primes. Multiples of : give threes, and gives one extra, so . Multiples of : , so . Then and appear once each. So
3. Count all divisors. A divisor uses between and times ( choices), between and times ( choices), between and times ( choices), and and each or times ( choices each):
4. Count square divisors. A number is a perfect square when every prime appears an even number of times. The even choices are: for , the powers (six); for , (three); for , (two); for and , only (one each):
5. Probability. . So , , and .
The answer is .
Why this works
Once a number is written as a product of prime powers, each divisor is just a choice of how many times to use each prime. Any rule about divisors that can be checked prime by prime (like "every power is even" for squares) is counted by multiplying the number of allowed choices for each prime.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
First factor . The exponent of is ; of it is ; of it is ; and , appear once each:
A divisor picks an exponent for each prime from up to the exponent in , so the number of divisors is
A divisor is a perfect square exactly when every exponent it picks is even. The even choices are for (six), for (three), for (two), and only for and :
The probability is , so .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Counting & Probability, Chapter 7: Introduction to Probability
- Introduction to Number Theory, Chapter 5: Divisor Problems (§5.2, §5.3)
- Introduction to Counting & Probability, Chapter 8: Basic Probability Techniques
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.