Congruence

For a positive integer 𝑛, the integers π‘Ž and 𝑏 are congruent π‘šπ‘œπ‘‘ 𝑛 if their remainders when divided by 𝑛 are the same.

Info

52 ≑ 24 (π‘šπ‘œπ‘‘ 7)

As we can see above, 52 and 24 are congruent (π‘šπ‘œπ‘‘ 7) because:

  • 52 (π‘šπ‘œπ‘‘ 7) = 3
  • 24 (π‘šπ‘œπ‘‘ 7) = 3

Note thatΒ =Β is different from ≑

Properties of Addition in Modular Arithmetic

  • If π‘Ž + 𝑏 = 𝑐, then π‘Ž (π‘šπ‘œπ‘‘ 𝑁) + 𝑏 (π‘šπ‘œπ‘‘ 𝑁) ≑ 𝑐 (π‘šπ‘œπ‘‘ 𝑁)
  • If π‘Ž ≑ 𝑏 (π‘šπ‘œπ‘‘ 𝑁), then π‘Ž + π‘˜ ≑ 𝑏 + π‘˜ (π‘šπ‘œπ‘‘ 𝑁) for any integer π‘˜
  • If π‘Ž ≑ 𝑏 (π‘šπ‘œπ‘‘ 𝑁) and 𝑐 ≑ 𝑑 (π‘šπ‘œπ‘‘ 𝑁), then π‘Ž + 𝑐 ≑ 𝑏 + 𝑑 (π‘šπ‘œπ‘‘ 𝑁)
  • If π‘Ž ≑ 𝑏 (π‘šπ‘œπ‘‘ 𝑁), then -π‘Ž ≑ βˆ’π‘ (π‘šπ‘œπ‘‘ 𝑁)

Properties of Multiplication in Modular Arithmetic

  • If π‘Žβ‹…π‘ = 𝑐, thenΒ π‘Ž(π‘šπ‘œπ‘‘ 𝑁) β‹… 𝑏(π‘šπ‘œπ‘‘ 𝑁) ≑ 𝑐(π‘šπ‘œπ‘‘ 𝑁).
  • If π‘Ž ≑ 𝑏 (π‘šπ‘œπ‘‘ 𝑁), then π‘˜π‘Ž ≑ π‘˜π‘ (π‘šπ‘œπ‘‘ 𝑁)Β for any integer π‘˜
  • If π‘Ž ≑ 𝑏 (π‘šπ‘œπ‘‘ 𝑁)Β and 𝑐 ≑ 𝑑 (π‘šπ‘œπ‘‘ 𝑁), then π‘Žπ‘ ≑ 𝑏𝑑 (π‘šπ‘œπ‘‘ 𝑁)

Properties of Exponentiation in Modular Arithmetic

  • If π‘Ž ≑ 𝑏 (π‘šπ‘œπ‘‘ 𝑁), then π‘Žπ‘˜ ≑ π‘π‘˜ (π‘šπ‘œπ‘‘ 𝑁)Β for any positive integer π‘˜

Properties of Division in Modular Arithmetic

  • If 𝑔𝑐𝑑(π‘˜,𝑁) = 1 and π‘˜π‘Ž ≑ π‘˜π‘ (π‘šπ‘œπ‘‘ 𝑁), thenΒ π‘ŽΒ  ≑ 𝑏 (π‘šπ‘œπ‘‘ 𝑁)

Resources