Modular Arithmeticmedium
0:00.0

Find the sum of all elements in the set of units U(Z8)={xZ8:gcd(x,8)=1}U(\mathbb{Z}_8) = \{x \in \mathbb{Z}_8 : \gcd(x, 8) = 1\}.