To find the largest exponent n such that 3n (reading 3n as 3n based on the context of such factorial problems) divides 66!, we use Legendre's Formula.
Legendre's Formula
The exponent of a prime p in m! is given by:
Ep(m!)=⌊pm⌋+⌊p2m⌋+⌊p3m⌋+…
Calculation for p=3 and m=66
- ⌊66/3⌋=22
- ⌊66/9⌋=7
- ⌊66/27⌋=2
- ⌊66/81⌋=0 (Stop here)
Sum: 22+7+2=31