Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 1021

Chapter 5 - Congruences

The command mod(a,n) returns the least nonnegative residue of a mod n.

mod(43,10)
3
mod(3,10)
3
mod(-3,10)
7
mod(40,10)
0

We check the calculations in Example 5.18:

mod(178,4)
2
mod(178,5)
3
mod(178,9)
7