Analyzing the Setup
The problem asks for the largest power of 7 that divides 101!. This is equivalent to finding the exponent of the prime p=7 in the prime factorization of 101!.
We are not calculating the value of the factorial itself, but rather determining the frequency of the prime factor 7 within the product of all integers from 1 to 101.
The Sieve of Legendre
To solve this efficiently, we employ Legendre's Formula. This formula provides the exponent Ep(n!) of a prime p in the prime factorization of n! using the following summation:
Ep(n!)=⌊pn⌋+⌊p2n⌋+⌊p3n⌋+…
The logic behind this is a systematic "sieve." We first count all multiples of 7, then account for the "extra" factors of 7 present in multiples of 72, 73, and so on.
The Calculation
We apply the formula with n=101 and p=7.
First, we calculate the number of multiples of 7 up to 101:
Next, we account for the multiples of 72=49:
These two values represent the numbers 49 and 98, which each contribute an additional factor of 7 beyond the first one already counted.
Finally, we check for multiples of 73=343:
Since 343>101, the sequence terminates here as all subsequent terms will also be 0.
The Grand Total
To find the total exponent, we sum the results of our calculations:
The prime number 7 appears exactly 16 times in the prime factorization of 101!.
Therefore, the largest power of 7 that divides 101! is 716.