On Number Theory from First Principle
Recently, I was reading Number theory explained from first principles. It’s a great article that covers many aspects of number theory that are useful in cryptography. This blog serves the purpose to additionally prove/clarify some aspects that I think could have been explained better in the original article.
Even number of generators in cyclic group with more than 2 elements
Cyclic groups, Even number of generators, pdf 11/92
Prove: Every cyclic group with more than two elements has an even number of generators.
To prove this, we first prove the following lemma.
For a cyclic group with more two elements, all of its generators are not self-inverse.
Consider a generator for this group. If it’s self inverse, then . But, by assumption, the group has more than two elements. So, is not a generator, which means we have reached a contradiction.
Now, let’s consider the set of all generators of a cyclic group. We want to show that it has even number of elements.
Because of the lemma above, we know we can group elements in this set into pairs like where is the inverse of .
- Here, we utilize the fact that the inverse of generator is also a generator. To prove this, it suffices to show that every element in the group can be expressed as a multiple/exponent of the inverse of the generator.
Thus, the number of elements in the group is a multiple of 2, which is an even number.
Even order element in
Repetition table, pdf 17/92
Prove: Whenever an element has an even order (which can be the case only if is even), you reach halfway to the identity element.
Before proving this, it’s important to identify the following lemma discussed in the text:
An element has an order of 2 iff .
This can be proved by exhaustion: every element except has an order different from 2.
Now, let’s consider an element with even order . Let’s denote .
Then, it’s easy to see . Therefore, has an order of 2. By the lemma, .
Difference between adjacent elements of the subgroup
Subgroup cosets, Visualization of cosets, pdf 18/92
Prove: Difference between adjacent elements of the subgroup equals
Let’s first prove the following lemma:
The differences between every adjacent pair are the same.
Proof by contradiction. Consider two pairs of adjacent elements and such that . Then, we can construct a new element . By closure, .
By construction, . Therefore, , instead of , should be the adjacent element of , which results in a contradiction.
Now, let’s complete the original proof.
Since the identity element , with the above lemma, it suffices to prove that the smallest positive element in is .
Note that
- By definition, the smallest positive element in can be written as for some .
- By Bézout’s identity, there exists such that and is the smallest positive integer that can be derived from the linear combination of .
So, it suffices for us to show that there exists such that .
Note that . So, there exists some natural number such that and such that .
Latin square + associativity = group
Identity row and column, Latin square + associativity = group, pdf 20/92
A 3x3 latin square.
Prove: Associative operation with unique solutions implies that the identity element is the same for all elements. Another equivalent expression is: latin square + associative operation implies a group.
Note:
- The proof in the article is already very good. Here, I aim at simplifying it a bit.
- The uniqueness of solution results in a latin square is proven previously in the article.
Without loss of generality, we prove that the left identity element is the same for all elements.
Let’s first prove the following lemma:
The left identity element of each element is idempotent.
Consider a left arbitrary element . By definition of latin square, . By applying on both side, we get . By associativity, . By uniqueness of the solution for , .
Now, let’s prove the left identity element of all elements is the same.
Consider a left identity element of , and another arbitrary element . By assumption, has a unique solution. By idempotency, it follows that . By associativity, . Plug in the value of , we get . So, is a left identity of .