<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AJCM</journal-id><journal-title-group><journal-title>American Journal of Computational Mathematics</journal-title></journal-title-group><issn pub-type="epub">2161-1203</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ajcm.2023.132012</article-id><article-id pub-id-type="publisher-id">AJCM-125503</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Average Probability of an Element Being a Generator in the Cyclic Group
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yoshihiro</surname><given-names>Tanaka</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Faculty of Economics, Hokkaido University, Sapporo, Japan</addr-line></aff><pub-date pub-type="epub"><day>05</day><month>05</month><year>2023</year></pub-date><volume>13</volume><issue>02</issue><fpage>230</fpage><lpage>235</lpage><history><date date-type="received"><day>15,</day>	<month>March</month>	<year>2023</year></date><date date-type="rev-recd"><day>5,</day>	<month>June</month>	<year>2023</year>	</date><date date-type="accepted"><day>8,</day>	<month>June</month>	<year>2023</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  All elements in the cyclic group 
  <inline-formula><inline-graphic xlink:href="dit_61cff16c-1809-4919-b9f1-a32efccf5fcc.png" xlink:type="simple"/></inline-formula> 
  
   are generated by a generator 
  g
  . The number of generators of <inline-formula><inline-graphic xlink:href="dit_a581344a-bdfa-43fc-93c0-34e7ed0b6a62.png" xlink:type="simple"/></inline-formula> 
  of <inline-formula><inline-graphic xlink:href="dit_10696e74-29a0-4b94-843c-96c9f21bfe07.png" xlink:type="simple"/></inline-formula> 
  , namely <inline-formula><inline-graphic xlink:href="dit_d25b0a87-55c0-4b42-84c2-a92d936e81ec.png" xlink:type="simple"/></inline-formula> 
   is known to be Euler’s totient function <inline-formula><inline-graphic xlink:href="dit_90000458-2800-4133-be87-27cc248944b3.png" xlink:type="simple"/></inline-formula>
  ; however, the average probability of an element being a generator has not been discussed before. Several analytic properties of <inline-formula><inline-graphic xlink:href="dit_b10544dc-13aa-4841-b3db-ee9f8cea7bc5.png" xlink:type="simple"/></inline-formula> 
   have been investigated for a long time. However, it seems that some issues still remain unresolved.
   In this study, we derive the average probability of an element being a generator using previous classical studies.
 
