Module math
ac_
library
0.2.0
Module math
Module Items
Functions
In crate ac_
library
ac_library
Module
math
Copy item path
Source
Expand description
Number-theoretic algorithms.
Functions
ยง
crt
Performs CRT (Chinese Remainder Theorem).
floor_
sum
Returns
inv_mod
Returns an integer $y \in [0, m)$ such that $xy \equiv 1 \pmod m$.
pow_mod
Returns $x^n \bmod m$.