Solveeit Logo

Question

Question: Find the exponent of 3 in 100!...

Find the exponent of 3 in 100!

Explanation

Solution

Use the fact that the exponent of a prime p in n! is given by r=1[npr]\sum\limits_{r=1}^{\infty }{\left[ \dfrac{n}{{{p}^{r}}} \right]}, where [x] is the greatest integers less or equal to x. Use the fact that 3 is a prime number. Hence find the power of 3 in 100!.

Complete step-by-step answer:
Before solving the question, we need to understand what exponent of a number(p) in number q means.
The exponent of a number p in q is the largest number r such that pr{{p}^{r}} divides q.
Hence, we have that if r is the exponent of p in q, then px{{p}^{x}} divides q 0xr\forall 0\le x\le r and px{{p}^{x}} does not divide q xr+1\forall x\ge r+1.
Now consider the number q = n! and p such that p is prime.
We know that n!=1×2×3××(n1)×nn!=1\times 2\,\times 3\times \cdots \times \left( n-1 \right)\times n
The only numbers in the product which are divisible by p are p,2p,...p,2p,...
There are [np]\left[ \dfrac{n}{p} \right] such numbers.
The numbers in the product which are divisible by p2{{p}^{2}} are p2,2p2,{{p}^{2}},2{{p}^{2}},\cdots
There are np2\dfrac{n}{{{p}^{2}}} such numbers.
Continuing this way the number of numbers in the product which are divisible by pr{{p}^{r}} is [npr]\left[ \dfrac{n}{{{p}^{r}}} \right].
The numbers which are divisible by p2{{p}^{2}} are also divisible by p.
Hence the exponent of these numbers is one counted in [np]\left[ \dfrac{n}{p} \right] and one in [np2]\left[ \dfrac{n}{{{p}^{2}}} \right] which accounts for the total contribution in the exponent by these numbers.
Hence, we have the exponent of prime p in n! is [np]+[np2]+\left[ \dfrac{n}{p} \right]+\left[ \dfrac{n}{{{p}^{2}}} \right]+\cdots
Note that this is not an infinite sum since after a particular value of r pr>n{{p}^{r}}>n and hence [npr]=0\left[ \dfrac{n}{{{p}^{r}}} \right]=0
Hence the above summation is equal to r1 prn[npr]\sum\limits_{\begin{smallmatrix} r\ge 1 \\\ {{p}^{r}}\le n \end{smallmatrix}}{\left[ \dfrac{n}{{{p}^{r}}} \right]}
Hence the exponent of 3 in 100! is
[1003]+[10032]+[10033]+[10034]=33+11+3+1=48\left[ \dfrac{100}{3} \right]+\left[ \dfrac{100}{{{3}^{2}}} \right]+\left[ \dfrac{100}{{{3}^{3}}} \right]+\left[ \dfrac{100}{{{3}^{4}}} \right]=33+11+3+1=48
Hence the exponent of 3 in 100! is 48.

Note: [1] Calculation trick:
If [npr]=x\left[ \dfrac{n}{{{p}^{r}}} \right]=x then [npr+1]=[xp]\left[ \dfrac{n}{{{p}^{r+1}}} \right]=\left[ \dfrac{x}{p} \right]
Hence do not calculate the powers of p. But take the previous result and divide it by p and hence find the value.
In the above calculation, the result of the first division is 33.
We divide 33 by 3, and we get 11 which is the result of the second division.
We divide 11 by 3, and the result is 3 (after taking Greatest integer function) which is the result of the third division and so on.