Here I want to make a slight modification to the normal definition of subgroups in the group theory. Becuse we are totally not interested in subgroups but cyclic subgroups. Since the definition of subgroup is useless, and the definition of cyclic subgroup already assumes what the Lagrange's Theorem proves (and we need to prove it), I'm going to set the definition of subgroups as the normal definition of cyclic subgroup but without the assumption of cyclicness.
We define a subgroup of
I called the
Now, another clarification is necessary. Sometimes when papers refer to
From this example we can easily imagine the left part as series of
[ This reasoning works in general proving this fact ].
Now, placing this reasoning into this context, having only coprimes of
Now having made this important clarification we can safely assume that the number of subgroups is always
I wrote the definition of subgroups as I did because this theorem is vital in order to prove the cyclicness of subgroups of
Let
Let
implies
and since
but this can't be true since
Also no element of
Therefore
Otherwise if we didn't consider any
which obviously divides
Now, let's say that there is still some other element left in
we would obtain
and iterating up to
which still divides
Papers normally refer to
Calling
for some
By the corollary of Euler's Theorem, for any
We can make a slight modification to the rearrangement property and state that
Now, considering the order
Now, considering
proves the cyclicness of the subgroups towards
We can proceed in the same way above to show that for any
for any
Hence
Now we consider
indeed the group itself is generated by a generator of a subgroup of
Otherwise let
hence
Refer to [https://crypto.stanford.edu/pbc/notes/numbertheory/gengen.html].
Any group of the form
Since the last three sections:
-
$Z_{p}^{\ast}$ for$p$ prime always have generators (we are going to 'prove' it in the next section). -
$Z_{n}^{\ast}$ for$n$ non-prime can't have generators (proved). -
$Z_{\phi(n)}^{\ast}$ for$n$ non-prime can have generators (we are going to 'prove' it in the next section). -
$Z_{\phi(n)}^{\ast}$ for$n = 2^t, t \geq 3$ can't have generators (it's provable by induction), therefore keep in mind that the next section won't apply for$n = 2^t, t \geq 3$ and also the cases like$Z_{\phi(12)}^{\ast} \dots$ , which will be delved into the last section of this article.
Consider
This congruence has
has
This congruence by the CRT has
Now,
It's not possible to have a prime number as
We know by the cyclicness of subgroups and by Lagrange's Theorem that there will exist:
Thus all the multiples of
Let
Now, since the divisors of any
numbers can't be our solution. And this is the same for all the other co-factors, thus:
All these are
[https://github.com/Z323323/Totient-extension-to-non-primes]
or
or
Now keep in mind that operating these subtractions we are actually considering
equal
and finally
And for
Now
It's really interesting how we can't imply basically anything (using this construction) about
[2,988s][~/Scrivania]$ python3 Zn.py
Enter integer number to see every multiplicative subgroup and its order:
8
Printing results using Zn as modulo and stopping at ϕ(n)...
1 ->[ 1 1 1 1 ]
2 ->[ 2 4 0 0 ]
3 ->[ 3 1 3 1 ]
4 ->[ 4 0 0 0 ]
5 ->[ 5 1 5 1 ]
6 ->[ 6 4 0 0 ]
7 ->[ 7 1 7 1 ]
[0,900s][~/Scrivania]$ python3 Zn.py
Enter integer number to see every multiplicative subgroup and its order:
9
Printing results using Zn as modulo and stopping at ϕ(n)...
1 ->[ 1 1 1 1 1 1 ]
2 ->[ 2 4 8 7 5 1 ]
3 ->[ 3 0 0 0 0 0 ]
4 ->[ 4 7 1 4 7 1 ]
5 ->[ 5 7 8 4 2 1 ]
6 ->[ 6 0 0 0 0 0 ]
7 ->[ 7 4 1 7 4 1 ]
8 ->[ 8 1 8 1 8 1 ]
This section is part of [https://crypto.stanford.edu/pbc/notes/numbertheory/gengen.html].
Here I will try to collapse the results of proofs of the linked resource. Since those proofs are really complex, and I don't want to copy paste them, I'll just try to extrapolate the results, and provide some useful tips in order to better understand such theorems.
Initially I would say that one of the worst things to understand is the first binomial expansion. There
Honestly, I guess we are far away from planet Earth here, let's proceed over the galaxy then.
From the first theorem of the aforementioned section, we can see that any generator we find in
All this keeping an eye to the exceptional case. Let's make an example.
We proceed taking
We know the magic formula is
then
substituting in the formula
Now, let's fire off my Zn.py using of course 49. Let's start calculating every
After flying around using the Zn.py spaceship we can get back to planet Earth, and observe that this theorem (the one at the link) basically proves that the generators of
Now, let's try to expand the reasoning to
and so on.
Using the same intuitions of Ben (this is for my mental safety), let
always generates
$(g + kp)^{p} = g + kp (\mod p^3)$
and
$(g + kp)^{p(p - 1) + 1} = g + kp (\mod p^3)$
Let's deploy another example, if it works we can state that the generators of powers of a prime which are
Using the first formula we derived [i.e. using
and substituting:
which is not a generator indeed.
which also is not a generator.
Now a fast check enables us to see that there's still
which is our last fake-generator.
Now, what happens if we consider the second case using
which is not a fake gen (it's the first generator), then why is this result wrong? The reason is (not) simple; basically
Thus the right calculation for
which is correct although we already found it. I know this is kinda messy. This whole reasoning proves that in order to find every fake-generator we will need to keep into consideration every
and derive every
It's really messy but in general we won't need all of these calculations I guess, so we can safely proceed.
Following [https://crypto.stanford.edu/pbc/notes/numbertheory/gengen.html].
Let
thus for any
But this doesn't still prove why
doesn't have generators. As a general rule of thumb I guess that the