Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

In school I learned that there are four basic arithmetic operations: addition, subtraction, multiplication, and division. I always wondered why modulus is not a basic arithmetic operation. Is there any explanation that is also understandable by a math noob?

share|improve this question
Who knows? Because modulus is defined in terms of the other four? Because modulus is first needed only much later? –  GEdgar Sep 24 '12 at 18:07
It's a bit hard to define for all numbers - it is peculiar to the integers (or at least, the meaning of the modulus of two rational numbers is obscure.) –  Thomas Andrews Sep 24 '12 at 18:15
What is the question exactly? What is the operation you are thinking of? On what numbers? Do you want "mod" to act as a binary operation like "x mod y"? –  rschwieb Sep 24 '12 at 19:03
@ThomasAndrews: One can get a perfectly good modulus operation on the reals by defining $a\bmod b$ to mean the smallest nonnegative number $c$ such that $a-c$ is an integer multiple of $b$. (It won't preserve multiplication the way integer modulus does, but sometimes you don't care about that). –  Henning Makholm Sep 24 '12 at 19:08
As I said, it can be defined, but it isn't very intuitive. In particular, you need a separate notion of "integer" when you are dealing with rationals, for example. We don't, interestingly, often treat the integer quotient of reals as something which needs to be taught as a fundamental operation. –  Thomas Andrews Sep 24 '12 at 19:14
show 3 more comments

3 Answers

When I learned division in elementary school, I learned "remainder" at the same time. I think it is mostly terminological that this is not called an "operation", because the division algorithm produces both the whole number quotient and the remainder of division of two natural numbers, at the same time.

On the other hand, when we move to the rationals, "remainder of division" is no longer a very interesting operation, because the rationals are a field. Students are taught to stop using the division algorithm and start using a different algorithm to divide fractions. This is perhaps a reason that the remainder operation is de-emphasized. But students are certainly still able to compute remainders if they are asked to; they just don't describe it as an "arithmetical operation".

share|improve this answer
add comment

Here’s a suggestion that you may or may not like. The operation you’re talking about, which takes $m$ and $n$ and finds the smallest nonnegative number congruent to $m$ modulo $n$, does not make sense everywhere, in particular in every field, whereas $+$, $-$, $\times$, and $/$ do. Taking residue modulo $n$ does not make sense in any structure that has characteristic $p$, and more generally is extremely problematic in any structure without an order. How could you define your “$z\mod{(2+i)}$” in the ring of Gaussian integers, for instance?

Even in an ordered ring that isn’t a field, like ${\mathbb{Z}}_{(2)}$, which is the set of all rational numbers with only odd numbers in the denominator, what would your “$2/3\mod{2}$” be? Some of the commenters would seem to accept $2/3$ as the value, but any algebraist would say that it should be $0$, because $2/3$ is in the unique maximal ideal of the local ring ${\mathbb{Z}}_{(2)}$.

share|improve this answer
add comment

If you're thinking of treating $x\pmod{y}$ as a binary operation, then that operation is not commutative or even associative on the integers. It also looks like it can't have an identity (on the right or on the left).

If that's the operation you have in mind, then it's really badly behaved: it's just not in the same class with the usual operations.

Further note of explanation While writing this I completely forgot about the viewpoint of subtraction and division as operations in their own right. This is mainly because long ago I let them blur into addition and multiplication and promptly forgot about them. They are a little bit like this!

However there doesn't seem to be any analogue of "addition" or "multiplication" in the case of "mod as an operation", so I'm still inclined to say it's not of the same class.

share|improve this answer
Oh? Subtraction isn't commutative or (two-way) associative either. –  Rick Decker Sep 24 '12 at 19:46
I would call $0$ a right-identity, although as Thomas Andrews mentions above, it starts to get somewhat counterintuitive. –  Erick Wong Sep 24 '12 at 20:02
@RickDecker You got me to a certain extent :) Really subtraction and division are best subsumed by addition and multiplication, but I can't imagine what would bundle up "x mod y" like that. –  rschwieb Sep 24 '12 at 20:11
@ErickWong True. –  rschwieb Sep 24 '12 at 20:12
Wow, this is the smarmiest downvote I've ever gotten :) –  rschwieb Sep 24 '12 at 20:18
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.