Leibniz Formula for Pi
- 22Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the Leibniz-Madhava formula for π/4?
22 questions
- 1
What is the Leibniz-Madhava formula for π/4?
Model answer
4π=1−31+51−71+⋯
Explanation
This infinite series expresses π/4 as an alternating sum of reciprocals of odd positive integers.
- 2
Who originally discovered the formula now known as the Leibniz-Madhava formula?
Model answer
Madhava of Sangamagrama in the 14th century.
Explanation
Although attributed to Leibniz, the formula was discovered by Madhava over 200 years earlier.
- 3
In the derivation of the Leibniz-Madhava formula from lattice points, why is it easier to tally row by row rather than column by column?
Model answer
Because each row corresponds to a fixed good or bad odd number d, and the number of dots in that row is ⌊r2/d⌋, which is easy to compute.
Explanation
Column-by-column requires factoring each integer, while row-by-row uses simple multiples of d.
- 4
Evaluate limr→∞r2⌊r2/d⌋ for a fixed positive integer d.
Model answer
The limit is 1/d.
Explanation
As r becomes large, the floor function becomes negligible and ⌊r2/d⌋∼r2/d.
- 5
After taking the limit r→∞ in the lattice count derivation, what series do we obtain for π?
Model answer
π=4(1−31+51−71+⋯) or equivalently 4π=1−31+51−71+⋯.
Explanation
This is the Leibniz-Madhava series, derived from the area of a circle.
- 6
What does the notation ⌊x⌋ represent in the derivation?
Model answer
It denotes the floor or integer part of x, i.e., the greatest integer less than or equal to x.
Explanation
This is used to count the number of multiples of a number d that are at most r2.
- 7
How is the origin (0,0) accounted for in the lattice point count using Jacobi's theorem?
Model answer
The origin contributes 1 separate from the 4(good−bad) contributions; the total is 1+∑k=1r24(good−bad).
Explanation
The origin corresponds to 0 as a sum of two squares, which has only one representation.
- 8
How does counting lattice points inside a circle approximate its area?
Model answer
The number N(r) of lattice points with integer coordinates inside a circle of radius r approximates the area πr2 because each point is the center of a unit square.
Explanation
The total area of the unit squares centered on these lattice points approximates the circle's area as r increases.
- 9
Why does each lattice point represent a unit square in the area approximation?
Model answer
If we draw a unit square centered at each lattice point, the union of squares inside the circle approximates the circle's area.
Explanation
In primary school, we estimate area by counting squares; here the lattice points serve as centers of those squares.
- 10
What condition determines if a lattice point (x,y) lies inside a circle of radius r centered at the origin?
Model answer
x2+y2≤r2.
Explanation
This follows from the Pythagorean theorem: distance from origin is x2+y2.
- 11
How is the number of lattice points inside a circle related to sums of two squares?
Model answer
Each lattice point corresponds to a way to write an integer n=x2+y2 with 0≤n≤r2.
Explanation
So N(r) equals the number of representations of integers from 0 to r2 as sums of two squares.
- 12
Why is the number of ways to write a positive integer as a sum of two squares always a multiple of 4?
Model answer
Because if (x,y) is a representation, then (±x,±y) are also representations, giving four possibilities from sign changes.
Explanation
This symmetry accounts for reflections in the four quadrants.
- 13
What is the exception to the 'multiple of 4' rule for representations as sums of two squares?
Model answer
The number 0 has only one representation: (0,0).
Explanation
For positive integers, symmetry ensures multiples of 4; zero is the exception.
- 14
Define 'good' and 'bad' odd numbers.
Model answer
Good odd numbers are of the form 4k+1 (e.g., 1,5,9); bad odd numbers are of the form 4k+3 (e.g., 3,7,11).
Explanation
This classification is based on the remainder when dividing by 4, which determines representability as sums of two squares.
- 15
State Jacobi's two-square theorem.
Model answer
The number of ways to write a positive integer n as a sum of two squares is 4 times (the number of good odd factors of n minus the number of bad odd factors of n).
Explanation
This counts representations including order and sign.
- 16
Using Jacobi's theorem, how many ways can 18 be written as a sum of two squares?
Model answer
4 ways.
Explanation
The odd factors of 18 are 1,3,9; good:1,9; bad:3; (2−1)×4=4.
- 17
State Fermat's Christmas theorem.
Model answer
A prime number of the form 4k+1 can be written as a sum of two squares, while a prime of the form 4k+3 cannot.
Explanation
This theorem concerns the representability of primes as sums of two squares.
- 18
Prove the easy half of Fermat's Christmas theorem: that no number of the form 4k+3 can be a sum of two squares.
Model answer
Any square modulo 4 is either 0 or 1, so a sum of two squares modulo 4 can be 0,1, or 2, but never 3.
Explanation
Thus a number congruent to 3 mod 4 cannot be expressed as a sum of two squares.
- 19
State the identity that relates the product of two sums of squares to a sum of squares.
Model answer
(a2+b2)(c2+d2)=(ac−bd)2+(ad+bc)2.
Explanation
This identity, known to the ancient Greeks, shows that the product of two numbers each representable as a sum of two squares is also representable.
- 20
Who first stated Fermat's Christmas theorem?
Model answer
Albert Girard, 15 years before Fermat.
Explanation
Fermat later wrote about it in a letter, leading to the misattribution.
- 21
Who published the first proof of Fermat's Christmas theorem?
Model answer
Euler.
Explanation
Neither Fermat nor Girard provided a proof; Euler was the first to publish one.
- 22
What is the significance of good primes in the context of sums of two squares?
Model answer
Good primes (of the form 4k+1) can be expressed as a sum of two squares, while bad primes (4k+3) cannot.
Explanation
This is the content of Fermat's Christmas theorem.

Ask anything
We've read this whole study set, so questions about it get the best answers.