43.5k views
3 votes
Perform the modular arithmetic. (13 − 6) mod 6

1 Answer

2 votes

Answer:

1

Explanation:

You can do this two ways:

(13 -6) mod 6 = 7 mod 6 = 1

(13 -6) mod 6 = (13 mod 6) -(6 mod 6) = 1 - 0 = 1

____

"mod 6" means you are interested in the remainder after division by 6. For some number n, it can be computed as ...

n mod 6 = n - 6×Floor(n/6)

User Harminder Singh
by
8.0k points