Porter's constant
constant term in the average number of iterations of Euclid’s algorithm for fixed 𝑛 and averaged over all choices of relatively prime integers 𝑚<𝑛

In mathematics, Porter's constant C arises in the study of the efficiency of the Euclidean algorithm. It is named after J. W. Porter of University College, Cardiff.
Euclid's algorithm finds the greatest common divisor of two positive integers m and n. Hans Heilbronn proved that the average number of iterations of Euclid's algorithm, for fixed n and averaged over all choices of relatively prime integers m < n,
is
12
ln
2
π
2
ln
n
+
o
(
ln
n
)
.
{\displaystyle {\frac {12\ln 2}{\pi ^{2}}}\ln n+o(\ln n).}
Porter showed that the error term in this estimate is a constant, plus a polynomially-small correction, and Donald Knuth evaluated this constant to high accuracy. It is:
C
=
6
ln
2
π
2
[
3
ln
2
+
4
γ
−
24
π
2
ζ
′
(
2
)
−
2
]
−
1
2
=
6
ln
2
(
(
48
ln
A
)
−
(
ln
2
)
−
(
4
ln
π
)
−
2
)
π
2
−
1
2
=
1.4670780794
…
{\displaystyle {\begin{aligned}C&={{6\ln 2} \over {\pi ^{2}}}\left[3\ln 2+4\gamma -{{24} \over {\pi ^{2}}}\zeta '(2)-2\right]-{{1} \over {2}}\\[6pt]&={{{6\ln 2}((48\ln A)-(\ln 2)-(4\ln \pi )-2)} \over {\pi ^{2}}}-{{1} \over {2}}\\[6pt]&=1.4670780794\ldots \end{aligned}}}
where
γ
{\displaystyle \gamma }
is the Euler–Mascheroni constant
ζ
{\displaystyle \zeta }
is the Riemann zeta function
A
{\displaystyle A}
is the Glaisher–Kinkelin constant
(sequence A086237 in the OEIS)
−
ζ
′
(
2
)
=
π
2
6
[
12
ln
A
−
γ
−
ln
(
2
π
)
]
=
∑
k
=
2
∞
ln
k
k
2
{\displaystyle -\zeta ^{\prime }(2)={{\pi ^{2}} \over 6}\left[12\ln A-\gamma -\ln(2\pi )\right]=\sum _{k=2}^{\infty }{{\ln k} \over {k^{2}}}}
{\displaystyle }
Approximations
The simple approximations of the Porter's constant accurate up to 3 digits can be found as
C
=
2
21
/
38
=
1.466758730139474...
,
{\displaystyle C=2^{21/38}=1.466758730139474...,}
accurate up to 4 digits as
C
=
2
26
/
47
=
1.467328090156686...
,
{\displaystyle C=2^{26/47}=1.467328090156686...,}
and up to 6 digits as
C
=
2
47
/
85
=
1.467073525425601....
The public source identifies “Porter's constant” as constant term in the average number of iterations of Euclid’s algorithm for fixed 𝑛 and averaged over all choices of relatively prime integers 𝑚<𝑛. This brief keeps that definition visible, then builds a research path around Porter's, constant and term.
Why this record matters
A short description can identify a subject without explaining its stakes. For “Porter's constant”, the useful work is to connect “constant term in the average number of iterations of Euclid’s algorithm for fixed 𝑛 and averaged over all choices of relatively prime integers 𝑚<𝑛” to the records capable of establishing context and consequence.
Named sources, stable identifiers and responsible institutions provide the strongest route from overview to verifiable evidence. The source revision retrieved here is dated Dec 29, 2025. The linked authority identifier is Q30692563.
A concise general-reference account can conceal disagreements about scope, terminology or the weight assigned to individual sources. The lead is largely declarative, so disagreement and counter-evidence require a deliberate search beyond the opening account. Authority statements aid reconciliation but still require their own references, qualifiers and ranks to be checked.
How to read it
Use the entry as an orientation point, then follow its citations and revision history. Names, dates and institutional relationships should be checked against the original record.
- Subject orientation
- Search vocabulary
- Locating named sources
The closest primary source, responsible institution and strongest cited specialist reference.
Three-step research path
- Establish the record: confirm the title “Porter's constant”, its source revision and the description used here.
- Expand the search: follow Porter's constant primary sources, Porter's constant archive and Porter's research across catalogues and specialist indexes.
- Test the account: compare the strongest cited source with the responsible institution’s current record and note any disagreement.
Questions for further research
- Which source most directly establishes the central claim about “Porter's constant”?
- What terminology or title could unlock a more precise catalogue search?
- Which institution is responsible for the underlying evidence?
Search terms from this dossier
This entry incorporates text from “Porter's constant” on English Wikipedia. Contributors are listed in the page history. Text is available under the Creative Commons Attribution-ShareAlike 4.0 License. Selected authority identifiers and statements are retrieved from Wikidata under CC0; their references and qualifiers remain part of the verification path.