107
Average order in cyclic groups
par JOACHIM VON ZUR
GATHEN,
ARNOLDKNOPFMACHER,
FLORIAN
LUCA,
LUTZ G. LUCHT et IGOR E. SHPARLINSKIRÉSUMÉ. Pour
chaque
entier naturel n, nous déterminons l’ordre moyen03B1(n)
des éléments du groupecyclique
d’ordre n. Nous mon-trons que
plus
de la moitié de la contribution à03B1(n)
provient des~(n)
élémentsprimitifs
d’ordre n. Il est parconséquent
intéressant d’étudierégalement
la fonction03B2(n)
=03B1(n)/~(n).
Nous détermi-nons le comportement moyen de 03B1,
03B2, 1/03B2
et considérons aussices fonctions dans le cas du groupe
multiplicatif
d’un corps fini.ABSTRACT. For each natural number n we determine the average order
03B1(n)
of the elements in acyclic
group of order n. We show that more than half of the contribution to03B1(n)
comes from the~(n)
primitive elements of order n. It is therefore of interest tostudy
also the function03B2(n) = 03B1(n)/~(n).
We determine themean behavior of 03B1,
03B2, 1/03B2,
and also consider these functions in themultiplicative
groups of finite fields.Section 1. Introduction
For a
positive integer
n, we determine the average ordera(n)
of theelements in the additive
cyclic
groupZn
of order n. Themajor
contribution toa(n)
is from thecp(n) primitive
elements inZn ,
each of order n. We showthat,
infact,
the other elements never contribute more than theprimitive
ones do.
More
precisely,
we consider the relative versionf3(n)
= Withyvehaveforn>2:
We also determine the mean behavior of a,
{3,
and and discuss the average order of elements in themultiplicative
groups of finite fields. The lower bounds for0
are different for even and for odd characteristic.Manuscrit reçu le 19 avril 2002.
The
original
motivation for this research was the usage of groups incryptography.
Here one looks forcyclic
groups oflarge
order(preferably
aprime number).
If we take a finite field andpick
a random element fromit,
howlarge
can weexpect
its order to be? Intuition says that one should avoid fields whosemultiplicative
group order islargely
made up from smallprime
factors. The results of this paperput
this intuition on a firm basis.Section 2. The average order
For a E
Z,
we denoteby ord(a)
its order in the additive group Thenord(a)
divides n, and for each divisor d of n, there areexactly
elements in
Zn
of order d. Thus the average order inZn
isThe main contribution is the term with d = n, and we normalize
by
it:Since
1/n and cp(n)
aremultiplicative
functions of n, so is their Dirichlet convolutiona(n) (see Apostol 1976,
Theorem2.14),
and also We firstdetermine their values in the case of a
prime
power.Lemma 2.1. Let p be a
prime
and k > 1 aninteger.
ThenProof. We have
Theorem 2.2. For an
integer
n >2,
we have thefollowing inequalities.
" - I I - "
Proof. We have
Claim
(i)
now follows from themultiplicativity
of(3
and the lemma. For(ii),
weclearly
have 1~3(n)
A for all n > 2. When n rangesthrough
the
primes,
then3(n)
= 1 tends to1,
and when nk is theproduct
,
n(n-1)
of the first k
primes,
then = A. DFIGURE 2.1. Relative average order
3(n)
for n 1000.Figure
2.1 shows the behavior of3(n)
for n 1000. The visible bands at 1= (3(1),
1.5 =0(2),
1.17 ~fl(3) ,
forexample,
are createdby
numbersof the form n =
kp
with small k and p eitherprime
orhaving only large prime factors, namely k
=1, 2, 3
for the bands mentioned.We have seen that
a(n)
isfirmly wedged
betweencp(n)
and A ~p(n).
Since lim =
0,
we also haveTheorem 4.4 below shows that this lower limit is even obtained on subse- quences
corresponding
to themultiplicative
groups of finite fields.Our upper limit A occurs in several other contexts. Kendall & Rankin
(1947),
Section3,
consider the number of divisors of n that are divisibleby
thesquarefree part
of n, and show that itsasymptotic
mean value isA.
Knopfmacher (1973) gives
a moreprecise description
of the meanvalue,
and
Knopfmacher (1972),
Theorem 3.1(vi), presents
ageneralization.
Themoments of this function are studied in
Knopfmacher
&Ridley (1974),
Theorem 4.4.
LeVeque (1977),
Problem6.5,
determines A as the sumgiven
in
(3.7) below,
and shows that theasymptotic
mean of isAx-1Iogx.
The constant A also appears in Bateman
(1972), Montgomery (1970),
andRiesel &
Vaughan (1983).
Throughout
the paper,log x
is the naturallogarithm
of x.Section 3. The mean average order
In this
section,
we determine the mean of theaveraging
functions a and{3, and of 7 = 1/{3.
Apleasant feature,
due to doubleaveraging,
is that theerror terms become rather small. We denote the average of an arithmetic
function g by g-not
to be confused withcomplex conjugation:
for x > 1. There is a
well-developed theory
with manygeneral
resultsabout the existence of means of arithmetic
functions,
see Elliott(1985);
Indlekofer
(1980, 1981);
Postnikov(1988). However,
thosegeneral
resultsdo not
imply
thespecific
statements of this work.The average d is connected to the constant
Theorem 3.1. The mean a of a satisfies
Proof. We have
1 -
Walfisz
(1963), Chapter IV,
proves viaexponential
sum estimates thatwith some constant c. Now from
we obtain
Montgomery (1987)
has shown that the error in the estimate forlp(x)
isnot
O((loglogx)1/2),
andconjectured
that its maximum order isloglogx.
We also have an
explicit
but worse errorbound,
bothfor g
and for a.Lemma 3.2. For x >
l,
we haveI "I I
Proof. It is
easily
verified that(i)
holds for 1 x 2. We let x >2,
and observe that
I ~ I I I"W8 I
1,
see(Apostol 1976,
Theorem3.12).
It follows thatHence
with
By inserting
the estimatesweseethatforx>2
This shows
(i),
and(ii)
followsby inserting (i)
into theproof
of Theorem 3.1.D For two arithmetic functions
f, g:
N 2013~C, f
* g is their Dirichlet con-volution,
withfor all n.
Furthermore,
we denoteby
1 the constant function on N withvalue
1,
and 1L is the M6bius function.Lemma 3.3. Let
f and g
be arithmetic functions withf =
1 * g, and consider the Dirichlet series(i) If g(s)
isabsolutely convergent
for Rs >0,
then the mean off
isand more
precisely
for
(ii)
Iff
ismultiplicative
and convergesabsolutely
for some s withRs >
0,
then can be written as the Eulerproduct
The absolute convergence
of g(s)
isequivalent
toProof.
1,
we havewhich
implies (i).
If
f
ismultiplicative,
then sois g
= p *f,
andg(pk)
=J(pk) -
for all
primes
p and k e N . Now the Eulerproduct representation
offollows from the
unique
factorization theorem. If isabsolutely convergent,
then so is thepartial
seriesE g(pk)p-ks
taken over allprime
powers
pk. Conversely,
absolute convergence of the latter seriesimplies
thatfor
any x >
1Thus
9(s)
convergesabsolutely,
which finishes theproof
of(ii).
The mean of
fl
is connected to the constantTheorem 3.4. The average
value fl of fl equals C~
+O(x-1),
and moreprecisely
,. - ,
for x > 1.
Proof. We use Lemma 3.3 with
f
={3
and g = p *,0.
Thusfor a
prime
p and an 1. Due tothe series taken over all
prime
powerspk
converges for0,
and Lemma 3.3(ii) implies
the absolute convergence of the Dirichlet seriesg(s).
Inparticular,
we obtainFinally,
Lemma 3.3 combined with(3.5) yields
which
completes
theproof.
DIt is
interesting
to compare the behavior of~(3)~(4)~~(8)
withits naive
"prediction" ((3),
see Theorem 3.1 and Lemma 3.2.We have
((4)/((8) ~
1.0779281367.Figure
3.1 shows the behavior offor
integer x
1000. Theorem 3.4 says that thisquantity
isabsolutely
smaller than 1.
We can also express our constants A and
C,~
as sums of Dirichlet series via the Eulerproduct decomposition
which is valid for a
multiplicative
functionf
in the case of absolute con-vergence. Now
FIGURE 3.1. The average of
~3
normalized as in(3.6).
imply
thatBoth series seem to converge much slower than the
product representations.
The mean of the
function 7
=1//3
=cp/a
is connected to the constantTheorem 3.8. The
mean 1 of,
=Cy
+O(x-1),
and moreprecisely,
for a constant D which is
explicitly given
in theproof
below.Proof.
Again,
we use Lemma3.3,
with themultiplicative
functionf
= 1.For a
prime
p1,
we haveby
Lemma 2.1. For themultiplicative function g
= ~, *f
we findThus the Dirichlet series is
absolutely convergent
for 0. We haveFor a
prime
p, the factor in thisproduct equals
Lemma 3.3 now
implies
thatand the claim follows from the absolute convergence of
~(0).
A numerical evaluation of the error termgives
We have
C(3 . Cq =
1.03848 90929.Section 4. Finite fields
Our
original
motivation for this work was tostudy
the average order in the(cyclic) multiplicative
grouplF9
=Fq)(0)
of a finite fieldIFQ.
Wefirst show that for the two families q =
2~
and q aprime, a(q - 1)/(q - 1)
is on average between two
positive constants,
and also exhibit subfamilies for which thisquotient
tends to zero. We also obtain several results for(3(q - 1).
Theorem 4.1. There are two absolute constants
A2 > A,
> 0 such that for all K > 1-,__ _,
Proof. We use the
asymptotic
formula fromShparlinski (1990)
with 77 given by
theabsolutely convergent
serieswhere td
is themultiplicative
order of 2 modulo d. The claim follows from(4.2)
and Theorem 2.2. DThe
proof
of Theorem 4.1implies
that for any constant c q,a(2k-1) >
c ~
(2k - 1)
forinfinitely
manyintegers
k. We may, of course, takeA2
= 1in Theorem
4.1;
it is not clear whether Theorem 4.1 holds with a smaller value ofA2.
We also see that for any E > 0 andsufficiently large
values ofK,
Theorem 4.1 holds withStephens (1969)
shows in his Lemma 1 thatwhere
is Artin’s constant and D > 1 is
arbitrary.
The sum does notchange by
much if we
replace
pby
p - 1 in thedenominator,
sinceUsing
the bounds of Theorem 2.2 onfl
= the fact that p - 1 is evenfor
p > 3,
and/3(2)
=3/2,
we find thatfor any E > 0 and
sufficiently large
x.Thus there is an infinite sequence of fields of characteristic
2,
and also oneof
prime fields,
in which the average order is close to itslargest possible
value. Now we show that
a(2k - 1)
anda(p - 1) infinitely
often takerelatively
smallvalues, just
ascp(2k - 1)
andcp(p - 1)
do.Theorem 4.4. For
infinitely
manyintegers
k > 3 and forinfinitely
manyprimes
p, we haveProof. Let pi denote the ith
prime.
For aninteger
r >1,
weput
Then mr divides
2kr - 1,
and thereforeUsing
the bound(see Hardy
&Wright (1962),
Theorem328)
andI~T
mr, we obtain the first statement.To prove the second
bound,
weselect qr
as the smallestprime
numberin the arithmetic
progression
1 mod mr. ThenFrom Linnik’s Theorem on the smallest
prime
number in an arithmeticprogression,
we havelog qr
=O(log mr) ,
and the result follows. DIn
particular,
Open (auestion.
Obtainanalogs
of(4.2)
and(4.3)
for the sumsIn the above we considered
only a(2~ - 1).
Similar results also hold fora(pk - 1)
for any fixed p andgrowing
k.The convergence to zero of as above seems rather slow.
For the
largest
known"primorial prime"
q = 7233 237 +1,
where as beforenk is the
product
of the first kprimes (see
Caldwell & Gallot2000),
with169 966
digits
and thelargest prime
factor p33 237 = 392113 of q -1,
wehave
a(q - 1)/(q - 1)
~ 0.0847.Also, fl(q - 1) ~
1.94359 608 is close to A.Concerning
lower bounds for3,
the situation isquite
different between characteristic 2 and odd characteristic.In a finite field of characteristic
2,
the group of units’ iscyclic
with2~ - 1
elements. For a Mersenneprime Mk
=2~ - 1,
we have1 +
(Mk -
If there areinfinitely
many ofthem,
thenlim inf 0(2k -
1)
= 1. For the current world record k = 69 72593(see
Chris Caldwell’s web sitehttp : //www. utm. edu/research/primes),
we have 1 +~.52 ~
10-4197919.
For a field
Fq
of oddcharacteristic,
2 divides q - 1 = and thusj3(q - 1)
>4/3, by
Lemma 2.1. For aprime
q =m2k
+ 1 with modd,
wehave
n / 1 B
As an
example,
with theprime
m =10500
+ 961 and =3103, q
is indeedprime (Keller 2000),
andWe now prove the limits indicated
by
theseexperimental
results.Theorem 4.5. We have
Proof. To show that the limit in
(i)
is at least4/3,
we notice that ifp > 3,
then p - 1 =2km
with some k > 1 and some oddinteger
m, and thereforeFor the
equality
in(i),
we use a theorem of Chen(see
Chen(1973),
orLemma 1.2 in Ford
(1999),
orChapter
11 of Halberstam & Richert(1974))
which says that for each even natural number n there exists xo such that for
every x >
xo there exists aprime
number p E(x/2, x~
with p - 1 mod nsuch that
(p-1)/n
has at most twoprime factors,
and each of them exceedsx1/10.
We now choose a
positive integer
k andapply
Chen’s Theorem withn =
2k
to conclude that there existinfinitely
manyprime
numbers p such that p - 1 = where m has at most twoprime factors,
and each ofthem exceeds
p1/10.
For suchprime
numbers p, we haveIf m is
prime,
thenif m =
r2
is a square of aprime,
we havewhile if m = rs is a
product
of two distinctprimes,
thenby
Lemma 1. At anyrate,
with k fixed and ptending
toinfinity through prime
numbers of the aboveform,
weget
that thenumber 4 3 (1
+22k+l 22k+i )
is a cluster
point
for the set B =1) :
pprime}.
Since this is true for allpositive integers k,
weget
that4/3
is also a clusterpoint
forB,
whichtakes care of
(i).
For
(ii),
Theorem 1 says that the limit in(ii)
is at most A. To showequality,
we let x be alarge positive
realnumber,
writeand let q~ be the smallest
prime
number in the arithmeticprogression Px
+1 modP~ ,
which existsby
Dirichlet’sTheorem,
sincePp
-f-1 iscoprime
to
P~ .
We 1 -Px
modP2
and may writewhere each
prime
factor of ?7~ islarger
than x. ThusWe now consider the
prime
factorization-.L -n,
of mx where PI, ... , > x are distinct
primes
and e1, ... , ek arepositive
integers.
ThenNow
(4.6)
and(4.7) imply
thatwhich takes care of
(ii).
To prove(iii),
we show thatIf d and n are
positive integers
with ddividing
n, then Hence-1-- -1--
Let p be any
prime
number and consider theprime
factorizationof 2P - 1. For any i
k,
we have 2P =- 1mod p2,
so that the order of 2 modulo pi divides p. Since p isprime,
itequals
thisorder,
and hencepi = 1 mod p. In
particular,
pi > p, and thereforeso that k
p/ 1092
p. Thuswhich proves
(4.8).
DAcknowledgements
We are
grateful
to Wilfrid Keller forhelp
withlarge primes,
to HelmutProdinger
forpointing
out areference,
and to Karl-Heinz Indlekofer for useful discussions.The first author thanks the John
Knopfmacher
Centrefor Applicable Analysis
and NumberTheory
forarranging
his visit thereduring
whichmost of this research was done.
References
T. M. APOSTOL
(1976),
Introduction to Analytic Number Theory. Springer-Verlag, NewYork.
P. T. BATEMAN
(1972) .
The distribution of values of the Euler function. Acta Arith- metica 21, 329-345.C. K. CALDWELL & Y. GALLOT
(2000),
Some results for n! ± 1 and 1.Preprint.
J. R. CHEN
(1973),
On the representation of a large even integer as a sum of a primeand a product of at most two primes. Scientia Sinica 16, 157-176.
P. D. T. A. ELLIOTT
(1985),
Arithmetic functions and integer products, volume 272 ofGrundlehren der Mathematischen Wissenschaften. Springer-Verlag, New York.
K. FORD
(1999),
The number of solutions of~(x)
= m. Annals of Mathematics 150, 1-29.H. HALBERSTAM & H.E. RICHERT
(1974),
Sieve Methods. Academic Press.G. H. HARDY & E. M. WRIGHT
(1962),
An introduction to the theory of numbers.Clarendon Press, Oxford. 1st edition 1938.
K.-H. INDLEKOFER
(1980),
A mean-value theorem for multiplicative functions. Mathe-matische Zeitschrift 172, 255-271.
K.-H. INDLEKOFER
(1981),
Limiting distributions and mean-values of multiplicativearithmetical functions. Journal für die reine und angewandte Mathematik 328, 116- 127.
W. KELLER
(2000).
Private communication.D. G. KENDALL & R. A. RANKIN
(1947),
On the number of Abelian groups of a givenorder. Quarterly Journal of Mathematics 18, 197-208.
J. KNOPFMACHER
(1972),
Arithmetical properties of finite rings and algebras, and ana- lytic number theory. II. Journal für die reine und angewandte Mathematik 254, 74-99.J. KNOPFMACHER
(1973), A
prime divisor function. Proceedings of the American Math-ematical Society 40, 373-377.
J. KNOPFMACHER & J. N. RIDLEY
(1974),
Prime-Independent Arithmetical Functions.Annali di Matematica
101(4),
153-169.W. LEVEQUE
(1977),
Fundamentals of Number Theory. Addison-Wesley.H. L. MONTGOMERY
(1970),
Primes in arithmetic progressions. Michigan Mathematical Journal 17, 33-39.H. L. MONTGOMERY
(1987),
fluctuations in the mean of Euler’s phi function. Proceedingsof the Indian Academy of Sciences
(Mathematical Sciences) 97(1-3),
239-245.A. G. POSTNIKOV
(1988),
Introduction to analytic number theory. Volume 68 of Trans-lations of Mathematical Monographs. American Mathematical Society, Providence, RI.
H. RIESEL & R. C. VAUGHAN
(1983),
On sums of primes. Arkiv for Matematik21(1),
46-74.
I. E. SHPARLINSKI
(1990),
Some arithmetic properties of recurrence sequences. Matem- aticheskie Zametki47(6),
124-131.(in Russian);
English translation in Mathematical Notes 47,(1990),
612-617.P. J. STEPHENS
(1969),
An Average Result for Artin’s Conjecture. Mathematika16(31),
178-188.
A. WALFISZ
(1963),
Weylsche Exponentialsummen in der neueren Zahlentheorie. Num- ber 15 in Mathematische Forschungsberichte. VEB Deutscher Verlag der Wissenschaften,Berlin.
Joachim VON ZUR GATHEN
Fakultdt fur Elektrotechnik, Informatik und Mathematik Universitat Paderborn, 33095 Paderborn, Germany E-mail : gatheneupb . de
URL: http : //www-math . upb . de/’" aggathen/
Arnold KNOPFMACHER The John Knopfmacher Centre
for Applicable Analysis and Number Theory University of the Witwatersrand
P.O. Wits 2050, South Africa E-mail : arno1dkQcam . wit s . ac . za
URL: http://www.wits.ac.za/science/number-theory/arnold.htm
Florian LUCA
Instituto de Matemdticas
Universidad Nacional Aut6noma de Mexico C.P. 58180, Morelia, Michoacin, Mexico E-mail : f luca(dmatmor . unam . mx
Lutz G. LUCHT Institut fur Mathematik TU Clausthal, ErzstraBe 1
38678 Clausthal-Zellerfeld, Germany
E-mail : luchtOmath. tu-clausthal . de
URL: http : //www . math . tu-clausthal . de/personen/lucht . html
Igor E. SHPARLINSKI Department of Computing Macquarie University Sydney, NSW 2109, Australia E-mail : igorQcomp . mq . edu . au
URL: http : //www . comp . mq . edu . au/ "’ igor