EduFarming
Your list · 0हिं

Type at least two letters. Press Esc to close.

↑↓ navigate↵ openTAB cycle filter

Modulo Arithmetic & Congruence · Question 9 of 97

Question 9

MediumOriginal question

What is (−23) mod 5(-23) \bmod 5?

Options for question 9

Show the answer and explanation
CorrectNot quiteAnswer C

Correct answer: C

Explanation

  1. A remainder modulo 5 is always one of 0, 1, 2, 3 and 4, even when the number divided is negative.

  2. −23=5×(−5)+2-23 = 5 \times (-5) + 2, so (−23) mod 5=2(-23) \bmod 5 = 2.

Worth noting

−3 takes the remainder of 23 and puts the sign back, but a remainder cannot be negative.

Concept
The mod of a negative number
Typical time
90 s
Your time
—
The rule this testsThe modulo operation
Practise this chapter →

Ten questions from Modulo Arithmetic & Congruence, at your own pace.

Practise this chapter →

Ten questions from Modulo Arithmetic & Congruence, at your own pace.