AMC 10 Step by Step

2023 AMC 10B Problem 15

P11-15~5 minPrint

What is the least positive integer mm such that m⋅2!⋅3!⋅4!⋅5!…16!m \cdot 2! \cdot 3!\cdot 4!\cdot 5! \dots 16! is a perfect square?

Log in to save your progress.
Show solution without answering

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 1!1!. Since 1!=11! = 1, the product is 1!⋅2!⋅3!⋯16!1! \cdot 2! \cdot 3! \cdots 16!. Now there are 1616 factorials, and we can pair them up: (1!,2!)(1!, 2!), (3!,4!)(3!, 4!), …\ldots, (15!,16!)(15!, 16!).
2. Look at one pair. 4!=4×3!4! = 4 \times 3!, so
3!⋅4!=3!⋅3!⋅4=(3!)2⋅4.3! \cdot 4! = 3! \cdot 3! \cdot 4 = (3!)^2 \cdot 4.
The same happens for every pair: an odd factorial times the next one is (odd factorial) squared times the next even number. For example, 5!⋅6!=(5!)2⋅65! \cdot 6! = (5!)^2 \cdot 6.
3. Collect the leftovers. Every pair gives a square times one even number. The even numbers left over are
2⋅4⋅6⋅8⋅10⋅12⋅14⋅16.2 \cdot 4 \cdot 6 \cdot 8 \cdot 10 \cdot 12 \cdot 14 \cdot 16.
4. Simplify the leftovers. Take a 22 out of each of the eight numbers:
2⋅4⋅6⋯16=28⋅(1⋅2⋅3⋯8)=28⋅8!.2 \cdot 4 \cdot 6 \cdots 16 = 2^8 \cdot (1 \cdot 2 \cdot 3 \cdots 8) = 2^8 \cdot 8!.
28=(24)22^8 = (2^4)^2 is already a square. So the whole product is a square times 8!8!.
5. Factor 8!8!.
8!=8⋅7⋅6⋅5⋅4⋅3⋅2=27⋅32⋅5⋅7.8! = 8 \cdot 7 \cdot 6 \cdot 5 \cdot 4 \cdot 3 \cdot 2 = 2^7 \cdot 3^2 \cdot 5 \cdot 7.
The primes that appear an odd number of times are 22 (seven times), 55 (once) and 77 (once).
6. Fix them. Multiplying by one more 22, one more 55 and one more 77 makes every count even, and nothing smaller does:
m=2⋅5⋅7=70.m = 2 \cdot 5 \cdot 7 = 70.

The answer is (C) 70\boxed{\textbf{(C)}\ 70}.

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, 8!8!, to factor.

Alternative approach

Use the answer choices and count a few primes.

  1. The prime 1111. It is a factor of 11!,12!,…,16!11!, 12!, \ldots, 16!, once in each: 66 times in all. Six is even, so mm should not contain 1111.
  2. The prime 1313. It is in 13!,14!,15!,16!13!, 14!, 15!, 16!: 44 times, also even. So mm should not contain 1313 either. That rules out 3003030030, 14301430 and 10011001, which all contain 1111 or 1313.
  3. The prime 77. It appears once in each of 7!,8!,…,13!7!, 8!, \ldots, 13! (77 factorials) and twice in each of 14!,15!,16!14!, 15!, 16!, because 14=2⋅714 = 2 \cdot 7 brings a second 77. That is 7+6=137 + 6 = 13 times, which is odd. So mm must contain 77, and of 3030 and 7070 only 7070 does.
Concise solution

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

Since 1!=11! = 1, the product equals 1!⋅2!⋯16!1! \cdot 2! \cdots 16!. Group the factorials in consecutive pairs and use (2k)!=2k⋅(2k−1)!(2k)! = 2k \cdot (2k-1)!:
(2k−1)!⋅(2k)!=((2k−1)!)2⋅2k.(2k-1)! \cdot (2k)! = \big((2k-1)!\big)^2 \cdot 2k.
Doing this for k=1,…,8k = 1, \dots, 8,
∏j=116j!=(∏k=18(2k−1)!)2⋅(2⋅4⋅6⋯16)=(square)⋅28⋅8!.\prod_{j=1}^{16} j! = \Big(\prod_{k=1}^{8} (2k-1)!\Big)^2 \cdot (2 \cdot 4 \cdot 6 \cdots 16) = (\text{square}) \cdot 2^8 \cdot 8!.
The factor 282^8 is a square, so everything hinges on 8!=40320=27⋅32⋅5⋅78! = 40320 = 2^7 \cdot 3^2 \cdot 5 \cdot 7. The primes with odd exponent are 22, 55 and 77, so the smallest mm that makes the whole product a square is
m=2⋅5⋅7=70.m = 2 \cdot 5 \cdot 7 = 70.

The answer is (C) 70\boxed{\textbf{(C)}\ 70}.

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.