Porter's constant

From testwiki
Jump to navigation Jump to search

In mathematics, Porter's constant C arises in the study of the efficiency of the Euclidean algorithm.[1][2] It is named after J. W. Porter of University College, Cardiff.

Euclid's algorithm finds the greatest common divisor of two positive integers Template:Mvar and Template:Mvar. Hans Heilbronn proved that the average number of iterations of Euclid's algorithm, for fixed Template:Mvar and averaged over all choices of relatively prime integers Template:Math, is

12ln2π2lnn+o(lnn).

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=6ln2π2[3ln2+4γ24π2ζ(2)2]12=6ln2((48lnA)(ln2)(4lnπ)2)π212=1.4670780794

where

γ is the Euler–Mascheroni constant
ζ is the Riemann zeta function
A is the Glaisher–Kinkelin constant

Template:OEIS

ζ(2)=π26[12lnAγln(2π)]=k=2lnkk2

See also

References

Template:Reflist


Template:Numtheory-stub