| Division equationModulo returns the remainder r of this equation, as what modulo is explains. | a=n⋅q+r,0≤r<n | 17=5⋅3+2, so 17mod5=2 |
| Modulo and divisibilityA zero remainder means exact division, and a nonzero one says by how much the division misses (modulo and divisibility). | amodn=0 exactly when n∣a | 24mod6=0 and 6∣24 |
| Range of remaindersExactly n possible values, never n itself, as the range of remainders shows. | amodn is one of 0,1,2,…,n−1 | 347mod10=7 |
| Computing a remainderDivide, keep the integer part, multiply back and subtract, the steps of how to compute a remainder. | amodn=a−n⋅⌊na⌋ | 47mod5=47−5⋅9=2 |
| Edge casesA number already below n needs no reduction, while amod0 is undefined, as the edge cases explain. | amodn=a for 0≤a<n, and amod1=0 | 3mod10=3 |
| CongruenceTwo numbers with the same remainder; congruence is a statement about them, not an operation. | a≡b(modn) means amodn=bmodn | 17≡5(mod12) |
| Difference testAn equivalent way to test a congruence through the difference, also from congruence. | a≡b(modn) exactly when n∣(a−b) | 23−2=21 and 7∣21, so 23≡2(mod7) |
| Reflexive and symmetricCongruence behaves like equality: a−a=0 is divisible by n, and so is b−a when a−b is, as the properties of congruence show. | a≡a, and a≡b gives b≡a(modn) | 17≡5 and 5≡17(mod12) |
| TransitiveWith the other two properties it splits the integers into congruence classes, as the properties of congruence explain. | a≡b and b≡c give a≡c(modn) | modulo 3: three classes, with remainders 0, 1 and 2 |