第 898 题:(2019 AMC 10a, 25; 2019 AMC 12a, 24)
For how many integers $n$ between $1$ and $50$, inclusive, is \[\frac{(n^2-1)!}{(n!)^{n}}\] an integer? (Recall that $0!=1$.)
$\textbf{(A)}\ 31 \qquad \textbf{(B)}\ 32 \qquad \textbf{(C)}\ 33 \qquad \textbf{(D)}\ 34 \qquad \textbf{(E)}\ 35$
- $\dfrac{(n^2)!}{(n!)^{n+1}}$ is an integer (the number of ways to split $n^2$ objects into $n$ unordered groups of $n$). So $\dfrac{(n^2-1)!}{(n!)^n}=\dfrac{(n^2)!}{(n!)^{n+1}}\cdot\dfrac{n!}{n^2}=\dfrac{(n^2)!}{(n!)^{n+1}}\cdot\dfrac{(n-1)!}{n}$, which is an integer whenever $n\mid(n-1)!$, i.e.\ $n=1$ or $n$ composite other than $4$.
- If $n=p$ is prime, $(p^2-1)!$ contains $p$ exactly $p-1$ times but $(p!)^p$ contains it $p$ times: not an integer. For $n=4$: $15!$ has $2^{11}$, $(4!)^4$ has $2^{12}$: not an integer.
- The primes up to $50$ number $15$, so $50-15-1=34$. The answer is (D).
For how many integers $n$ between $1$ and $50$, inclusive, is $\dfrac{(n^2-1)!}{n\,(n!)^n}$ an integer?