 
 
 
 
 
   
Math 124 Problem Set 4
1. 
 1;
1;
 1;
1;
 1;
1; 
 1;
1;
2. By quadratic reciprocity
 .  There are four cases:
.  There are four cases:
Case 1: 
 ,
, 
 :
Then
:
Then  1
 1 and
 and
 1.
1.
Case 2: 
 ,
, 
 : Then
: Then  7
 7 and
 and
 -1.
-1. 
Case 3: 
 ,
,
 : Then
: Then  5
 5 and
 and
 -1.
-1.
Case 4: 
 ,
, 
 : Then
: Then  11
 11 and
 and
 1.
1. 
(We solve the systems with the Chinese
Remainder Theorem).
3. It is sufficient to give two distinct elements  in
in  of order 2,  for if there was a primitive root
 of order 2,  for if there was a primitive root  ,
then
,
then 
 cannot simultaneously be
congruent to
 cannot simultaneously be
congruent to  and
 and  modulo
 modulo  .
.
Put  ; since
; since
 ,
,  has order 2 in
 has order 2 in  .  Set
.  Set 
 ; then
; then
 
 is distinct from
 is distinct from  , since their difference,
, since their difference,
 , is less than
, is less than  . Furthermore,
. Furthermore,  , since
, since
 . Therefore
. Therefore  and
 and  are distinct elements of order 2 in
 are distinct elements of order 2 in
 .
.
4. Let  be a primitive root modulo
 be a primitive root modulo  .  We will
construct an element
.  We will
construct an element  of
 of  with order
 with order
 .  Let
.  Let  for some
 for some  to be
determined.  Then by the binomial theorem
 to be
determined.  Then by the binomial theorem 
 
 , since
, since 
 .  Now
choose
.  Now
choose  such that
 such that 
 is nonzero modulo
 is nonzero modulo
 .  We can do this because
.  We can do this because  and
 and  are both
elements of
 are both
elements of  . Then
. Then 
 ,
,
 . Therefore the order of
. Therefore the order of  in
 in  does not
divide
 does not
divide  . But it divides
. But it divides  , and
, and  is prime, so the
order of
 is prime, so the
order of  must be
 must be  .  Thus
.  Thus  is a primitive root
modulo
 is a primitive root
modulo  .
.
5. Let  be a primitive root modulo
 be a primitive root modulo  . Since
. Since
 ,
, 
 has order 3. Therefore
 has order 3. Therefore  is
a solution to
 is
a solution to 
 modulo p.  Since
 modulo p.  Since  and we are in a domain,
and we are in a domain,  . Now note that
. Now note that
 ; therefore
; therefore 
 , so
, so
 .
.
6. The proof is almost identical to the one above. Let
 in
 in  be an element of order 5.  Then
 be an element of order 5.  Then
 and
 and  implies that
 implies that
 .  Now
.  Now
 
 , so
, so
 .
.
7. All odd primes. Let  be an odd prime and
 be an odd prime and
 a primitive root modulo
 a primitive root modulo  .    Rewrite the sum as:
.    Rewrite the sum as:
 
 , for if
, for if
 then
 then 
 , and
, and  would not be primitive.  Therefore
would not be primitive.  Therefore
 .
.
8. A good guess seems to be 
 .  In
PARI, we can write a program to check the first
.  In
PARI, we can write a program to check the first  primes to see
if 2 is a primitive root, and divide this total by
 primes to see
if 2 is a primitive root, and divide this total by  to see the
behavior of the ratio:
 to see the
behavior of the ratio: 
g0(n)=numRoot=0;
lPr=prime(2);
for(j=2,n,(if(znorder(Mod(2,lPr))==lPr-1,numRoot++)); lPr=prime(j+1)); tPr=n;
return(numRoot/(1.0*n));
Using this, we have
 .  This exhausts PARI's list of
primes, so we can write another program to continue testing:
.  This exhausts PARI's list of
primes, so we can write another program to continue testing:
g(n)=lPr=nextprime(lPr+1);
for(j=1,n,(if(znorder(Mod(2,lPr))==lPr-1,numRoot++));tPr++;lPr=nextprime(lPr+1));
return(numRoot/(1.0*tPr));
With this program, we
can check the first  primes (according to PARI's nextprime
function).  For the first 81,560 primes, we have
 primes (according to PARI's nextprime
function).  For the first 81,560 primes, we have
 ; For the first 101,560 primes, we have
; For the first 101,560 primes, we have
 .  Finally, for the first 200,000 primes,
we have
.  Finally, for the first 200,000 primes,
we have 
 .
.
 
 
 
 
