MathorynMathematical Formula Database

Number Theory

Properties of Congruences

Congruences modulo nn can be added, subtracted, multiplied and raised to powers like ordinary equations. These rules are used to compute remainders and last digits without large numbers and to check arithmetic.

a≡b, c≡d(modn) ⇒ a±c≡b±d,  ac≡bd,  ak≡bk(modn)a\equiv b,\ c\equiv d\pmod n\ \Rightarrow\ a\pm c\equiv b\pm d,\ \ ac\equiv bd,\ \ a^k\equiv b^k\pmod n
LaTeXa\equiv b,\ c\equiv d\pmod n\ \Rightarrow\ a\pm c\equiv b\pm d,\ \ ac\equiv bd,\ \ a^k\equiv b^k\pmod n

Variables

a, b, c, da,\ b,\ c,\ d
integers
nn
modulus (positive integer)
kk
non-negative integer exponent

Example

Find the last digit of 37⋅4837\cdot48.

  1. 37≡737\equiv7, 48≡8(mod10)48\equiv8\pmod{10}.
  2. 7⋅8=56≡67\cdot8=56\equiv6.
  3. Check: 37⋅48=177637\cdot48=1776.

Answer: The last digit is 66.

Related formulas