Example. Addition and multiplication in \mathbb {Z}_4 [01D4]
The addition and multiplication tables for the integers modulo 4 are as follows:
| +_4 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| 0 | 0 | 1 | 2 | 3 |
| 1 | 1 | 2 | 3 | 0 |
| 2 | 2 | 3 | 0 | 1 |
| 3 | 3 | 0 | 1 | 2 |
| \cdot _4 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 2 | 3 |
| 2 | 0 | 2 | 0 | 2 |
| 3 | 0 | 3 | 2 | 1 |
Notice how the addition table has a cyclic pattern, while there is no obvious pattern in the multiplication table.
From the addition and multiplication tables, we can readily read tables for additive and multiplicative inverses, where they exist:
| additive inverse | multiplicative inverse | |
|---|---|---|
| 0 | 0 | none |
| 1 | 3 | 1 |
| 2 | 2 | none |
| 3 | 1 | 3 |
Interstingly, we have one non-trivial multiplicative inverse: 3\cdot _4 3 = 1.