Difference between revisions of "Proof of the Existence of Primitive Roots"
(Created page with "This page is dedicated to proving the existence of primitive roots for certain integers. ==Statement== Let <math>n</math> be a positive integer. Then <math>n</math> have a p...") |
m (→Case 2) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
==Proof== | ==Proof== | ||
+ | |||
+ | We start case by case, starting with the most basic case: | ||
+ | |||
+ | ===Case 1=== | ||
+ | In this case, we have <math>n=p</math>, where <math>p</math> is prime. | ||
+ | |||
+ | We wish to show that <math>n</math> have a primitive root. | ||
+ | |||
+ | To do so, we first need a few lemmas regarding the solutions of [[polynomial congruences]]. | ||
+ | |||
+ | '''Lemma 1 (Lagrange's Theorem):''' | ||
+ | |||
+ | Let <math>p</math> be a prime and let | ||
+ | |||
+ | <cmath>f(x)= \sum _{i=0}^{n} (a_i \cdot x^i)</cmath> | ||
+ | |||
+ | be a polynomial with degree <math>n</math> (where <math>n</math> is an integer), with integer coeficients and leading coeficient <math>a_n</math> not divisible by <math>p</math>. | ||
+ | |||
+ | Then <math>f(x)</math> have at most <math>n</math> incongruent roots modulo <math>p</math>. | ||
+ | |||
+ | |||
+ | Note that this is a number theory analogue of the fundamental theorem of algebra. | ||
+ | |||
+ | Note also that this theorem only holds for primes. For example, when <math>f(x)=x^2-x</math>, there is <math>4</math> incongruent roots (as the reader should verify) modulo <math>6</math>, but this does not contradicts Lagrange's theorem since <math>6</math> is composite. | ||
+ | |||
+ | |||
+ | ''Proof:'' We proceed by mathematical induction. When <math>n=1</math>, the statement is obvious; it merely states that a linear congruence have at most one solution modulo <math>p</math>, which is true since <math>\gcd (a_1,p)=1</math>. | ||
+ | |||
+ | Now, suppose the theorem holds for a (n-1)th degree polynomial. Let <math>f(x)</math> be a nth degree polynomial with leading coeficient relatively prime to <math>p</math>. Then assume it have <math>n+1</math> incongruent roots modulo <math>p</math>, say <math>c_1, c_2, \dots , c_{n+1}</math>. Then, | ||
+ | |||
+ | <cmath>f(x) - f(c_1) = \sum _{i=0}^{n} a_i \cdot (x^i- {c_1}^i)</cmath> | ||
+ | |||
+ | <cmath>=\sum _{i=0}^{n} a_i \cdot (x-c_1) \cdot (\sum _{j=0}^{i-1} x^j \cdot {c_1}^{i-1-j})</cmath> | ||
+ | |||
+ | <cmath>=(x-c_1) \cdot g(x)</cmath> | ||
+ | |||
+ | for a (n-1)th degree polynomial <math>g(x)</math> with leading coeficient <math>a_{n}</math>. Then <math>g(x)</math> satisfy the conditions of the inductive hypothesis. | ||
+ | |||
+ | Now, let <math>k</math> be an arbitary integer with <math>1 \le k \le n+1</math>. <math>f(c_k) \equiv 0 \equiv f(c_i) \pmod {p}</math>. Thus, | ||
+ | |||
+ | <cmath>0 \equiv f(c_k) - f(c_1) = (c_k-c_1) g(c_k) \pmod {p}</cmath> | ||
+ | |||
+ | <cmath>\implies g(c_k) \equiv 0 \pmod {p}</cmath> | ||
+ | |||
+ | since | ||
+ | |||
+ | <cmath>c_k \not\equiv c_1 \pmod {p}</cmath> | ||
+ | |||
+ | Thus <math>c_2 , c_2 , \dots , c_{n+1}</math> are all roots of <math>g(x)</math>. This contradicts the inductive hypothesis, and thus establishes the lemma. <math>\square</math>. | ||
+ | |||
+ | |||
+ | Now, we have a useful corollary: | ||
+ | |||
+ | |||
+ | '''Corollary (Lemma 2):''' | ||
+ | |||
+ | Let <math>p</math> be prime and let <math>d</math> be a divisor of <math>p-1</math>. Then the polynomial <math>x^d -1</math> have exactly <math>d</math> incongruent roots modulo <math>p</math>. | ||
+ | |||
+ | |||
+ | ''Proof:'' Let <math>p-1 =d \cdot e</math>. We have | ||
+ | |||
+ | <cmath>x^{p-1} -1= (x^d-1) g(x)</cmath> | ||
+ | |||
+ | for a <math>p-1-d</math> degree polynomial <math>g(x)</math>. By Fermat's Little Theorem, <math>x^{p-1}-1</math> have exactly <math>p-1</math> roots modulo <math>p</math>. By Lagrange's Theorem, <math>g(x)</math> have at most <math>p-d-1</math> incongruent roots modulo <math>p</math>. Thus, <math>x^d -1</math> have at least <math>d</math> roots modulo <math>p</math>. On the other hand, Lagrange's Theorem again implies <math>x^d -1</math> have at ''most'' <math>d</math> incongruent roots. Thus, <math>x^d -1</math> have exactly <math>d</math> roots. <math>\square</math> | ||
+ | |||
+ | |||
+ | This result can be used to prove a result regarding the number of integer of a certain integer a prime <math>p</math> can have. Before we state and prove that, we present yet another lemma. | ||
+ | |||
+ | |||
+ | '''Lemma 3:''' | ||
+ | |||
+ | Let <math>p</math> be prime and let <math>d</math> be a divisor of <math>p-1</math>. Then the number of positive integers less than <math>p</math> of order <math>d</math> modulo <math>p</math> do not exceed <math>\phi (d)</math>. | ||
+ | |||
+ | |||
+ | ''Proof:'' Let <math>F(d)</math> denote the number of positive integers less than <math>p</math> of order <math>d</math> modulo <math>p</math>. | ||
+ | |||
+ | Now, if <math>F(d)=0</math>, the result is trivial. Assume <math>F(d) \ne 0</math>, and that <math>a</math> is an integer with order <math>d</math> modulo <math>p</math>. Then the integers | ||
+ | |||
+ | <cmath>a, a^2, \dots , a^d</cmath> | ||
+ | |||
+ | are incongruent modulo <math>p</math>. Also, each of those integers are a root of <math>x^d-1</math>. By Lemma 3, those are the only roots. Thus, every possible integer with order <math>d</math> modulo <math>p</math> must be a power of <math>a</math>. Obviously, the exponent of <math>a</math> must be relatively prime to <math>d</math>, or otherwise there exist a smaller solution to <math>(a^k)^x \equiv 1 \pmod {p}</math> (for <math>x</math>) than <math>d</math>, which would cause <math>\text {ord} _d a^k</math> to be less than <math>d</math>. Therefore, the result follow by the definition of the Euler-Phi Function. <math>\square</math>. | ||
+ | |||
+ | |||
+ | In fact, the number of positive integers less than <math>p</math> of order <math>d</math> modulo <math>p</math> is ''exactly'' <math>\phi (d)</math>, as the following lemma shows: | ||
+ | |||
+ | |||
+ | '''Lemma 4:''' | ||
+ | |||
+ | Let <math>p</math> be prime and let <math>d</math> be a divisor of <math>p-1</math>. Then the number of positive integers less than <math>p</math> of order <math>d</math> modulo <math>p</math> is exactly <math>\phi (d)</math>. | ||
+ | |||
+ | |||
+ | ''Proof:'' As the page [[Proof of Some Primitive Roots Facts]] proved, the order of an integer modulo <math>p</math> divides <math>p-1</math>, we have | ||
+ | |||
+ | <cmath>\sum _{d|p-1} F(d) = p-1</cmath> | ||
+ | |||
+ | By some Euler-Phi Function facts, we know that | ||
+ | |||
+ | <cmath>\sum _{d|p-1} \phi (d) = p-1</cmath> | ||
+ | |||
+ | Lemma 3 implies <math>F(d) \le \phi (d)</math> for each <math>d|p-1</math>, so it follows that <math>F(d)= \phi (d)</math> for every <math>d</math>. <math>\square</math>. | ||
+ | |||
+ | |||
+ | An easy corollary of that is when we take <math>d=p-1</math>, and we get that every prime have <math>\phi (p-1)</math> primitive roots. We have thus shown that every prime have a primitive roots. | ||
+ | |||
+ | Case 1 is completed. | ||
+ | |||
+ | ===Case 2=== | ||
+ | |||
+ | Next, we generalize case 1 and consider the case of <math>n</math> being an arbitary power of a prime. | ||
+ | |||
+ | First, we consider the case where <math>n</math> is a power of an odd prime. Powers of <math>2</math> will be considered separately. | ||
+ | |||
+ | Now, we start by considering when <math>n</math> is the square of an odd prime. | ||
+ | |||
+ | As the page [[Proof of Some Primitive Roots Facts]] shown, if <math>p</math> is an odd prime, then <math>p^2</math> have a primitive root. As it also shown, if <math>p</math> have a primitive root and <math>p^2</math> have a primitive root, then <math>p^k</math> have a primitive root for all positive integers <math>k</math>. | ||
+ | |||
+ | It follows that all prime powers (of odd primes) have a primitive root. | ||
+ | |||
+ | |||
+ | Next, we consider the case where <math>n</math> is a power of <math>2</math>. We conjecture that the only such <math>n</math> with primitive roots are <math>2</math> and <math>4</math> only. | ||
+ | |||
+ | |||
+ | '''Theorem 1:''' | ||
+ | |||
+ | The only powers of <math>2</math> with primitive roots are <math>2</math> and <math>4</math>. | ||
+ | |||
+ | |||
+ | ''Proof:'' Obviously, <math>2</math> and <math>4</math> have primitive roots. <math>1</math> is a primitive root of <math>2</math> and <math>3</math> is a primitive root of <math>4</math>. | ||
+ | |||
+ | Now, if <math>n \le 3</math>, then we claim that <math>2^n</math> have no primitive roots. | ||
+ | |||
+ | To see that, we claim that for all odd integers <math>a</math> and positive integers <math>k</math> greater than or equal to 3, we have | ||
+ | |||
+ | <cmath>a^{\frac{\phi (2^k)}{2}} = a^{2^{k-2}} \equiv 1 \pmod {2^k}</cmath> | ||
+ | |||
+ | To show that, we use mathematical induction. The case of <math>k=3</math> is merely the fact that <math>x^2 \equiv 1 \pmod 8</math>. Suppose | ||
+ | |||
+ | <cmath>a^{\frac{\phi (2^k)}{2}} = a^{2^{k-2}} \equiv 1 \pmod {2^k}</cmath> | ||
+ | |||
+ | There there exist a integer <math>d</math> such that | ||
+ | |||
+ | <cmath>a^{2^{k-2}}=1+d \cdot 2^k</cmath> | ||
+ | |||
+ | Thus, | ||
+ | |||
+ | <cmath>a^{2^{k-1}}=1+d \cdot 2^{k+1} + d^2 \cdot 2^{2k}</cmath> | ||
+ | |||
+ | <cmath>\implies a^{2^{k-1}} \equiv 1 \pmod {2^{k+1}}</cmath> | ||
+ | |||
+ | which completes the inductive argument, which thus completes the theorem. <math>\square</math>. | ||
+ | |||
+ | |||
+ | As the above have shown, all prime powers with primitive roots are | ||
+ | |||
+ | <cmath>2,4, \text {and } p^k</cmath> | ||
+ | |||
+ | where <math>p</math> is an odd prime and <math>k</math> is an positive integer. | ||
+ | |||
+ | This completes case 2. | ||
+ | |||
+ | ===Case 3=== | ||
+ | |||
+ | Now, we consider the case where <math>n</math> is not a prime power. More specifically, we wish to show that if <math>n</math> have a prime power and is not a prime power, then <math>n</math> is twice a prime power. | ||
+ | |||
+ | '''Theorem 2:''' | ||
+ | |||
+ | If <math>n</math> is a positive integer that is not a prime power or twice a prime power, then <math>n</math> have no primitive roots. | ||
+ | |||
+ | |||
+ | ''Proof:'' Let <math>n</math> have prime factorization | ||
+ | |||
+ | <cmath>n= {p_1}^{t_1} \cdot {p_2}^{t_2 } \cdot \dots \cdot {p_m}^{t_m}</cmath> | ||
+ | |||
+ | Suppose <math>n</math> have a primitive root <math>r</math>. Then Euler's Theorem shows that | ||
+ | |||
+ | <cmath>r^{\phi ({p_i}^{t_i})} \equiv 1 \pmod {{p_i}^{t_i}}</cmath> | ||
+ | |||
+ | so therefore | ||
+ | |||
+ | <cmath>r^{\text{lcm} ({p_1}^{t_1} , {p_2}^{t_2 } , \dots , {p_m}^{t_m})} \equiv 1 \pmod {n}</cmath> | ||
+ | |||
+ | Thus, | ||
+ | |||
+ | <cmath>\phi (n) = \text{ord} _{n} r \le \text{lcm} ({p_1}^{t_1} , {p_2}^{t_2 } , \dots , {p_m}^{t_m})</cmath> | ||
+ | |||
+ | It follows that | ||
+ | |||
+ | <cmath>\phi ({p_1}^{t_1}) , \phi ({p_2}^{t_2 } ), \dots , \phi ({p_m}^{t_m})</cmath> | ||
+ | |||
+ | are all pairwise relatively prime. However, this implies that there is at most one odd prime power. It follows that <math>n</math> is either a prime power twice a prime power. <math>\square</math> | ||
+ | |||
+ | |||
+ | This completes the third (and last) case. | ||
+ | |||
+ | |||
+ | We have now shown that if <math>n</math> have a primitive root, then <math>n</math> is <math>2, 4</math>, a prime power, or twice a prime power. The converse can easily be shown also. This, therefore, completes the proof. <math>\blacksquare</math> | ||
+ | |||
+ | ==See Also== | ||
+ | |||
+ | * [[Number Theory]] | ||
+ | * [[Primitive Roots]] | ||
+ | * [[Order of An Integer]] | ||
+ | * [[Proof of Some Primitive Roots Facts]] |
Latest revision as of 23:00, 20 January 2025
This page is dedicated to proving the existence of primitive roots for certain integers.
Statement
Let be a positive integer. Then
have a primitive root if and only if
Proof
We start case by case, starting with the most basic case:
Case 1
In this case, we have , where
is prime.
We wish to show that have a primitive root.
To do so, we first need a few lemmas regarding the solutions of polynomial congruences.
Lemma 1 (Lagrange's Theorem):
Let be a prime and let
be a polynomial with degree (where
is an integer), with integer coeficients and leading coeficient
not divisible by
.
Then have at most
incongruent roots modulo
.
Note that this is a number theory analogue of the fundamental theorem of algebra.
Note also that this theorem only holds for primes. For example, when , there is
incongruent roots (as the reader should verify) modulo
, but this does not contradicts Lagrange's theorem since
is composite.
Proof: We proceed by mathematical induction. When , the statement is obvious; it merely states that a linear congruence have at most one solution modulo
, which is true since
.
Now, suppose the theorem holds for a (n-1)th degree polynomial. Let be a nth degree polynomial with leading coeficient relatively prime to
. Then assume it have
incongruent roots modulo
, say
. Then,
for a (n-1)th degree polynomial with leading coeficient
. Then
satisfy the conditions of the inductive hypothesis.
Now, let be an arbitary integer with
.
. Thus,
since
Thus are all roots of
. This contradicts the inductive hypothesis, and thus establishes the lemma.
.
Now, we have a useful corollary:
Corollary (Lemma 2):
Let be prime and let
be a divisor of
. Then the polynomial
have exactly
incongruent roots modulo
.
Proof: Let . We have
for a degree polynomial
. By Fermat's Little Theorem,
have exactly
roots modulo
. By Lagrange's Theorem,
have at most
incongruent roots modulo
. Thus,
have at least
roots modulo
. On the other hand, Lagrange's Theorem again implies
have at most
incongruent roots. Thus,
have exactly
roots.
This result can be used to prove a result regarding the number of integer of a certain integer a prime can have. Before we state and prove that, we present yet another lemma.
Lemma 3:
Let be prime and let
be a divisor of
. Then the number of positive integers less than
of order
modulo
do not exceed
.
Proof: Let denote the number of positive integers less than
of order
modulo
.
Now, if , the result is trivial. Assume
, and that
is an integer with order
modulo
. Then the integers
are incongruent modulo . Also, each of those integers are a root of
. By Lemma 3, those are the only roots. Thus, every possible integer with order
modulo
must be a power of
. Obviously, the exponent of
must be relatively prime to
, or otherwise there exist a smaller solution to
(for
) than
, which would cause
to be less than
. Therefore, the result follow by the definition of the Euler-Phi Function.
.
In fact, the number of positive integers less than of order
modulo
is exactly
, as the following lemma shows:
Lemma 4:
Let be prime and let
be a divisor of
. Then the number of positive integers less than
of order
modulo
is exactly
.
Proof: As the page Proof of Some Primitive Roots Facts proved, the order of an integer modulo divides
, we have
By some Euler-Phi Function facts, we know that
Lemma 3 implies for each
, so it follows that
for every
.
.
An easy corollary of that is when we take , and we get that every prime have
primitive roots. We have thus shown that every prime have a primitive roots.
Case 1 is completed.
Case 2
Next, we generalize case 1 and consider the case of being an arbitary power of a prime.
First, we consider the case where is a power of an odd prime. Powers of
will be considered separately.
Now, we start by considering when is the square of an odd prime.
As the page Proof of Some Primitive Roots Facts shown, if is an odd prime, then
have a primitive root. As it also shown, if
have a primitive root and
have a primitive root, then
have a primitive root for all positive integers
.
It follows that all prime powers (of odd primes) have a primitive root.
Next, we consider the case where is a power of
. We conjecture that the only such
with primitive roots are
and
only.
Theorem 1:
The only powers of with primitive roots are
and
.
Proof: Obviously, and
have primitive roots.
is a primitive root of
and
is a primitive root of
.
Now, if , then we claim that
have no primitive roots.
To see that, we claim that for all odd integers and positive integers
greater than or equal to 3, we have
To show that, we use mathematical induction. The case of is merely the fact that
. Suppose
There there exist a integer such that
Thus,
which completes the inductive argument, which thus completes the theorem. .
As the above have shown, all prime powers with primitive roots are
where is an odd prime and
is an positive integer.
This completes case 2.
Case 3
Now, we consider the case where is not a prime power. More specifically, we wish to show that if
have a prime power and is not a prime power, then
is twice a prime power.
Theorem 2:
If is a positive integer that is not a prime power or twice a prime power, then
have no primitive roots.
Proof: Let have prime factorization
Suppose have a primitive root
. Then Euler's Theorem shows that
so therefore
Thus,
It follows that
are all pairwise relatively prime. However, this implies that there is at most one odd prime power. It follows that is either a prime power twice a prime power.
This completes the third (and last) case.
We have now shown that if have a primitive root, then
is
, a prime power, or twice a prime power. The converse can easily be shown also. This, therefore, completes the proof.