Beta Phase: Square45 is currently in beta testing. Expect some features or content to be incomplete or missing.
45

Advanced properties

Topics like primitive roots, quadratic residues, and the Chinese Remainder Theorem.
📜

The statement of the theorem

Let nn be a positive integer. The multiplicative group of units modulo nn, denoted by (Z/nZ)(\mathbb{Z}/n\mathbb{Z})^*, is a finite abelian group whose order is ϕ(n)\phi(n). The exponent of this group, λ(n)\lambda(n), is the smallest positive integer such that aλ(n)1(modn)a^{\lambda(n)} \equiv 1 \pmod{n} for all a(Z/nZ)a \in (\mathbb{Z}/n\mathbb{Z})^*. Furthermore, the structure theorem for finite abelian groups dictates that (Z/nZ)(\mathbb{Z}/n\mathbb{Z})^* is isomorphic to the direct product of cyclic groups whose orders are determined by the prime factorization of nn. Specifically, if n=p1k1p2k2prkrn = p_1^{k_1} p_2^{k_2} \cdots p_r^{k_r}, then (Z/nZ)i=1r(Z/pikiZ)(\mathbb{Z}/n\mathbb{Z})^* \cong \prod_{i=1}^{r} (\mathbb{Z}/p_i^{k_i}\mathbb{Z})^*. The exponent λ(n)\lambda(n) is given by the least common multiple of the exponents of the component groups: λ(n)=lcm(λ(p1k1),,λ(prkr))\lambda(n) = \operatorname{lcm}(\lambda(p_1^{k_1}), \dots, \lambda(p_r^{k_r})). For prime powers pkp^k, the exponent λ(pk)\lambda(p^k) is defined as:\n\begin{itemize}\item If p=2p=2 and k1k \ne 1, λ(2k)=2k2\lambda(2^k) = 2^{k-2}.\item If pp is an odd prime, λ(pk)=ϕ(pk)=pk1(p1)\lambda(p^k) = \phi(p^k) = p^{k-1}(p-1).\end{itemize}