</p></abstract><kwd-group><kwd>Generator</kwd><kwd> Cyclic Group</kwd><kwd> Euler Product</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>A cyclic group C ( n ) is an elementary commutative group, and if n = p (prime), C ( p ) is known as one of the classifications of finite simple groups.</p><p>Every element in the cyclic group C ( n ) = { g 0 ( = e ) , g , g 2 , ⋯ , g n − 1 } is generated by a generator g. Euler’s totient function φ ( n ) is defined by</p><p>φ ( n ) = | { 1 ≤ k ≤ n | gcd ( k , n ) = 1 } | . (1)</p><p>Euler’s totient function φ ( n ) plays an intrinsically important role in the public key cipher RSA, which is essential in electronic commerce [<xref ref-type="bibr" rid="scirp.125503-ref1">1</xref>] .</p><p>The average probability of an element being a generator has not been discussed before. Several analytic properties of φ ( n ) have been investigated for a long time (e.g., [<xref ref-type="bibr" rid="scirp.125503-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.125503-ref3">3</xref>] ). However, it seems that some issues still remain unresolved.</p><p>Dirichlet [<xref ref-type="bibr" rid="scirp.125503-ref4">4</xref>] considered the mean values of sequences of integer values analytically; however, their understanding can be somewhat challenging because of their unfamiliarity.</p><p>In this paper, we derive the average probability of an element being a generator using the studies by Dirichlet [<xref ref-type="bibr" rid="scirp.125503-ref4">4</xref>] and Dirichlet and Dedekind [<xref ref-type="bibr" rid="scirp.125503-ref5">5</xref>] .</p><p>Throughout this paper, for a real number t, [t] denotes the integer part of t.</p></sec><sec id="s2"><title>2. Preliminaries</title><p>As for the possibility that two arbitrary natural numbers are coprime, the following result is mentioned in [<xref ref-type="bibr" rid="scirp.125503-ref6">6</xref>] . We prove the result for the sake of convenience.</p><p>Lemma 1. The probability that two arbitrary natural numbers are coprime is 6 π 2 .</p><p>Proof: Since the probability that two arbitrary natural numbers have a prime p as a common divisor is 1 − 1 p 2 , the probability that two arbitrary natural numbers are coprime is ∏ p : prime ( 1 − 1 p 2 ) . Noting that by the Euler product formula</p><p>∏ p : prime ( 1 / ( 1 − 1 p 2 ) ) = ∑ n = 1 ∞ 1 n 2 = ζ ( 2 ) ,</p><p>it holds that</p><p>∏ p : prime ( 1 − 1 p 2 ) = ζ ( 2 ) − 1 = 6 π 2 . (2)</p><p>□</p><p>We also mention the following result.</p><p>Theorem 2. Choose two arbitrary natural numbers a and b, and consider an arithmetic progression { a , a + b , a + 2 b , ⋯ } . Then, the probability that the arithmetic progression includes an infinite number of primes is 6 π 2 .</p><p>Proof: The proof follows from Lemma 1 and Dirichlet’s theorem on arithmetic progressions [<xref ref-type="bibr" rid="scirp.125503-ref7">7</xref>] . □</p></sec><sec id="s3"><title>3. Main Result</title><p>In general, the cyclic group C ( n ) = { g 0 ( = e ) , g , g 2 , ⋯ , g n − 1 } generated by a generator g has generators g i , i ∈ S ( n ) ⊂ { 1 , 2 , ⋯ , n − 1 } . Then, C ( n ) is expressed as C ( n ) = { g 0 ( = e ) , g i , g 2 i , ⋯ , g ( n − 1 ) i } .</p><p>As for | S ( n ) | , which is the number of generators of the cyclic group C ( n ) , we prove the following lemma.</p><p>Lemma 3. | S ( n ) | = φ ( n ) .</p><p>Proof Let g be a generator. If g k is a generator, it follows that g = ( g k ) z = g k z , namely, g k z − 1 = e .</p><p>As we can write k z − 1 = q n + r , r &lt; n ,</p><p>g k z − 1 = g q n + r = ( g n ) q ⋅ g r = g r = e .</p><p>As r = 0 because r &lt; n ,</p><p>k z = 1 , mod n. (3)</p><p>Equation (3) implies that the Diophantine equation k z + n u = 1 has integer solutions z and u, which means k and n are coprimes by Bezout’s lemma. The converse is obvious.</p><p>Therefore, the theorem holds from the definition (1) of Euler’s totient function φ ( n ) . □</p><p>Consider P ( x ) = φ ( x ) x for x (integer). We can see that P ( 1 ) = 1 , P ( p ) = p − 1 p for p: prime, and P ( x ) &gt; x − 1 2 for x &gt; 6 , P ( x ) &gt; x − 1 3 for x &gt; 30 (see [<xref ref-type="bibr" rid="scirp.125503-ref8">8</xref>] ).</p><p>We can define E ( P ( X ) ) , the average probability of P ( x ) as follows.</p><p>E ( P ( X ) ) = lim x → ∞ 1 x ⋅ ∑ i = 1 x P ( i ) = lim x → ∞ 1 x ⋅ ∑ i = 1 x | S ( i ) | i = lim x → ∞ 1 x ⋅ ∑ i = 1 x φ ( i ) i .</p><p>Let ψ ( x ) = ∑ i = 1 x φ ( i ) .</p><p>Then, the following result holds.</p><p>Theorem 4. E ( P ( X ) ) = 6 π 2 = 0.6079271 ⋯ .</p><p>Proof: First, we derive φ ( n ) along the lines of Dirichlet [<xref ref-type="bibr" rid="scirp.125503-ref4">4</xref>] . It is well-known that</p><p>∑ δ | n φ ( δ ) = n (4)</p><p>for example, in [<xref ref-type="bibr" rid="scirp.125503-ref5">5</xref>] . Summing up both sides for n , n − 1 , ⋯ , 1 ,</p><p>∑ s = 1 n [ n s ] φ ( s ) = 1 2 n 2 + 1 2 n . (5)</p><p>For [ n s ] = t , it follows that</p><p>( ψ ( [ n t ] ) − ψ ( [ n t + 1 ] ) ) t = ( φ ( [ n t + 1 ] + 1 ) + ⋯ + φ ( [ n t ] ) ) t</p><p>because [ n t + 1 ] &lt; s ≤ [ n t ] . We regard the right hand side as φ ( [ n t ] ) t if [ n t + 1 ] + 1 = [ n t ] , and as 0 if [ n t + 1 ] = [ n t ] .</p><p>Therefore, (4) turns out to be</p><p>∑ s = 1 n [ n s ] φ ( s ) = ∑ s = 1 n ψ ( [ n s ] ) . (6)</p><p>Hence,</p><p>∑ s = 1 n ψ ( [ n s ] ) = 1 2 n 2 + 1 2 n . (7)</p><p>We put</p><p>ψ ( n ) = 3 π 2 n 2 + ζ χ ( n ) , ∃ ζ   for   n . (8)</p><p>By (7),</p><p>ψ ( n ) = − ∑ s = 2 n ψ ( [ n s ] ) + 1 2 n 2 + 1 2 n . (9)</p><p>By (8),</p><p>− ∑ s = 2 n ψ ( [ n s ] ) = − ∑ s = 2 n ( 3 π 2 [ n s ] 2 + ζ χ ( [ n s ] ) ) = − 3 π 2 ∑ s = 2 n ( n s − ε ) 2 − ∑ s = 2 ∞ ζ χ ( [ n s ] ) ,     0 ≤ ε &lt; 1 = − 3 n 2 π 2 ∑ s = 2 n 1 s 2 + 6 n π 2 ∑ s = 2 n ε s − 3 π 2 ∑ s = 2 n ε 2 − ∑ s = 2 ∞ ζ χ ( [ n s ] ) = − 3 n 2 π 2 ( π 2 6 − 1 + τ ) + 6 n π 2 ∑ s = 2 n ε s − 3 π 2 ∑ s = 2 n ε 2 − ∑ s = 2 ∞ ζ χ ( [ n s ] ) = − 1 2 n 2 + 3 π 2 n 2 + P n log n + B ∑ s = 2 ∞ χ ( n s ) ,     ∃ P , ∃ B</p><p>Substituting this back into (9),</p><p>ψ ( n ) = 3 π 2 n 2 + P n log n + A ∑ s = 2 ∞ χ ( n s ) , ∃ P , ∃ A (10)</p><p>From (8) and (10),</p><p>ζ χ ( n ) = P n log n + A ∑ s = 2 ∞ χ ( n s )</p><p>ζ = P n log n χ ( n ) + A χ ( n ) ∑ s = 2 ∞ χ ( n s ) .</p><p>We can write</p><p>χ ( n ) = n δ ,</p><p>where δ is a constant satisfying</p><p>∑ s = 2 n 1 s δ &lt; ∑ s = 2 ∞ 1 s δ = q , 1 &lt; δ &lt; 2 .</p><p>Hence,</p><p>ζ = P n log n χ ( n ) + A n δ ∑ s = 2 ∞ ( n s ) δ = P n log n n δ + A q</p><p>for ∀ k &gt; 0 , P n log n n δ &lt; k , n ≥ N ,</p><p>Which implies</p><p>A ′ &lt; k + A q , ∃ A ′ .</p><p>Especially, if we use δ satisfying</p><p>∑ s = 2 ∞ 1 s δ = 1 , (11)</p><p>we obtain</p><p>A ′ &lt; A , n ≫ N .</p><p>Therefore, it follows that</p><p>ψ ( n ) = 3 π 2 n 2 + A ′ n δ , 1 &lt; δ &lt; 2 .</p><p>Thus,</p><p>φ ( x ) = ψ ( x ) − ψ ( x − 1 ) = 3 π 2 ( x 2 − ( x − 1 ) 2 ) + A ′ ( x δ − ( x − 1 ) δ ) = 6 π 2 x + o ( x ) ,     x : integer</p><p>this is because ( x − 1 ) δ = x δ + δ x δ − 1 ( − 1 ) + ⋯ by the Taylor expansion.</p><p>Hence,</p><p>E ( P ( X ) ) = lim x → ∞ 1 x ⋅ ∑ i = 1 x φ ( i ) i = 6 π 2 + lim x → ∞ 1 x ⋅ x ⋅ o ( 1 ) = 6 π 2 . (12)</p><p>□</p><p>We conducted an elementary computational experiment, in which we computed 1 x ⋅ ∑ i = 1 x φ ( i ) i , x = 1 , ⋯ , 120 using Python (<xref ref-type="fig" rid="fig1">Figure 1</xref>). <xref ref-type="fig" rid="fig1">Figure 1</xref> shows the validity of the result.</p></sec><sec id="s4"><title>4. Conclusions</title><p>In this study, we have proved that the average probability of an element being a generator in the cyclic group is 6 / π 2 . It is interesting that this value is equal to the value of Lemma 1. This is evident in the following discussion.</p><p>Consider ( j , k ) , j = 1 , ⋯ , x ; k = 1 , ⋯ , x . Note that ( j , j ) is coprime for j = 1 and not coprime for j = 2 , ⋯ , x . Then,</p><p>Pr { ( j , k )   are   coprime   integers | j = 1 , ⋯ , x ; k = 1 , ⋯ , x } = ∑ k = 1 x Pr { ( ( j , k ) , j ≤ k )   arecoprimeintegers | j = 1 , ⋯ , k }       + ∑ j = 1 x Pr { ( ( j , k ) , j ≥ k )   arecoprimeintegers | k = 1 , ⋯ , j }       − ∑ j = 1 x Pr { ( j , j )   arecoprime   integers }</p><p>= 1 2 ( 1 + 1 x ) ⋅ 1 x ⋅ ∑ k = 1 x φ ( k ) k + 1 2 ( 1 + 1 x ) ⋅ 1 x ⋅ ∑ j = 1 x φ ( j ) j − 1 x 2 = 1 x ⋅ ∑ i = 1 x φ ( i ) i + 1 x 2 ⋅ ∑ i = 1 x φ ( i ) i − 1 x 2 → x → ∞ lim x → ∞ 1 x ⋅ ∑ i = 1 x φ ( i ) i = E ( P ( X ) )</p><p>We would like to further clarify the asymptotic property of P ( x ) = φ ( x ) / x itself, which seems like φ ( x ) / x → P 6 / π 2 when x → ∞ , in our future work.</p></sec><sec id="s5"><title>Conflicts of Interest</title><p>The author declares no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s6"><title>Cite this paper</title><p>Tanaka, Y. (2023) Average Probability of an Element Being a Generator in the Cyclic Group. American Journal of Computational Mathematics, 13, 230-235. https://doi.org/10.4236/ajcm.2023.132012</p></sec></body><back><ref-list><title>References</title><ref id="scirp.125503-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Wang, S.D. (2022) A Study of the Use of Euler Totient Function Is RSA Cryptosystem and the Future of RSA Cryptosystem. Journal of Physics: Conference Series, 2386, Article ID: 012030. https://doi.org/10.1088/1742-6596/2386/1/012030</mixed-citation></ref><ref id="scirp.125503-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Haukkanen, P. (2002) On an Inequality Related to the Legendre Totient Function. Journal of Inequalities in Pure and Applied Mathematics, 3, Article 37.</mixed-citation></ref><ref id="scirp.125503-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Zhai, W.G. (2020) On a Sum Involving the Euler Function. Journal of Number Theory, 211, 199-219. https://doi.org/10.1016/j.jnt.2019.10.003</mixed-citation></ref><ref id="scirp.125503-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Dirichlet, G.L. (1849) über die Bestimmung der mittleren Werthe in der Zahlentheorie. Verlag nicht ermittelbar, Berlin. (Reprinted in G. Lejeune Dirichlet’s Werke, Chelsea Publishing Company, New York, 1969).</mixed-citation></ref><ref id="scirp.125503-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Dirichlet, G.L. and Dedekind, R. (1879) Vorlesungen über Zahlentheorie Braunschweig. Cambridge University Press, Cambridge.</mixed-citation></ref><ref id="scirp.125503-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Chen, Y.-P. (2012) A Probabilistic Look at Series Involving Euler’s Totient Function. Integers, 12, 649-657. https://doi.org/10.1515/integers-2011-0125</mixed-citation></ref><ref id="scirp.125503-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Dirichlet, G.L. (1837) Beweis des Satzes, dass jede unbegrentze arithmetische Progression, deren erstes Glied und Differenz ganze Zahlen ohne gemeinschaftlichen Factor sind, unendlich viele Primzahlen enth&amp;#228;lt. Abhandlungen der K&amp;#246;niglichen Preussischen Akademie der Wissenschaften zu Berlin, 48, 45-71. arXiv:0808.1408v2 (2014).</mixed-citation></ref><ref id="scirp.125503-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Kendall, R. and Osborn, R. (1965) Two Simple Lower Bounds for the Euler &amp;#981;-Function. Texas Journal of Science, 17, 324-326.</mixed-citation></ref></ref-list></back></article>