[Math] Find the largest $k$ such that $3^k$ divides the product of the first $100$ odd integers

arithmeticelementary-number-theory

Let $P$ be the product of the first 100 positive odd integers. Find the largest integer $k$ such that $P$ is divisible by $3^k$.

There are $50$ odd numbers and $50$ even numbers between $0$ and $100$, $99$ being the $50$th odd. So it makes sense that, $199$ is the $100$th odd number.

I got that
$$P = 1 \cdot 3 \cdots 199 = \frac{200!}{2 \cdot 4 \cdot 6 \cdots 198},$$

but that doesn't really help.

I am after
$$\prod_{n = 0}^{99} (2n + 1),$$
but I don't see a general formula.

Best Answer

You may notice that $$P=\frac{200!}{2^{100}\cdot 100!} $$ Now use that a prime $p$ occurs in $n!$ with multiplicity exactly $$\lfloor n/p\rfloor + \lfloor n/p^2\rfloor + \lfloor n/p^3\rfloor + \lfloor n/p^4\rfloor +\ldots $$