A Method to Reduce the Lehmer Measure in a Multi-Term Machin-Like Formula for π

Abstract

Previously we have proposed a new method of transforming quotients into integer reciprocals in the Machin-like formulas for π. As a further development, here we show how to generate a multi-term Machin-like formula for π with a reduced Lehmer measure. The Mathematica codes validating these results are presented.

Share and Cite:

Abrarov, S. , Siddiqui, R. , Jagpal, R. and Quine, B. (2022) A Method to Reduce the Lehmer Measure in a Multi-Term Machin-Like Formula for π. Open Journal of Applied Sciences, 12, 1477-1493. doi: 10.4236/ojapps.2022.128101.

1. Introduction

The Machin-like formulas for π can be represented in the following form [1] [2] [3] [4] [5]

π 4 = j = 1 J A j arctan ( 1 B j ) , A j , B j . (1)

In many known equations, the values Bj are integers. Among many other formulas for π [3] [4] [5] [6] [7] , the identities of kind (1) involving arctangent function represent a particular interest due to their potential for rapid convergence.

Since the Maclaurin series expansion of the arctangent function is given by

arctan ( x ) = x x 3 3 + x 5 5 x 7 7 + = n = 0 ( 1 ) n x 2 n + 1 2 n + 1 , 1 x 1 , (2)

we can conclude that in order to improve convergence rate the numbers Bj in Equation (1) should be as large as possible by absolute values. Furthermore, the computational efficiency of a given Machin-like formula (1) for π is obviously higher if the number of the terms J is smaller. It should be noted that implementation of the binary splitting algorithm can also be used to accelerate computation of the series (2) (see for example [8]).

Lehmer introduced a measure [1] [2] [9] [10]

μ = j = 1 J 1 log 10 ( | B j | ) . (3)

Nowadays, the Equation (3) is known as the Lehmer measure. We take absolute values | B j | since the constants Bj in Equation (1) may generally be negative.

According to Lehmer, the measure (3) shows “amount of labor” that is required for computation of π for some given Machin-like formula. Specifically, the lower Lehmer measure μ indicates the higher computational efficiency of the Machin-like formula (1) for π. For example, the original Machin formula for π [1] [2] [3] [4] [5] [11] [12] [13]

π 4 = 4 arctan ( 1 5 ) arctan ( 1 239 ) (4)

that was found by English mathematician John Machin in 1706 has the Lehmer measure μ 1.85113 . However, the following Machin-like formula for π

π 4 = 12 arctan ( 1 18 ) + 8 arctan ( 1 57 ) 5 arctan ( 1 239 ) (5)

that was discovered by Gauss has the Lehmer measure μ 1.78661 [1] [2]. This signifies that the formula (5) is more efficient in computation of π than the formula (4) as its Lehmer measure is smaller. More detailed descriptions and significance of the Lehmer measure (3) in computation of π can be found in literature [10].

Previously we have shown that the following identity [14] (see also [15])

π 4 = 2 k 1 arctan ( 2 a k 1 a k ) , k 1 ,

where a k = 2 + a k 1 , a 0 = 0 , can be rearranged as

π 4 = 2 k 1 arctan ( 1 α ) + arctan ( 1 β ) , (6)

where the constant α can be taken as

α = a k 2 a k 1 (7)

for any integer k greater than 1.

Once α is known, the constant β in Equation (6) can be found by using the following equation [14] [15]

β = 2 ( ( α + 1 ) / ( α 1 ) ) 2 k 1 i i . (8)

Application of Equation (8) is not optimal since increasing k drastically slows down computation of the constant β. Fortunately, as we have shown in our work [16] the constant β in Equation (6) can be found more efficiently by using a two-step iteration

