4 ms·
> It's mentioned later, but the "math friendly" versions satisfy the axioms of a group and a field, which only works if the modulus is a prime. The integers mo
by hither_shores 4y ago
> It's mentioned later, but the "math friendly" versions satisfy the axioms of a group and a field, which only works if the modulus is a prime.
The integers mod n >= 1 are always a group (under addition), only the field structure requires prime n.