To perform an operation modulo n, simply perform the operation as you would normally do, then divide it by n. The result you want is theremainderof the division. For example, 3 plus 15 modulo 7 is equivalent to 4 (3 + 15 = 18, 18 when divided by 7 gives a remainder of 4).

Hope that helps!