nmod – integers mod n

class flint.nmod(val, mod)

The nmod type represents elements of Z/nZ for word-size n.

>>> nmod(10,17) * 2
3
modulus(self)
repr(self)
str(self)