Encyclosphere.org ENCYCLOREADER
  supported by EncyclosphereKSF

Modular arithmetic

From Wikiversity - Reading time: 2 min


Modular arithmetic is a type of arithmetic on finite subsets of the natural numbers

Definition

[edit | edit source]

For then

iff

This is read as "a is congruent modulo n to b".

Examples

[edit | edit source]

If then

If then

Calculation

[edit | edit source]

An easy way to calculate in mod{n} is they have the same remainder when divided by .

Equivalence

[edit | edit source]

Congruence modulo n is an equivalence relation.

Reflexivity

[edit | edit source]

Let . Then and so . Thus .

Symmetry

[edit | edit source]

Let such that . Then . Since . Thus .

Transitivity

[edit | edit source]

Let such that. Then . Then . Thus and .


Licensed under CC BY-SA 3.0 | Source: https://en.wikiversity.org/wiki/Modular_arithmetic
24 views | Status: cached on July 28 2025 22:23:20
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF