I've come across this approximation of pi, which I'm struggling to put a name on. I want to do further research on it but I can't find any evidence of it on the internet. It is an infinite sum: $\pi = 1 + 1/2 + 1/3 + 1/4 - 1/5 + 1/6 + 1/7 + 1/8 + 1/9 - 1/10 + 1/11 + 1/12 - 1/13 + \dots $
This is the description I've been given of it:
In this formula, each fraction 1/n has a sign (±) determined by: the first two terms have positive signs; after that, if the denominator is a prime of the form 4m − 1 (for example, n = 3, 7, 11, . . .), the sign is positive; if the denominator is a prime of the form 4m + 1 (for example, n = 5, 13, 17, . . .), the sign is negative; if the denominator is a composite number, then the sign is equal to the product of the signs corresponding to its factors (for example, n = 9 = 3 × 3, so its sign is positive (a positive times a positive), while n = 10 = 5 × 2, so its sign is negative (a negative times a positive)).
Can anyone help me identify which approximation this is? Is it a well-known approximation?
Not an answer, but maybe this will help. You can write the sum as an infinite product. For primes $p$ that are $2$ or of the form $4n-1$ you have a factor $$1+\frac 1p+\frac 1{p^2}+\frac 1{p^3}+\ldots=\frac 1{p-1}$$ For primes $q$ of the form $4n+1$ you have a factor $$1-\frac 1q+\frac 1{q^2}-\frac 1{q^3}+\ldots=\frac 1{q+1}$$ So the whole sum becomes $$\prod \frac 1{p_i-1} \cdot \prod \frac 1{q_i+1}$$ I don't know how to relate this to $\pi$