{ σ n = σ n 1 2 τ n 1 2 τ n = 2 σ n 1 2 τ n 1 2 , n = { 2 , 3 , 4 , , k } , (9)

with initial values defined as

σ 1 = α 2 1 α 2 + 1 (10a)

and

τ 1 = 2 α 2 α 2 + 1 (10b)

such that

β = σ k 1 τ k . (10c)

A method, known as the Todd’s process, is commonly used to generate the Machin-like formulas for π [10] (see also [17]). However, this method is not simple and requires tedious and complicated manipulations with large-size matrices based on a set of some prime numbers [10]. Furthermore, it seems that computer-aided algorithms based on Todd’s process still cannot generate the Machin-like formulas for π containing only integer reciprocals with μ below 1. For example, the following Machin-like formula for π containing only integer reciprocals (see [18] and web-links therein)

π 4 = 83 arctan ( 1 107 ) + 17 arctan ( 1 1710 ) 22 arctan ( 1 103697 ) 24 arctan ( 1 2513489 ) 44 arctan ( 1 18280007883 ) + 12 arctan ( 1 7939642926390344818 ) + 22 arctan ( 1 3054211727257704725384731479018 ) (11)

has the Lehmer measure μ 1.34085 . To the best of our knowledge this is the smallest Lehmer measure ever reported for the Machin-like formulas for π containing only integer reciprocals.

In our previous publication we have proposed a new method that transforms quotients into integer reciprocals in the Machin-like formulas for π [19]. In particular, we have shown how this approach can be used to generate a Machin-like formula for π that can retain without any quotients the Lehmer measure μ below one. As a further development of our work [19] , here we show how to generate the Machin-like formula for π with the Lehmer measure μ less than 1 even at a smaller value of the integer k. As an example we show that for k = 4 the corresponding Machin-like formula (22) for π has the Lehmer measure 0.956916. Therefore, this approach may be promising for efficient computation of digits of π.

2. Preliminaries

As an example, we can take k = 4 . Substituting this value into Equation (7) we have

α = 2 + 2 + 2 + 2 2 2 + 2 + 2 = 10.

Then, using Equations (10a), (10b) and (10c) together with two-step iteration (9), we can find that

β = 147153121 1758719 .

Consequently, substituting these values α and β into Equation (6) yields

π 4 = 8 arctan ( 1 10 ) arctan ( 1758719 147153121 ) . (12)

We can use Mathematica to verify this two-term Machin-like formula for π in two ways. The first way is to use a built-in algorithm of the Mathematica by equating logically (with == symbols) the left and right sides of Equation (12). The following Mathematica code:

Pi/4==8*ArcTan[1/10]-ArcTan[1758719/147153121]

validates the identity (12) by returning True. Although this code confirms correctness of this identity, it is not clear how the built-in algorithm of Mathematica validates it.

Another way of validation that follows from Equation (1), implies that the real and imaginary parts of the product (detailed description can be found in [11])

j = 1 J ( B j + i ) A j ( 1 + i )

must be equal to each other. For example, there is an elementary proof for the original Machin formula (4) for π [20]

( 5 + i ) 4 ( 259 + i ) 1 = 2 ( 1 + i ) .

Therefore, the following Mathematica code:

coeff=(10+I)^8*(147153121/1758719+I)^-1;

Re[coeff]==Im[coeff]

also validates the Equation (12) by returning True since the real and imaginary parts of the product

( 10 + i ) 8 ( 147153121 1758719 + i ) 1 = 1758719 2 ( 1 + i )

are equal to each other. Further, we will use the second way of validation since it is explicit and, therefore, intuitive for understanding.

The Machin-like formula (12) for π contains a quotient in the argument of the second arctangent function. This quotient is undesirable as its large numerator 1758719 increases the argument of the arctangent function that slows down the convergence rate. Moreover, it also contributes for more digits that also slow down the computation when expansion series like (2) for the arctangent function is used. Therefore, it is very desirable to look for the Machin-like formulas for π, where all constants Bj are integers. In order to resolve this problem we proposed a new method based on the following identity (see [19] for derivation)

arctan ( 1 z ) = arctan ( 1 z ) + arctan ( z z 1 + z z ) , z [ 0 , 1 ) . (13)

Application of the identity (13) has appeared to be very efficient. Consider as an example a remarkable Machin-like formula for π that was found by Wetherfield in 2004 (see [18] and the web-links therein)

π 4 = 83 arctan ( 1 107 ) + 17 arctan ( 1 1710 ) 22 arctan ( 1 103697 ) 12 arctan ( 2 2513489 ) 22 arctan ( 2 18280007883 ) . (14)

The Lehmer measure of this formula is small μ 1.26579 (see definition (3) for computation of μ). However, the arguments in the last two arctangent function arguments are not integer reciprocals and, consequently, practical application of Equation (14) may be questionable. In order to eliminate these two quotients in arctangent function arguments we can use the following identity

arctan ( 1 x ) = 2 arctan ( 1 2 x ) arctan ( 1 4 x 3 + 3 x )

leading to

arctan ( 2 2513489 ) = 2 arctan ( 1 2513489 ) arctan ( 1 7939642926390344818 )

and

arctan ( 2 18280007883 ) = 2 arctan ( 1 18280007883 ) arctan ( 1 3054211727257704725384731479018 ) .

Substituting these two arctangent function relations into Equation (14) results in Equation (11).

Consider now how our approach based on identity (13) can be used to eliminate quotients in (14) [19]. Specifically, applying Equation (13) in a sequence first for

z = 2513489 2

and then for

z = 18280007883 2 ,

we obtain the following 7-term Machin-like formula for π

π 4 = 83 arctan ( 1 107 ) + 17 arctan ( 1 1710 ) 22 arctan ( 1 103697 ) 12 arctan ( 1 1256744 ) 22 arctan ( 1 9140003941 ) + 12 arctan ( 1 3158812219818 ) + 22 arctan ( 1 167079344092131066905 ) , (15)

where all arguments are integer reciprocals. The Lehmer’s measure for this equation is μ 1.39524 . It seems that Equation (15) is new and first appeared in our recent publication [19].

The Mathematica code below:

coeff=(107+I)^83*(1710+I)^17*(103697+I)^-22*(1256744+I)^-12*

(9140003941+I)^-22*(3158812219818+I)^12*

(167079344092131066905+I)^22;

Re[coeff]==Im[coeff]

validates Equation (15) by returning True.

In 2002, Kanada broke a record by computing more than one trillion decimal digits of π [21] [22] (current record is 62.8 trillion digits of π [23]). He applied the following self-checking pair of the Machin-like formulas

π 4 = 44 arctan ( 1 57 ) + 7 arctan ( 1 239 ) 12 arctan ( 1 682 ) + 24 arctan ( 1 12943 )

and

π 4 = 12 arctan ( 1 49 ) + 32 arctan ( 1 57 ) 5 arctan ( 1 239 ) + 12 arctan ( 1 110443 )

with Lehmer’s measures 1.58604 and 1.7799, respectively.

The current record that was achieved by using the Chudnovsky brothers formula [22] is 62.8 trillion digits of π [23]. This record is larger than Kanada’s 20 years old record by a factor ~60. Since this factor is not large, despite relatively high Lehmer’s measures 1.58604 and 1.7799 we may expect that using most modern supercomputer the self-checking pair above can also generate a comparable amount of digits of π. Therefore, the Machin-like formulas with small Lehmer’s measure have a colossal potential and remain competitive in computing digits of π.

Since Lehmer’s measures of Equations (11) and (15) are smaller, their application in computing π is potentially more efficient than the self-checking pair that was used by Kanada. Furthermore, since first three arctangent function terms in both equations are same, it is easier to compare results of computation when Equations (11) and (15) are used as a self-checking pair.

We have shown already that identity (13) can be used in an iterative procedure such that from Equation (12) it follows that (see [19] for derivation)

π 4 = 8 arctan 1 10 arctan 1 84 arctan 1 21342 arctan 1 991268848 arctan 1 193018008592515208050 arctan 1 197967899896401851763240424238758988350338 arctan 1 117573868168175352930277752844194126767991915008537018836932014293678271636885792397 (16)

As we can see, this formula contains only integer reciprocals. Therefore, the iteration procedure based on Equation (13) can be used as an alternative to the Todd’s process.

The 7-term Machin-like formula (16) for π can be validated by running the following Mathematica code:

(* Define long string *)

longStr=StringJoin["11757386816817535293027775284419412676",

"7991915008537018836932014293678271636885792397"];

coeff=(10+I)^8*(84+I)^-1*(21342+I)^-1*

(991268848+I)^-1*(193018008592515208050+I)^-1*

(197967899896401851763240424238758988350338+I)^-1*

(FromDigits[longStr]+I)^-1;

Re[coeff]==Im[coeff]

The output of this code is True.

Thus, the initial Equation (12) with quotient can be transformed into Equation (16) with help of the identity (13) using an iterative procedure described in our publication [19]. We can also notice that starting from the second arctangent function term each consecutive integer in Equation (16) is larger by absolute value than the previous one by many orders of the magnitude. This signifies that each consecutive arctangent term contributes smaller and smaller amount for the Lehmer measure μ. Consequently, due to rapidly increasing integers this iteration process enable us to generate the Machin-like formula for π with a small Lehmer measure.

3. Derivation

We will attempt to transform the Machin-like formula (12) for π in a form where initial arctangent terms contain arguments of kind 1/10m, where m is a positive integer. Solving the equation

1758719 147153121 + x = 1 100 x = 28718779 14715312100

we can rewrite Equation (12) as follows

π 4 = 8 arctan ( 1 10 ) arctan ( 1 100 + 28718779 14715312100 )

Applying now the following identity (see also [19])

arctan ( x + y ) = arctan ( x ) + arctan ( y 1 + ( x + y ) x )

the Equation (12) can be recast as

π 4 = 8 arctan ( 1 10 ) arctan ( 1 100 ) arctan ( 28718779 14717070819 ) . (17)

Repeating same procedure again for Equation (17)

28718779 14717070819 + x = 1 1000 x = 14001708181 14717070819000

we get

π 4 = 8 arctan ( 1 10 ) arctan ( 1 100 ) arctan ( 1 1000 + 14001708181 14717070819000 ) = 8 arctan ( 1 10 ) arctan ( 1 100 ) arctan ( 1 1000 ) arctan ( 14001708181 14717099537779 ) . (18)

Since the following quotient

14717099537779 14001708181 1051.09

is close to 1000, it is reasonable to represent the last arctangent function from Equation (18) as

arctan ( 14001708181 14717099537779 ) = arctan ( 1 1000 715391356779 14717099537779000 ) .

This leads to

π 4 = 8 arctan ( 1 10 ) arctan ( 1 100 ) 2 arctan ( 1 1000 ) + arctan ( 715391356779 14717113539487181 ) . (19)

The following Mathematica code:

coeff=(10+I)^8*(100+I)^-1*(14717070819/28718779+I)^-1;

eq17=Re[coeff]==Im[coeff];

coeff=(10+I)^8*(100+I)^-1*(14717070819/28718779+I)^-1;

eq18=Re[coeff]==Im[coeff];

coeff=(10+I)^8*(100+I)^-1*(1000+I)^-1*

(14717099537779/14001708181+I)^-1;

eq19=Re[coeff]==Im[coeff];

Print[{eq17,eq18,eq19}]

validates Equations (17)-(19) by returning the list {True,True,True}.

We notice that

14717113539487181 715391356779 = 20572

is a relatively large number. Therefore, its contribution to the Lehmer measure will not be high and further we can apply identity (13). Thus, taking

z = 14717113539487181 715391356779

and substituting it into in identity (13) we can rewrite Equation (19) as

π 4 = 8 arctan ( 1 10 ) arctan ( 1 100 ) 2 arctan ( 1 1000 ) + arctan ( 1 20573 ) + arctan ( 316421763593 151387588781630565746 ) . (20)

Now implying that

z = 151387588781630565746 316421763593

and substituting it into identity (13), we obtain

π 4 = 8 arctan ( 1 10 ) arctan ( 1 100 ) 2 arctan ( 1 1000 ) + arctan ( 1 20573 ) + arctan ( 1 478436082 ) + arctan ( 10266919376 14485856968022096352676282153 ) . (21)

The Mathematica code below validates Equations (20) and (21):

coeff=(10+I)^8*(100+I)^-1*(1000+I)^-2*(20573+I)*

(151387588781630565746/316421763593+I);

eq20=Re[coeff]==Im[coeff];

ceff=(10+I)^8*(100+I)^-1*(1000+I)^-2*(20573+I)*

(478436082+I)*(14485856968022096352676282153/

10266919376+I);

eq21=Re[coeff]==Im[coeff];

Print[{eq20,eq21}]

by returning the list {True,True}.

Repeating same procedure over and over again, we end up with the following 21-term Machin-like formula for π

π 4 = 8 arctan ( 1 10 ) arctan ( 1 100 ) 2 arctan ( 1 1000 ) + arctan ( 1 20573 ) + arctan ( 1 478436082 ) + arctan ( 1 1410925365001336732 ) + arctan ( 1 2921851992939769423775706369842706095 ) + + arctan ( 1 1170619828 6246893153 600593 digits ) , (22)

where integer in the last term consists of 600593 digits.

It is not difficult to show that Equation (22) can be represented in a more compact form as

π 4 = 8 arctan ( 1 10 ) arctan ( 1 100 ) 2 arctan ( 1 1000 ) m = 1 18 arctan ( 1 B m ) ,

where

B 1 = 14717113539487181 715391356779

such that by iteration

B m = 1 + B m 1 B m 1 B m 1 B m 1 .

We ceased iteration at 18th step since the number

B 18 = B 18 = 1170619828 6246893153 600593 digits

is not a quotient but an integer (see [19] showing how iteration is implemented).

The following Mathematica code:

Clear[B]

B[1]:=B[1]=-14717113539487181/715391356779;

B[m_]:=B[m]=(1+Floor[B[m-1]]*B[m-1])/(Floor[B[m-1]]-B[m-1]);

coeff=(10+I)^8*(100+I)^-1*(1000+I)^-2*

Product[(Floor[B[m]]+I)^-1,{m,1,18}];

Re[coeff]==Im[coeff]

returns True for validation of the Equation (22).

As we have reported in [24] , the arctangent function can be expanded as a series

arctan ( x ) = m = 1 M arctan ( M x M 2 + ( m 1 ) m x 2 ) .

Using this series expansion we can obtain the following relation

arctan ( 1 10 ) = 10 arctan ( 1 100 ) 1 2 arctan ( 663251878199233259534207841462897801980 1011010237065062789681261499707188111860099 ) ,

where the quotient on the right side can be eliminated by using Equation (13) in iterative procedure. Therefore, there is a possibility to rearrange the Equation (12) with starting term 80 arctan (1/100). This may be more advantageous in computation due to faster convergence.

4. Lehmer’s Measure

According to definition (3), the Lehmer measure for the Equation (22) is

1 log 10 ( 10 ) + 1 log 10 ( 100 ) + 1 log 10 ( 1000 ) + j = 1 18 1 log 10 ( | B j | ) 2.29025.

However, the measure may be reduced under some specific criteria. In particular, Lehmer justifiably noticed that the actangent terms of kind

arctan ( 1 10 m ) , m .

are much easier to calculate (see [1] , page 662). Therefore, he suggested to assign the measure 1/2 for the arctangent term arctan (1/10). Moreover, Lehmer also pointed out that if a Machin-like formula for π besides arctan (1/10) includes the arctangents of other powers of 1/10, then the measure 0 should be assigned to all of them since the Maclaurin series expansion (2) of arctan (1/10) already contains all required digits in mantissa of each term that can be used further for computation of arctan (1/10m). More explicitly, once in accordance with Equation (2) we compute

arctan ( 1 10 ) = 1 10 1 3 10 3 + 1 5 10 5 1 7 10 7 + ,

then the computation

arctan ( 1 10 m ) = ( 1 10 ) 1 10 m 1 + ( 1 3 10 3 ) 1 10 3 ( m 1 ) + ( 1 5 10 5 ) 1 10 5 ( m 1 ) + ( 1 7 10 7 ) 1 10 7 ( m 1 ) +

becomes straightforward since it can be implemented algorithmically just by decreasing exponent in each term while keeping mantissa absolutely unchanged. Consequently, as Lehmer suggested [1] if arctan (1/10) is present in a given relation, then for each arctangent term arctan (1/10m) the measure 0 can be assigned. Thus, the Lehmer measure for the Equation (22) can be reduced as

1 2 1 log 10 ( 10 ) + 0 1 log 10 ( 100 ) + 0 1 log 10 ( 1000 ) + j = 1 18 1 log 10 ( | B j | ) 0.956915.

The corresponding Mathematica code is:

Clear[B]

B[1]:=B[1]=-14717113539487181/715391356779;

B[m_]:=B[m]=(1+Floor[B[m-1]]*B[m-1])/

(Floor[B[m-1]]-B[m-1]);

Print["The Lehmer measure of identity (22) is: ",

1/2+0+0+Sum[1/Log10[Abs[B[m]]],

{m,1,18}]//N]

The generated output is:

The Lehmer measure of identity (22) is: 0.956916

As we can see from this example, the Lehmer measure below one can be achieved in a Machin-like formula for π without any quotient and at a smaller values of the integer k. Despite that the initial formula (12) for π that we used as a starting point in iterative procedure, corresponds to the small integer k = 4 , this method enables us to generate the multi-term Machin-like formula (22) for π with Lehmer measure less than unity, μ 0.956916 .

Consider for comparison the following two Machin-like formulas for π that also include three arctangent terms with arguments 1/10, 1/100 and 1/1000 [25]

π 4 = 7 arctan ( 1 10 ) + 2 arctan ( 1 50 ) + 4 arctan ( 1 100 ) + arctan ( 1 682 ) + 4 arctan ( 1 1000 ) + 3 arctan ( 1 1303 ) 4 arctan ( 1 90109 ) (23)

and

π 4 = 7 arctan ( 1 10 ) + 8 arctan ( 1 100 ) + arctan ( 1 682 ) + 4 arctan ( 1 1000 ) + 3 arctan ( 1 1303 ) 4 arctan ( 1 90109 ) 2 arctan ( 1 500150 ) . (24)

The corresponding Lehmer measures are

1 2 + 1 log 10 ( 50 ) + 0 + 1 log 10 ( 682 ) + 0 + 1 log 10 ( 1303 ) + 1 log 10 ( 90109 ) 1.96434

and

1 2 + 0 + 1 log 10 ( 682 ) + 0 + 1 log 10 ( 1303 ) + 1 log 10 ( 90109 ) + 1 log 10 ( 500150 ) 1.55121,

respectively. As we can see, the Machin-like formula (22) for π is computationally more efficient since its Lehmer’s measure is significantly smaller.

The computation of the first three arctangent terms in Equation (22) can be implemented by using the Maclaurin series expansion (2) since in decimal system no actual multiplications in determination of powers of 1/10 are needed (as mentioned, this can be done only by decreasing exponent and keeping mantissa unchanged in each term). However, starting from the forth arctangent term arctan (1/20573) application of the Maclaurin series expansion (2) may not be optimal since faster convergence rate can be achieved by using either Euler’s formula [26] [27]

arctan ( x ) = m = 0 2 2 m ( m ! ) 2 ( 2 m + 1 ) ! x 2 m + 1 ( 1 + x 2 ) m + 1 (25)

or iteration-based formula [24]

arctan ( x ) = 2 m = 1 1 2 m 1 g m ( x ) g m 2 ( x ) + h m 2 ( x ) , (26)

where

g 1 ( x ) = 2 / x , h 1 ( x ) = 1 ,

g m ( x ) = g m 1 ( x ) ( 1 4 / x 2 ) + 4 h m 1 ( x ) / x ,

h m ( x ) = h m 1 ( x ) ( 1 4 / x 2 ) 4 g m 1 ( x ) / x .

Chien-Lih showed an elegant derivation of the Euler’s formula (25) by an elementary method [27]. In particular, this series expansion can be derived by taking integral

arctan ( x ) = 0 π / 2 x sin ( u ) 1 + x 2 1 1 x 2 sin 2 ( u ) 1 + x 2 d u

in terms of geometric series

1 1 x 2 sin 2 ( u ) 1 + x 2 = n = 0 x 2 n sin 2 n ( u ) ( 1 + x 2 ) n .

Iteration-based Equation (26) represents a trivial rearrangement of the series expansion

arctan ( x ) = i n = 1 1 2 n 1 ( 1 ( 1 + 2 i / x ) 2 n 1 1 ( 1 2 i / x ) 2 n 1 )

that we derived in our work [28].

It should be noted that apart from decimal system, other number systems can also be used in the Machin-like formulas for π. For example, a more rapid computation of the Maclaurin series expansion (2) can also be achieved for the arctangent terms like arctan (1/8m) and arctan (1/16m) in octal and hexadecimal systems, respectively.

5. Klingenstierna’s Identity

The method described above can also be used to derive some known Machin-like formulas for π. This derivation is much easier than the conventional derivations. For example, solving

28718779 14717070819 + x = 1 515 x = 73100366 7579291471785

and representing the last arctangent term from Equation (17) as

arctan ( 28718779 14717070819 ) = arctan ( 1 515 73100366 7579291471785 )

we immediately get the well-known identity

π 4 = 8 arctan ( 1 10 ) arctan ( 1 100 ) arctan ( 1 515 ) arctan ( 3583 371498882 ) .

According to Castellanos, this identity is attributed to Swedish mathematician Samuel Klingenstierna [26]. Although the corresponding measure

1 2 + 0 + 1 log 10 ( 515 ) + 1 log 10 ( 371498882 3583 ) 1.06813

is relatively small, this Machin-like formula may not be optimal for computing π due to quotient in its last arctangent term.

6. Alternative Representation

It is interesting to note that a slight modification of the identity (13) as given by

arctan ( 1 z ) = arctan ( 1 10 n z 10 n ) + arctan ( 10 n z 10 n z 1 + z 10 n z 10 n ) , z [ 0,10 n ) , (27)

can also be used to generate the Machin-like formulas for π. Return to Equation (12) again and assume that

z = 147153121 1758719

For, say, n = 2 substituting this value z into identity (27) leads to

π 4 = 8 arctan ( 1 10 ) arctan ( 1 83.68 ) arctan ( 412123 307888297107 ) . (28)

Similarly, substituting now

z = 307888297107 412123

into identity (28) results in

π 4 = 8 arctan ( 1 10 ) arctan ( 1 83.68 ) arctan ( 1 747078.66 ) arctan ( 74409 11500838821639577981 ) . (29)

The following Mathematica code:

coeff=(10+I)^8*(83+68/100+I)^-1*

(307888297107/412123+I)^-1;

eq28=Re[coeff]==Im[coeff];

coeff=(10+I)^8*(83+68/100+I)^-1*(747078+66/100+I)^-1*

(11500838821639577981/74409+I)^-1;

eq29=Re[coeff]==Im[coeff];

Print[{eq28,eq29}]

validates Equations (28) and (29) by returning the list {True,True}.

Thus, using the iteration above, we can derive the following Machin-like formula for π

π 4 = 8 arctan ( 1 10 ) arctan ( 1 83.68 ) arctan ( 1 747078.66 )

arctan ( 1 154562469884551.31 ) arctan ( 1 399648835184411935214717088966.73 )

arctan ( 1 8665971818 7222871549 1052 digits ) (30)

consisting of 10-terms with finite number of decimal digits in each arctangent term.

The 10-term Machin-like formula (30) for π can be represented in a compact form as follows

π 4 = 8 arctan ( 1 10 ) + m = 1 9 arctan ( 1 10 2 B m 10 2 ) ,

where

B 1 = 147153121 1758719

and

B m = 1 + ( 10 2 B m 1 10 2 ) B m 1 ( 10 2 B m 1 10 2 ) B m 1 .

Iteration is completed at 9th step since (see [19] for a detailed description of iteration procedure)

B 9 = 10 2 B 9 10 2 = 8665971818 7222871549 1052 digits

is an integer.

The following Mathematica program:

Clear[B]

B[1]:=B[1]=-147153121/1758719;

B[m_]:=B[m]=(1+(Floor[10^2*B[m-1]]*10^-2)*

B[m-1])/((Floor[10^2*B[m-1]]*

10^-2)-B[m - 1]);

coeff=(10+I)^8*Product[(Abs[Floor[10^2*B[m]]*

10^-2]+I)^-1,{m,1,9}];

Re[coeff]==Im[coeff]

validates Equation (30) by returning True.

7. Conclusion

A method that can be used to generate a multi-term Machin-like formula for π with a reduced Lehmer measure is presented. We show that the Lehmer measure below 1 can be achieved even at small value of the integer k = 4 . Specifically, as an example we derive the Machin-like formula (22) for π with the Lehmer measure μ 0.956916 . This value is significantly smaller than the smallest Lehmer measure 1.34085 known so far among the Machin-like formulas for π consisting of only integer reciprocals.

Acknowledgements

This work is supported by National Research Council Canada, Thoth Technology Inc., York University and Epic College of Technology.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Lehmer, D.H. (1938) On Arccotangent Relations for π. American Mathematical Monthly, 45, 657-664.
https://doi.org/10.1080/00029890.1938.11990873
[2] Abeles, F.F. (1993) Charles L. Dodgson’s Geometric Approach to Arctangent Relations for Pi. Historia Mathematica, 20, 151-159.
https://doi.org/10.1006/hmat.1993.1013
[3] Beckmann, P. (1971) A History of Pi. Golem Press, New York.
[4] Berggren, L., Borwein, J. and Borwein, P. (2004) Pi: A Source Book. 3rd Edition, Springer-Verlag, New York.
https://doi.org/10.1007/978-1-4757-4217-6
[5] Borwein, J. and Bailey, D. (2008) Mathematics by Experiment. Plausible Reasoning in the 21st Century. 2nd Edition, Taylor & Francis Group, Abingdon-on-Thames.
https://doi.org/10.1201/b10704
[6] Fitzhugh, J.M. and Farnsworth, D.L. (2013) A Construction That Produces Wallis-Type Formulas. Advances in Pure Mathematics, 3, 579-585.
https://doi.org/10.4236/apm.2013.36074
[7] Hwang, C.-O., Kim, Y., Im, C. and Lee, S. (2017) Buffon’s Needle Algorithm to Estimate π. Applied Mathematics, 8, 275-279.
https://doi.org/10.4236/am.2017.83022
[8] Brent, R.P. and Zimmermann, P. (2010) Modern Computer Arithmetic. Cambridge University Press, Cambridge.
https://doi.org/10.1017/CBO9780511921698
[9] Tweddle, I. (1991) John Machin and Robert Simson on Inverse-Tangent Series for π. Archive for History of Exact Sciences, 42, 1-14.
https://www.jstor.org/stable/41133896
https://doi.org/10.1007/BF00384331
[10] Wetherfield, M. (1996) The Enhancement of Machin’s Formula by Todd’s Process. Mathematical Gazette, 80, 333-344.
https://www.jstor.org/stable/3619567
https://doi.org/10.2307/3619567
[11] Jansson, M. (2019) Approximation of π. Lund University, Lund.
https://lup.lub.lu.se/student-papers/search/publication/8983341
[12] Nimbran, A.S. (1990) On the Derivation of Machin-Like Arctangent Identities for Computing Pi (π). The Mathematics Student, 79, 171-186.
[13] Chamberland, M. and Herman, E.A. (2019) Arctangent Formulas and Pi. American Mathematical Monthly, 126, 646-650.
https://doi.org/10.1080/00029890.2019.1606578
[14] Abrarov, S.M. and Quine, B.M. (2017) The Two-Term Machin-Like Formula for Pi with Small Arguments of the Arctangent Function.
[15] A Wolfram Notebook Playing with Machin-Like Formulas.
https://www.wolframcloud.com/obj/exploration/MachinLike.nb
[16] Abrarov, S.M. and Quine, B.M. (2017) An Iteration Procedure for a Two-Term Machin-Like Formula for Pi with Small Lehmer’s Measure.
[17] Todd, J. (1949) A Problem on Arc Tangent Relations. The American Mathematical Monthly, 56, 517-528.
https://doi.org/10.1080/00029890.1949.11999434
[18] Identity Lists—Classification, Layout and Links.
http://www.machination.eclipse.co.uk/IdLists.html
[19] Abrarov, S.M., Siddiqui, R., Jagpal, R.K. and Quine, B.M. (2022) A New Form of the Machin-Like Formula for Pi by Iteration with Increasing Integers. Journal of Integer Sequences, 25, Article 22.4.5.
https://cs.uwaterloo.ca/journals/JIS/VOL25/Abrarov/abrarov5.pdf
[20] Guillera, J. (2009) History of the Formulas and Algorithms for Pi. In: Amdeberhan, T., Medina, L.A. and Moll, V.H., Eds., Gems in Experimental Mathematics, American Mathematical Society, Providence, 173-187.
https://doi.org/10.1090/conm/517/10140
[21] Calcut, J.S. (2009) Gaussian Integers and Arctangent Identities for π. American Mathematical Monthly, 116, 515-530.
https://www.jstor.org/stable/40391144
https://doi.org/10.1080/00029890.2009.11920967
[22] Agarwal, R.P., Agarwal, H. and Sen, S.K. (2013) Birth, Growth and Computation of Pi to Ten Trillion Digits. Advances in Difference Equations, 2013, Article No. 100.
https://doi.org/10.1186/1687-1847-2013-100
[23] Swiss Researchers Calculate Pi to New Record of 62.8tn Figures. The Guardian.
https://tinyurl.com/6e96nudh
[24] Abrarov, S.M., Siddiqui, R., Jagpal, R.K. and Quine, B.M. (2021) Unconditional Applicability of Lehmer’s Measure to the Two-Term Machin-Like Formula for π. The Mathematical Journal, 23, 1-23.
https://doi.org/10.3888/tmj.23-2
[25] Wrench, J.W. (1938) On the Derivation of Arctangent Equalities. American Mathematical Monthly, 45, 108-109.
https://doi.org/10.2307/2304280
[26] Castellanos, D. (1988) The Ubiquitous π. Mathematics Magazine, 61, 67-98.
https://doi.org/10.1080/0025570X.1988.11977350
[27] Chien-Lih, H. (2005) An Elementary Derivation of Euler’s Series for the Arctangent Function. The Mathematical Gazette, 89, 469-470.
https://doi.org/10.1017/S0025557200178404
[28] Abrarov, S.M. and Quine, B.M. (2018) A Formula for Pi Involving Nested Radicals. The Ramanujan Journal, 46, 657-665.
https://doi.org/10.1007/s11139-018-9996-8

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.