Legendre formula
= Legendre formula
{c}
{wiki=Legendre's_formula}
For a <prime number> $p$ and a positive <integer> $n$, the <P-adic valuation> of a <factorial> is
$$
v_p(n!)=\sum_{j\geq1}\left\lfloor\frac{n}{p^j}\right\rfloor.
$$
= Legendre formula
{c}
{wiki=Legendre's_formula}
For a <prime number> $p$ and a positive <integer> $n$, the <P-adic valuation> of a <factorial> is
$$
v_p(n!)=\sum_{j\geq1}\left\lfloor\frac{n}{p^j}\right\rfloor.
$$