Take a test Sign in 中文
← Exercise 898 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 898
For how many integers $n$ between $1$ and $50$, inclusive, is $\dfrac{(n^2-1)!}{n\,(n!)^n}$ an integer?
← Back to Problem 898
Solution
  1. $M=\dfrac{(n^2)!}{(n!)^{n+1}}$ is an integer, because it counts the ways to split $n^2$ objects into $n$ unordered groups of $n$. And $\dfrac{(n^2-1)!}{n\,(n!)^n}=M\cdot\dfrac{n!}{n^2\cdot n}=M\cdot\dfrac{(n-1)!}{n^2}$. So it is an integer whenever $n^2\mid(n-1)!$ (and $n=1$ gives $1$).
  2. For composite $n\le50$, $n^2\mid(n-1)!$ fails only for $n=4,8,9$ and $n=2p$ with $p$ an odd prime ($6,10,14,22,26,34,38,46$).
  3. Primes fail: $(p^2-1)!$ contains $p$ exactly $p-1$ times, but $n(n!)^n$ contains it $p+1$ times. Also $4,8,9$ fail: $15!$ has $2^{11}$ but $4(4!)^4$ has $2^{14}$; $63!$ has $2^{57}$ but $8(8!)^8$ has $2^{59}$; $80!$ has $3^{36}$ but $9(9!)^9$ has $3^{38}$.
  4. For $n=2p$ the only prime in question is $p$ ($(n-1)!$ already supplies the factor $4$). $(4p^2-1)!$ contains $p$ at least $(4p-1)+3=4p+2$ times, while $n(n!)^n$ contains it $1+2p\cdot2=4p+1$ times, so these $n$ work.
  5. So the expression fails for the $15$ primes and for $4,8,9$: $50-18=\boxed{32}$ values.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year