Congruence arithmetic examples
ubuntu2004
Ring of integers modulo 20
20
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
(1,)
Converting the integer 5 into 5 mod 20= 5
7
6
Z/20Z*= [1, 3, 7, 9, 11, 13, 17, 19] has 8 elements
1
7
(11, 17)
No. of generators (rank/dimension): 2
gen. 0 is 11 additive order is 20 mult. order: 2
gen. 1 is 17 additive order is 20 mult. order: 4
No of elements 8 equals prod. of orders of gen. 8
[1, 11]
[1, 17, 9, 13]
IntegerModRing(n) == Integers(n)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
5
0 7
1 7 7
TRUE
1
sqrt6
2
[1, 5]
1
3
Is 3^2=2? Yes: 2
-1
has no square root: sqrt6
[0, 1, 2, 4]
[3, 5, 6]
3
+Infinity
3
6
[1, 3, 2, 6, 4, 5]
a= 6 b= 3 x= 3 b^x=a i.e. x=log_b(a): 6
1 2 3 5
3
1
3