CS413 Module-I
CS413 Module-I
(Elective-I)- Module-I
cnmodi@nitgoa.ac.in
Module-I
Mathematical preliminaries:
Number theory and algebra
Finite fields
_
Hence Q13 = {1, 3, 4, 9, 10, 12} and Q13 = {2, 5, 6, 7, 8, 11}
Let n be a product of two distinct odd primes p and q, n = pq.
Then a ∈ Z∗ n is a quadratic residue modulo n if and only if a ∈
Qp and a ∈ Qq. It follows that |Qn| = |Qp|·|Qq| = (p − 1)(q −
1)/4 and |Qn | = 3(p − 1)(q − 1)/4.
_
Let n = 21. Then Q21 = {1, 4, 16} and Q_21= {2, 5, 8, 10, 11, 13, 17,
19, 20}
Let a ∈ Qn. If x ∈ Z∗ n satisfies x2 ≡ a (mod n), then x is called a
square root of a modulo n
03/14/2025 Chirag N. Modi 15
Number theory
Fact (number of square roots)
(i) If p is an odd prime and a ∈ Qp, then a has exactly two
square roots modulo p.
(ii) More generally, let n = p1e1p2e2 · · · pkek where the pi are
distinct odd primes and ei ≥ 1. If a ∈ Qn, then a has precisely 2k
distinct square roots modulo n.
Associativity: (a ◦ b) ◦ c = a ◦ (b ◦ c).