Problem:
For how many integers n between 1 and 50 , inclusive, is
(n!)n(n2β1)!β
an integer? (Recall that 0!=1.)
Answer Choices:
A. 31
B. 32
C. 33
D. 34
E. 35
Solution:
The main insight is that (n!)n+1(n2)!β is always an integer. This is true because it is precisely the number of ways to split up n2 objects into n unordered groups of size n. Thus, (n!)n(n2β1)!β=(n!)n+1(n2)!ββ
n2n!β is an integer if n2β£n!, or in other words, if n(nβ1)!β, is an integer. This condition is false precisely when n=4 or n is prime, by Wilson's Theorem. There are 15 primes between 1 and 50, inclusive, so there are 15+1=16 terms for which (n!)n(n2β1)!β is potentially not an integer. It can be easily verified that the above expression is not an integer for n=4 as there are more factors of 2 in the denominator than the numerator. Similarly, it can be verified that the above expression is not an integer for any prime n=p, as there are more factors of p in the denominator than the numerator. Thus all 16 values of n make the expression not an integer and the answer is 50β16= (D)34β.
SideNote: Another method to prove that
(n!)n+1(n2)!β
is always an integer is instead as follows using Number Theory. Notice that n will divide the numerator n+1 times, since n2=nΓn contains not one but two factors of n. Also, for a<n, notice that a divides (n2) ! at least
βan2βββ₯βnβ1n2βββ₯βnβ1n2β1βββ₯n+1
times. Thus, each integer from 1 to n will divide (n2) ! at least n+1 times, which proves such a lemma
OR
We can use the P-Adic Valuation (more info could be found here: Mathematicial notation) of n to solve this problem (recall the P-Adic Valuation of ' n ' is denoted by vpβ(n) and is defined as the greatest power of some prime ' p ' that divides n. For example, v2β(6)=1 or v7β(245)=2.) Using Legendre's formula, we know that :
vpβ(n!)=βi=1βββpinββ
Seeing factorials involved in the problem, this prompts us to use Legendre's Formula where n is a power of a prime.
We also know that, vpβ(mn)=nβ
vpβ(m). Knowing that aβ£b if vpβ(a)β€vpβ(b), we have that:
nβ
vpβ(n!)β€vpβ((n2β1)!)
and we must find all n for which this is true.
If we plug in n=p, by Legendre's we get two equations:
vpβ((n2β1)!)=βi=1βββpin2β1ββ=(pβ1)+0+β¦+0=pβ1
And we also get:
vpβ((n!)n)=nβ
vpβ(n!)=nβ
βi=1βββpinββ=pβ
(1+0+β¦0)=p
But we are asked to prove that nβ
vpβ(n!)β€vpβ((n2β1)!)βΉpβ€pβ1 which is false for all ' n ' where n is prime.
Now we try the same for n=p2, where p is a prime. By Legendre we arrive at:
vpβ((p4β1)!)=p3+p2+pβ3
(as vpβ(p4!)=p3+p2+p+1 and p4 contains 4 factors of p ) and
p^{2} \cdot v_{p}\left(p^{2}!\right)=p^{3}+p^
Then we get:
p2β
vpβ(p!)β€vpβ((n4β1)!)βΉp3+p2β€p3+p2+pβ3
Which is true for all primes except for 2 , so 22=4 doesn't work. It can easily be verified that for all n=pi where i is an integer greater than 2 , satisfies the inequality :
nβ
vpβ(n!)β€vpβ((n2β1)!)
Therefore, there are 16 values that don't work and 50β16=(D)34β values that work.
The problems on this page are the property of the MAA's American Mathematics Competitions