What is the least positive integer such that is a perfect square?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
Pair each factorial with the next, like 3! times 4! = (3!) squared times 4. What remains is a square times 8!, and 8! needs 2 times 5 times 7.
Solution
A number is a perfect square when every prime in it appears an even number of times. The product of sixteen factorials is enormous, so first pull out as big a square as possible.
1. Add . Since , the product is . Now there are factorials, and we can pair them up: , , , .
2. Look at one pair. , so
The same happens for every pair: an odd factorial times the next one is (odd factorial) squared times the next even number. For example, .
3. Collect the leftovers. Every pair gives a square times one even number. The even numbers left over are
4. Simplify the leftovers. Take a out of each of the eight numbers:
is already a square. So the whole product is a square times .
5. Factor .
The primes that appear an odd number of times are (seven times), (once) and (once).
6. Fix them. Multiplying by one more , one more and one more makes every count even, and nothing smaller does:
The answer is .
Why this works
To make a product into a perfect square with the smallest multiplier, multiply by each prime that appears an odd number of times, once. The pairing trick avoids counting primes across sixteen factorials: it pulls out a huge square in one step and leaves one small number, , to factor.
Alternative approach
Use the answer choices and count a few primes.
- The prime . It is a factor of , once in each: times in all. Six is even, so should not contain .
- The prime . It is in : times, also even. So should not contain either. That rules out , and , which all contain or .
- The prime . It appears once in each of ( factorials) and twice in each of , because brings a second . That is times, which is odd. So must contain , and of and only does.
The trap
Thinking the big primes 11 and 13 must go into m. Each already appears an even number of times across the factorials (6 and 4 times), so they need no fixing.
Concise solution
Since , the product equals . Group the factorials in consecutive pairs and use :
Doing this for ,
The factor is a square, so everything hinges on . The primes with odd exponent are , and , so the smallest that makes the whole product a square is
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Introduction to Number Theory, Chapter 2: Primes and Composites
- Introduction to Algebra, Chapter 11: Special Factorizations
- Introduction to Algebra, Chapter 20: Special Functions (§20.3)
Techniques
Apply an identity: SFFT, sum of squares, difference of cubes, Vieta · Use an invariant, parity, or coloring argument