EduFarming
Your list · 0हिं

Type at least two letters. Press Esc to close.

↑↓ navigate↵ openTAB cycle filter

Modulo Arithmetic & Congruence · Question 11 of 97

Question 11

MediumOriginal question

Which of the following statements are true?

I. a mod na \bmod n is always one of 0,1,…,n−10, 1, \dots, n - 1.

II. (−1) mod n=n−1(-1) \bmod n = n - 1.

III. (−a) mod n=a mod n(-a) \bmod n = a \bmod n for every integer aa.

IV. a mod n=0a \bmod n = 0 exactly when nn divides aa.

Options for question 11

Show the answer and explanation
CorrectNot quiteAnswer D

Correct answer: D

Explanation

  1. I is the definition of a remainder, and IV says the remainder is 0. For II, −1=n×(−1)+(n−1)-1 = n \times (-1) + (n - 1).

  2. III is false: 3 mod 5=33 \bmod 5 = 3 but (−3) mod 5=2(-3) \bmod 5 = 2.

Concept
Facts about the mod operator
Typical time
120 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.