This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


is an option that can be given in certain algebraic functions to specify that integers should be treated modulo n.
  • Equations for Modulus can be given in Solve and related functions.
  • Arithmetic is usually done over the full ring Z of integers; setting the option Modulus specifies that arithmetic should instead be done in the finite ring Z_n.
  • The setting Modulus->0 specifies the full ring Z of integers.
  • Some functions require that Modulus be set to a prime, or a power of a prime. Z_n is a finite field when n is prime.
New in 1