OFFSET
1,2
COMMENTS
This is the arithmetic-geometric mean of 1 and 2, given by u(1) = 1, v(1) = 2, u(n+1) = (u(n)+v(n))/2, v(n+1) = sqrt(u(n)*v(n)); agm(1,2) = lim u(n) = lim v(n).
LINKS
Ivan Panchenko, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Arithmetic-Geometric Mean
Wikipedia, Arithmetic-geometric mean
EXAMPLE
1.45679103104690686918643238326508197497386394322130559079417238326792645458025...
MAPLE
evalf(GaussAGM(1, 2), 144); # Alois P. Heinz, Jul 05 2023
evalf(Pi/EllipticK(sqrt(3)/2), 107); # or
evalf(3*Pi/(4*EllipticK(1/3)), 107); # Vaclav Kotesovec, Mar 28 2024
MATHEMATICA
RealDigits[ ArithmeticGeometricMean[1, 2], 10, 107] // First (* Jean-François Alcover, Feb 06 2013 *)
RealDigits[N[3Pi/(4EllipticK[1/9]), 107]][[1]] (* Jean-François Alcover, Jun 02 2019 *)
RealDigits[N[Pi/EllipticK[3/4], 107]][[1]] (* or *)
RealDigits[N[Pi/(2*EllipticK[-3]), 107]][[1]] (* Vaclav Kotesovec, Mar 28 2024 *)
PROG
(PARI) agm(1, 2) \\ Charles R Greathouse IV, Mar 03 2016
CROSSREFS
KEYWORD
AUTHOR
Benoit Cloitre, Mar 21 2002
STATUS
approved