Crypto Important
Crypto Important
Pankaj Kumar
Assistant Professor
November 6, 2023
Prime Number
Set of residue:
• The modulo operation creates a set, which in modular arithmetic is
referred to as the set of least residues modulo n, or Zn .
• Zn = {0, 1, 2, ...(n − 1)}
• Z2 = {0, 1}
• Z7 = {0, 1, 2, 3, 4, 5, 6}
Congruence:
• To show that two integers are congruent, we use the congruence oper-
ator ≡. For example, we write:
• 4 ≡ 11 mod7
• 3 ≡ 26 mod23
Modular Properties:
• (a + b) mod n = {(a mod n) + (b mod n)} mod n
• (a − b) mod n = {(a mod n) − (b mod n)} mod n
• (a × b) mod n = {(a mod n) × (b mod n)} mod n
Inverse:
• Additive inverse (relative to addition operation):
• In modular arithmetic, each integer has an additive inverse.
• The sum of an integer and its additive inverse is congruent to 0 modulo
n, i.e., in Zn , two numbers a and b are additive inverses of each other
if
(a + b) ≡ 0 modn