Skip to content

Commit bcfc8ec

Browse files
authored
Fixed Typo (cp-algorithms#553)
1 parent 9d0490e commit bcfc8ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/algebra/factorial-modulo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ n!_{\%p} &=& 1 \cdot 2 \cdot 3 \cdot \ldots \cdot (p-2) \cdot (p-1) \cdot \under
1818
& &\quad \cdot \ldots \cdot (p-1) \cdot \underbrace{1}\_{p^2} \cdot 1 \cdot 2 \cdot \ldots \cdot (n \bmod p) \pmod{p}
1919
\end{eqnarray}$$
2020

21-
It can be clearly seen that factorial is divided into several blocks of same length expect for the last one.
21+
It can be clearly seen that factorial is divided into several blocks of same length except for the last one.
2222

2323
$$\begin{eqnarray}
2424
n!_{\%p}&=& \underbrace{1 \cdot 2 \cdot 3 \cdot \ldots \cdot (p-2) \cdot (p-1) \cdot 1}\_{1\text{st}} \cdot \underbrace{1 \cdot 2 \cdot 3 \cdot \ldots \cdot (p-2) \cdot (p-1) \cdot 2}\_{2\text{nd}} \cdot \ldots \\\\

0 commit comments

Comments
 (0)