This appendix is outside the Fifth-year scientific syllabus, but it shows how elementary arithmetic (gcd, divisors, congruences) became — starting from the 1970s — the basis of modern digital security. It is a splendid example of “pure” mathematics that turns out to be unpredictably applied. The starting point is the congruence relation.

Definition — Congruence modulo nn

Given a,bZa,b\in\mathbb{Z} and nNn\in\mathbb{N} with n2n\ge 2, we say that aa is congruent to bb modulo nn, and we write ab(modn),a \equiv b \pmod n, if nn divides aba-b. Equivalently: aa and bb give the same remainder in the division by nn.

Examples: 172(mod5)17\equiv 2\pmod 5 (since 172=1517-2=15 is divisible by 55); 34(mod7)-3\equiv 4\pmod 7. Modular arithmetic is that of the clock: 1414 hours +13+ 13 hours =273(mod24)= 27\equiv 3\pmod{24} (3 o’clock the next morning).

Topics: Distribuzioni probabilita
Concepts: Aritmetica modulare · Congruenza
Skills: Usare formule