Section9.1Groups and Number Systems

There is still a lot that the integers modulo \(n\) can teach us. We can approach new horizons by rethinking the problems we have just studied first.

Subsection9.1.1Solving Linear Equations — again

What is a group, again? In short, a group is any "number system" where we can solve linear equations. Examples:

  • So \(\mathbb{Z}_n\) is a group under addition, because \(3+x\equiv 2\) mod (4) has a solution.
    • Namely, we use the (group) inverse, \(-3\equiv 1\), to solve it. so that \[x\equiv 2+(-3)\equiv 2+1\equiv 3\text{ mod }(4)\] is the solution.
  • Similarly, we can solve equations like \(\frac{2}{3}\cdot x=5\) over the rational numbers. Why? Because \(\frac{2}{3}\) has a (group) inverse in the group \(\mathbb{Q}\setminus\{0\}\), namely \(\left(\frac{2}{3}\right)^{-1}=\frac{3}{2}\), and \[x=5\cdot\frac{3}{2}\] does indeed solve this equation.

Let us use this idea to help us with solving congruences modulo \(n\). Using the above framework, I should be able to solve \[43x\equiv 2\text{ mod }(997)\] by using something like \(a=43^{-1}\), the notation we saw before.

That would get us \[x\equiv 2a\equiv 2\cdot 43^{-1}\text{ mod }(997)\; .\] Let's try this in Sage.

This checks out, of course:

We can similarly try to solve with a composite modulus: \[53y\equiv 29\text{ mod }(100)\] using \(b=53^{-1}\), so that \[y\equiv 29\cdot b\equiv 29\cdot 53^{-1}\text{ mod }(100)\, .\]

Subsection9.1.2A new group

So this should often be possible. But it can't always work, otherwise I could use it to solve something like \[52y\equiv 29\text{ mod }(100)\] and we already know this does not have a solution.

There isn't a \(52^{-1}\) in this case, and so we can't just use this idea willy-nilly.

Hence we introduce a new group - and it's even a simple set to define.

Definition9.1.1
We let \(U_n\), the group of units modulo \(n\), be the set of equivalence classes \([a]\) modulo \(n\) such that \(\gcd(a,n)=1\).

This will be the set where we are allowed to do inverses, and hence to solve things easily. Right now, figure out the elements of \(U_5\) and \(U_{8}\).

Now, naming something doesn't guarantee it's useful, or that it performs as claimed! So we need to check some things.

Subsubsection9.1.2.1More facts and examples

The terminology units makes sense too. If you are in a number system with addition and multiplication, then a unit is an element that has a multiplicative inverse. Examples:

  • In the integers, \(\pm 1\) are the units.
  • More unusual is the set of complex numbers (!), which all are units except 0.
    • (In fact, the inverse of \(r\left(\cos(\theta)+i\sin(\theta)\right)\) is \(\frac{1}{r}\left(\cos(-\theta)+i\sin(-\theta)\right)\).).
  • So \(U_n\) is the set of all the integers modulo \(n\) that have multiplicative inverses. By our previous investigations, we know this is when \(ax\equiv 1\) mod (\(n\)) has a solution. Since multiplication is the operation, there are inverses!

Naturally, it can take a while to list all these guys, but it's worth doing. Try it for \(n=10\), \(n=11\), and \(n=12\) by hand.

Sage has commands to list the group of units and give the order of the group.

Remark9.1.3

Sage note:
You can use these yourself by using these commands, or by cutting and pasting them in a Sage notebook or command line interface. They are tedious to type, though!