Notes From CS Undergrad Courses FSU
This project is maintained by awa03
Fix a positive integer n, We are going to divide a system of numbers called modular numbers that can be added and multiplied according to precise rule. There are n number of these labeled as...
$$ \bar{0}, \bar{1}, \bar{2}, ... , \bar{n}-2, \bar{n} -1 $$
The collection of these numbers is denoted as $Z / N$ and, when given the addition and multiplicative operations, is known as the ring of integers modulo n.
$$ Z/N=({\bar{O}, \bar{1}, .., \bar{n}-1}), + ,x $$
Example: n = 4 $Z/4 = [\bar{0}, \bar{1}, \bar{2}, \bar{3}], + x$
+ | 0 | 1 | 2 | 3 |
---|---|---|---|---|
0 | 0 | 1 | 2 | 3 |
1 | 1 | 2 | 3 | 0 |
2 | 2 | 3 | 0 | 1 |
3 | 3 | 0 | 1 | 2 |
The multiplication table would then be...
x | 0 | 1 | 2 | 3 |
---|---|---|---|---|
0 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | 2 | 3 |
2 | 0 | 2 | 0 | 2 |
3 | 0 | 3 | 2 | 1 |
The r is the residue of a modulo n, and it is written as the following:
$$ r = a modn $$ So for example 15 mod 4 is equal to 3, since 15 = 4 * 3 + 3 Notice that we can expand upon this and derive more conclusions.
a bar is a unit of Z/N if and only if a and n are relatively prime (share no common prime factors) 12 = 2 * 2 * 3
0 ,1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
units: zero divisors: