This article extends [https://github.com/Z323323/Number-theory-interlude-1].
To fully understand this section you should have read [https://github.com/Z323323/Quadratic-residues].
I won't delve this test, since this test is worse than Miller-Rabin's and the linked resource is self-explainatory. Just note that everything reduces to
which has
Refer to [https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html].
You can find the proof at [https://crypto.stanford.edu/pbc/notes/numbertheory/cyclic.html] but I'm bringing it back here using different words and providing an example to show the actual power of this theorem.
The crazy intuition is considering
We know that every multiplicative subgroup of
This means that finding
These proofs really blow my mind since they prove such a complex theorem in such a quick way.
Let
Initially we can recognise that
Remember that we will need to only consider the subgroups having exactly an order
Refer to [https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html].
First, we define the Sigma function on any positive integer
Second, we define the Perfect Numbers
[The first
Let
which is a safe general form. Now if
because the Sigma function is multiplicative. Then
This step is not simple at first but if you have familiarity with binary operations this will be quite easy. Just imagine
Now we can note that starting from
This means that
then
Now we can notice that
This means that we necessarily have
where
This implies
If
thus
thus, if
A number of the form
If Mersenne numbers are of the form
If
I found the proof at [https://math.stackexchange.com/questions/2794208/is-my-proof-correct-on-how-k-must-be-a-power-of-2-are-there-other-proofs], and I'm going to delve it below. We are going to show that a number of the form
The picture below better clarifies why, also
This proves why
where the picture below better clarifies why, and also better clarifies the previous section.
The theorem follows since the only option left in order to not always have a divisor is