Following Ramanujan (1913-14), write
![]() |
(1) |
![]() |
(2) |
These satisfy the equalities
![]() |
![]() |
![]() |
(3) |
![]() |
![]() |
![]() |
(4) |
![]() |
![]() |
![]() |
(5) |
![]() |
![]() |
![]() |
(6) |








![]() |
![]() |
![]() |
(7) |
![]() |
![]() |
![]() |
(8) |
Using (3) and the above two equations allows



![]() |
(9) |
In terms of the parameter k and complementary parameter ,
![]() |
![]() |
![]() |
(10) |
![]() |
![]() |
![]() |
(11) |
Here,
![]() |
(12) |
is the elliptic lambda function, which gives the value of k for which
![]() |
(13) |
Solving for gives
![]() |
![]() |
![]() |
(14) |
![]() |
![]() |
![]() |
(15) |
Analytic values for small values of n can be found in Ramanujan




Borwein, J. M. and Borwein, P. B. Pi & the AGM: A Study in Analytic Number Theory and Computational Complexity. New York: Wiley, pp. 139 and 298, 1987.
Ramanujan, S. "Modular Equations and Approximations to .