OJ-Problems-Source/.ACM-Templates/Math/numbertheory/remark.tex
2016-08-13 23:35:41 +08:00

8 lines
394 B
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

数论模板,其中包含:
\begin{itemize}
\item ext\_gcd扩展欧几里得方法解 $ax+by=\gcd(a,b)$,该函数保证当 $a,b>0$$x>0$
\item flsum欧几里得思想解 $\sum_{x=st}^{ed}\lfloor\frac{ax+b}c\rfloor$
\item ind小步大步走算法求 $a^x=m\pmod b$
\item prepare\_inv$O(p)$ 求模 $p$ 域下所有非零元的逆元($p$ 素数)。
\end{itemize}