3.3 Congruences
One of the most basic and useful notions in number theory is modular arithmetic, or congruences.
Definition
Let be integers with We say that
(read: is congruent to mod ) if is a multiple (positive or negative or zero) of
Another formulation is that if and differ by a multiple of This can be rewritten as for some integer (positive or negative).
Example
Note: Many computer programs regard as equal to the number 7, namely, the remainder obtained when 17 is divided by 10 (often written as ). The notion of congruence we use is closely related. We have that two numbers are congruent mod if they yield ...
Get Introduction to Cryptography with Coding Theory, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.