Hi there. This math post is on the modulo operator. The modulo operator finds the remainder from dividing two whole numbers together.

## Topics

- A Review Of Division
- The Modulo Operator
- Practice Problems
- Answers To Practice Problems

A Review Of Division

Division is for figuring out how many groups can fit in a certain amount. When we say something like 24 divided by 4 is 6, we mean that from 24 objects we can have 6 groups with each group have 4 objects each. Note that with 24 divided by 4 we have a zero remainder as there are no objects left out.

**Example One**

What is 100 divided by 10?

From the number 100, how many 10s fit inside 100? The answer is 10. Alternatively, you can ask yourself from the multiplication viewpoint with what number multiplied by 10 gives 100?

**Example Two**

What is 28 divided by 3?

The number three fits into 28 at most 9 times. Nine multiplied by 3 is equal to 27. We cannot have ten groups of three as that would equal 30 which is more than 28.

We can fit nine groups of three into 28. What is left over from nine groups of three is one. The remainder here is 1.

The answer to 28 divided by 3 is 9 remainder 1. This is written as 9R1.

Pixabay Image Source: Calculator

## The Modulo Operator

The modulo operator obtains the remainder from whole number division. It has applications in computer science/programming.

In general if we have two whole numbers such as y and x where y is greater than or equal to x, we have this relation:

*y mod x = Remainder from y divided by x*

**Example One**

What is 100 mod 10?

One hundred divided by ten gives ten with a zero remainder. Since there is a zero remainder, then the expression 100 mod 10 evaluates to 0.

**Example Two**

What is 28 mod 3?

Recall that 28 divided by 3 (from example two in the previous section) is 9 with a remainder of one. The answer to 28 mod 3 is one.

**Example Three**

Evaluate 33 mod 9.

From the number 33, you can create three groups of nine. Three groups of nine is equal to 27 (3 x 9 = 27). What is left over is 6. Evaluating 33 mod 9 gives 6.

## Practice Problems

Evaluate each of the following.

**1)** 10 mod 10

**2)** 11 mod 9

**3)** 77 mod 25

**4)** 8 mod 3

**5) **55 mod 8

**6) **Which has the greater number? Is it 83 mod 10 or 37 mod 8?

**7) **Given that x is a whole positive number, what is x mod x? What is 2x mod x?

## Answers To Practice Problems

**1)** 10 mod 10 = 0

**2)** 11 mod 9 = 2

**3) **77 mod 25 = 3

**4)** 8 mod 3 = 2

**5) **55 mod 8 = 7

**6)** 83 mod 10 = 3 and 37 mod 8 = 5 so 37 mod 8 is greater than 83 mod 10.

**7)** x mod x = 0 and 2x mod x = 0

Thank you for reading.

steemstem73 · 4개월 전This post has been voted on by the

SteemSTEMcuration team and voting trail in collaboration with@curie.If you appreciate the work we are doing then consider voting both projects for witness by selecting

stem.witnessandcurie!For additional information please join us on the

SteemSTEM discordand to get to know the rest of the community!