Zq
Zq, often written as Z/qZ or ℤ/qℤ, denotes the ring of integers modulo q. It consists of the q residue classes {0, 1, ..., q−1} with addition and multiplication performed modulo q. As an additive group, Zq is cyclic of order q, generated by 1. As a ring, it is commutative with a multiplicative identity, but its structure depends on q: if q is prime, Zq is a finite field; if q is composite, Zq contains zero divisors and is not a field.
When q is prime, the nonzero elements of Zq form a cyclic multiplicative group of order q−1.
Relation to other notation is context-dependent. Zq is often used interchangeably with Z/qZ or ℤ/qℤ, but in