I'd like to add to tonio's reply. Programmers use b (mod n) to represent the remainder upon dividing b by n. For example, 7 (mod 5) equals 2, since 7/5 = 1, with remainder 2. See , for example, section 3.4 of Concrete Mathematics by Graham, Knuth and Patashnik.