2019 AMC 10A Problem 25

Attempt Problem 25 of the 2019 AMC 10A below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2019 AMC 10A solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

25.

For how many integers nn between 11 and 50,50, inclusive, is (n2−1)!(n!)n\dfrac{(n^2-1)!}{(n!)^n} an integer? (Recall that 0!=1.0! = 1.)
3131
3232
3333
3434
3535
Answer: D
Concepts:factorialdivisibilityprime
Small hint:
Relate the expression to a multinomial coefficient
Big hint:
The remaining condition is whether nn divides (n−1)!(n-1)!
Solution:
One fact that greatly helps with this problem is realizing that (n2)!(n!)n+1 \dfrac{(n^2)!}{(n!)^{n + 1}} is always an integer.
This is because it is the number of ways to split up n2n^2 objects into nn unordered groups of size n.n.
Now, we get that (n2−1)!(n!)n=(n2)!(n!)n+1⋅n!n2. \dfrac{(n^2 - 1)!}{(n!)^n} = \dfrac{(n^2)!}{(n!)^{n + 1}} \cdot \dfrac{n!}{n^2}.
Therefore, whenever n2n^2 divides n!,n!, the original expression is an integer; this is equivalent to nn dividing (n−1)!.(n - 1)!.
Suppose nn is composite. If n=abn=ab with 2≤a<b<n2\le a<b<n, then the distinct factors aa and bb both occur in (n−1)!(n-1)!, so (n−1)!(n-1)! is divisible by nn. If n=a2n=a^2 with a≥3a\ge3, then (n−1)!(n-1)! contains the distinct factors aa and 2a2a, whose product is a multiple of nn. Thus every composite n≠4n\ne4 works. The case n=1n=1 also works directly.
Conversely, if n=pn=p is prime, the exponent of pp in the denominator is p,p, while its exponent in (p2−1)!(p^2-1)! is p−1,p-1, so the expression is not an integer.
For n=4,n=4, the denominator contains 212,2^{12}, while 15!15! contains only 211,2^{11}, so this case also fails.
There are 1515 primes at most 50,50, and adding 4,4, we get 1616 values for nn that do not work.
Therefore, the desired answer is 50−16=34.50 - 16 = 34.
Thus, D is the correct answer.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.