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 ?
- A)
- B)
- C)
- D)
- E)
Answer
E
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.
The trap
Getting the power of 2 in 12! wrong (it is 10), or forgetting that power 0 is even, so 7 and 11 each still allow one choice for a square divisor.
Concise solution
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
Techniques
Set up the equation/formula and compute; no special trick needed