# Difference between revisions of "Bertrand's postulate"

(Added final part of proof, corrected many small errors) |
|||

Line 1: | Line 1: | ||

− | Despite its name, Bertrand's postulate is | + | Despite its name, Bertrand's postulate is a theorem, not an example of what we'd ordinarily call a postulate in mathematics. Here's what it says: |

'''Theorem (Bertrand's Postulate):''' ''For every integer <math>n \geq 2</math>, there is a prime <math>p</math> satisfying <math>n < p < 2n</math>.'' | '''Theorem (Bertrand's Postulate):''' ''For every integer <math>n \geq 2</math>, there is a prime <math>p</math> satisfying <math>n < p < 2n</math>.'' | ||

− | + | Bertrand's postulate is relevant to the [http://michaelnielsen.org/polymath1/index.php?title=Finding_primes finding primes] problem because it guarantees the existence of a <math>k</math>-digit prime for any <math>k</math>. Brute force search thus yields a <math>k</math>-digit prime after about <math>O(10^k)</math> steps; this can be considered the "trivial bound" for the problem. | |

Bertrand's postulate was apparently first proved by Chebyshev. For large <math>n</math>, the claim follows as a consequence of the prime number theorem. We will give an elementary proof due to Erdos. | Bertrand's postulate was apparently first proved by Chebyshev. For large <math>n</math>, the claim follows as a consequence of the prime number theorem. We will give an elementary proof due to Erdos. | ||

− | Our strategy is to analyse the prime factorization of the binomial coefficient <math>{2n \choose n}</math>. What we'll discover is that for primes <math>p \leq n</math>, the corresponding prime power in the prime factorization of <math>{2n \choose n}</math> is never very big. In fact, we can guarantee that those powers are quite small - much smaller than one might ''a | + | Our strategy is to analyse the prime factorization of the binomial coefficient <math>{2n \choose n}</math>. What we'll discover is that for primes <math>p \leq n</math>, the corresponding prime power in the prime factorization of <math>{2n \choose n}</math> is never very big. In fact, we can guarantee that those powers are quite small - much smaller than what one might ''a priori'' believe could be the case. What we'll find as a consequence is that when we take the product of all the prime powers for <math>p \leq n</math>, the product can't possibly be as big as <math>{2n \choose n}</math>. And that means that there must be primes in the range <math>n < p < 2n</math> which appear in the prime factorization of <math>{2n \choose n}</math>. |

Rather than prove Bertrand's postulate directly, we'll first prove two results of independent interest. The first is a bound on the product of all primes less than <math>n</math>, due to Chebyshev. | Rather than prove Bertrand's postulate directly, we'll first prove two results of independent interest. The first is a bound on the product of all primes less than <math>n</math>, due to Chebyshev. | ||

− | '''Lemma (Chebyshev bound):''' ''For integers <math>n \geq 2</math>, | + | '''Lemma (Chebyshev bound):''' ''For integers <math>n \geq 2</math>, <math>\prod_{p \leq n} p \leq 4^n</math>, where the product is over all primes <math>p</math> less than or equal to <math>n</math>.'' |

− | The Chebyshev bound tells us that primes can't occur too frequently (for example, with constant density) in the positive integers, for if they did, the product of primes on the left would rise much faster than <math>4^n</math>. Although it's not needed for a proof of Bertrand's postulate, | + | The Chebyshev bound tells us that primes can't occur too frequently (for example, with constant density) in the positive integers, for if they did, the product of primes on the left would rise much faster than <math>4^n</math>. Although it's not needed for a proof of Bertrand's postulate, insight can be gained by expressing this idea in a simple quantitative way. Observe that if <math>\pi(n)</math> is the number of primes less than or equal to <math>n</math>, then <math>\pi(n)! \leq \prod_{p \leq n} p</math>, simply because the <math>k</math>th prime must be at least <math>k</math>. Combining this observation with Chebyshev's bound gives <math>\pi(n)! \leq 4^n</math>. Taking logarithms of both sides, and applying [http://en.wikipedia.org/wiki/Stirling's_approximation Stirling's approximation], we see that up to constant factors and small corrections, we have <math>\pi(n) \ln \pi(n) \leq n</math>. This, in turn, implies that, up to constant factors and small corrections, <math>\pi(n) \leq n \ln \ln n / \ln n</math>. Roughly speaking, the prime numbers are at most logarithmically dense in the positive integers. In fact, the [http://en.wikipedia.org/wiki/Prime_number_theorem prime number theorem] tells us that <math>\pi(n) \approx n / \ln n</math>, as <math>n</math> becomes large. |

− | '''Proof of Chebyshev's bound:''' We will induct on <math>n</math>. The case when <math>n=2</math> is obviously true. Furthermore, if we assume the result when <math>n</math> is odd, it follows immediately for <math>n+1</math>, since the left-hand side is not affected by incrementing <math>n</math>. So we | + | '''Proof of Chebyshev's bound:''' We will induct on <math>n</math>. The case when <math>n=2</math> is obviously true. Furthermore, if we assume the result when <math>n</math> is odd, it follows immediately for <math>n+1</math>, since the left-hand side is not affected by incrementing <math>n</math>. So we assume the result is true up to some even number, <math>n = 2m</math>, and try to prove the result for <math>2m+1</math>. What we'll aim to show is that: |

<math> (*) \prod_{m+1 < p \leq 2m+1} p \leq 4^m </math> | <math> (*) \prod_{m+1 < p \leq 2m+1} p \leq 4^m </math> | ||

Line 25: | Line 25: | ||

The proof is completed by noting that <math>{2m+1 \choose m}</math> appears twice in the binomial expansion of <math>(1+1)^{2m+1}</math>, and thus <math>{2m+1 \choose m} \leq 4^m</math>. '''QED''' | The proof is completed by noting that <math>{2m+1 \choose m}</math> appears twice in the binomial expansion of <math>(1+1)^{2m+1}</math>, and thus <math>{2m+1 \choose m} \leq 4^m</math>. '''QED''' | ||

− | There are two main ideas in | + | There are two main ideas in our proof of Chebyshev's bound, and it's worth pausing to appreciate them. The first idea is that there should be a relationship between products of primes and factorials, e.g., |

<math> \prod_{m+1 < p \leq 2m+1} p \leq {2m+1 \choose m}. </math> | <math> \prod_{m+1 < p \leq 2m+1} p \leq {2m+1 \choose m}. </math> | ||

Line 31: | Line 31: | ||

The second is that there should be a relationship between combinatorial coefficients like <math>{2m+1 \choose m}</math> and exponentials with fixed bases, e.g., <math>{2m+1 \choose m} \leq 4^m</math>. Once these two ideas are firmly in mind, the proof of the Chebyshev bound is obvious. | The second is that there should be a relationship between combinatorial coefficients like <math>{2m+1 \choose m}</math> and exponentials with fixed bases, e.g., <math>{2m+1 \choose m} \leq 4^m</math>. Once these two ideas are firmly in mind, the proof of the Chebyshev bound is obvious. | ||

− | The second lemma used in our proof of Bertrand's postulate is a useful fact about the prime factorization of <math>{2n \choose n}</math>, telling us that <math>{2n \choose n}</math> has a rather special prime factorization which only involves low powers. After the main statement of the lemma we will single out two special cases where the proof can be used to make statements that are a little stronger than the main statement. These cases are included explicitly only because they are useful later. Note that although they | + | The second lemma used in our proof of Bertrand's postulate is a useful fact about the prime factorization of <math>{2n \choose n}</math>, telling us that <math>{2n \choose n}</math> has a rather special prime factorization which only involves low powers. After the main statement of the lemma we will single out two special cases where the proof can be used to make statements that are a little stronger than the main statement. These cases are included explicitly only because they are useful later. Note that although they complicate the statement of the lemma somewhat, they are trivial consequences of the proof of the main statement in the lemma. |

− | '''Lemma:''' ''Let <math>p</math> be a prime, and define <math>r(p,n)</math> to be the largest number such that <math>p^{r(p,n)}</math> divides <math>{2n \choose n}</math>. Then <math>p^{r(p,n)} \leq 2n</math>. There are two special cases where we can make stronger statements: (1) | + | '''Lemma:''' ''Let <math>p</math> be a prime, and define <math>r(p,n)</math> to be the largest number such that <math>p^{r(p,n)}</math> divides <math>{2n \choose n}</math>. Then <math>p^{r(p,n)} \leq 2n</math>. There are two special cases where we can make stronger statements: (1) if <math>p > \sqrt{2n}</math>, then <math>r(p,n)</math> is <math>1</math> or <math>0</math>; (2) if <math>2n/3 < p \leq n</math>, then <math>r(p,n) = 0</math>.'' |

− | This lemma contains | + | This lemma contains the essential insight underlying Bertrand's postulate, and that we explained earlier: because we can guarantee that the prime powers are low, <math>{2n \choose n}</math> must have many prime factors. A careful accounting using the Chebyshev bound will show that we simply don't have enough if one of those prime factors isn't in the range <math>n < p < 2n</math>. |

− | '''Proof:''' To prove the lemma, first note that the prime power of <math>p</math> in the factorization of <math>n!</math> is given by <math>\sum_{j=1}^{\infty} \lfloor n / p^j \rfloor</math>. As a result, <math>r(p,n) = \sum_{j=1}^\infty ( \lfloor 2n / p^j \rfloor - 2 \lfloor n / p^j \rfloor)</math>. All terms in this sum are either <math>0</math> or <math>1</math>, and they are always <math>0</math> when <math>j | + | '''Proof:''' To prove the lemma, first note that the prime power of <math>p</math> in the factorization of <math>n!</math> is given by <math>\sum_{j=1}^{\infty} \lfloor n / p^j \rfloor</math>. As a result, <math>r(p,n) = \sum_{j=1}^\infty ( \lfloor 2n / p^j \rfloor - 2 \lfloor n / p^j \rfloor)</math>. All terms in this sum are either <math>0</math> or <math>1</math>, depending on whether <math>\lfloor 2n/p^j \rfloor</math> is even or odd, and they are always <math>0</math> when <math>j > \log_p (2n)</math>, whence <math>r(p,n) \leq \log_p (2n)</math>, which gives the main result. |

− | In the special case of (1), <math>p | + | In the special case of (1), <math>p > \sqrt{2n}</math>, simply observe that all but the first term in the sum vanishes, and so <math>r(p,n) = \lfloor 2n/ p \rfloor - 2 \lfloor n/p \rfloor</math>, which is either <math>0</math> or <math>1</math>, according to whether <math>\lfloor 2n/p \rfloor</math> is even or odd. |

− | In the special case of (2), <math>2n/3 < p \leq n</math>, observe again that | + | In the special case of (2), <math>2n/3 < p \leq n</math>, observe again that all but the first term in the sum vanishes, and so <math>r(p,n) = \lfloor 2n/p \rfloor - 2 \lfloor n/p \rfloor</math>. But for any such value of <math>p</math> we see that <math>\lfloor 2n/p \rfloor</math> is equal to <math>2</math>, which is even, and so <math>r(p,n) = 0</math>. '''QED''' |

The proof of Bertrand's postulate is now straightforward. | The proof of Bertrand's postulate is now straightforward. | ||

− | '''Proof of Bertrand's postulate:''' For a contradiction, suppose there are no primes satisfying <math>n < p < 2n</math>. In light of case (2) of the last lemma, we can assume that all the prime factors in <math>{2n \choose n}</math> satisfy <math>p \leq 2n/3</math>. We split the prime factorizing of <math>{2n \choose n}</math> up into the cases where <math>p | + | '''Proof of Bertrand's postulate:''' For a contradiction, suppose there are no primes satisfying <math>n < p < 2n</math>. In light of case (2) of the last lemma, we can assume that all the prime factors in <math>{2n \choose n}</math> satisfy <math>p \leq 2n/3</math>. We split the prime factorizing of <math>{2n \choose n}</math> up into the cases where <math>p \leq \sqrt{2n}</math> and where <math>\sqrt{2n} < p \leq 2n/3</math>. Applying the last lemma we obtain: |

− | <math> {2n \choose n} \leq \prod_{p | + | <math> {2n \choose n} \leq \prod_{p \leq \sqrt{2n}} (2n) \prod_{\sqrt{2n} < p \leq 2n/3} p </math> |

− | We can bound the first product by noting that there are no more than <math>\sqrt{ | + | We can bound the first product by noting that there are no more than <math>\sqrt{2n}</math> primes of size at most <math>\sqrt{2n}</math>, and bound the second product using Chebyshev's bound: |

− | <math> {2n \choose n} \leq (2n)^{\sqrt | + | <math> {2n \choose n} \leq (2n)^{\sqrt 2n} 4^{2n/3}. </math> |

− | + | Observing that <math>{2n \choose n}</math> is the largest of the <math>2n+1</math> terms in the binomial expansion of <math>(1+1)^{2n}=4^n</math>, we see that | |

+ | |||

+ | <math> \frac{4^n}{2n+1} \leq {2n \choose n} </math> | ||

+ | |||

+ | Combinining the last two inequalities and rearranging a little gives | ||

+ | |||

+ | <math> 4^{n/3} \leq (2n+1)(2n)^{\sqrt 2n}. </math> | ||

+ | |||

+ | The left-hand side rises much faster than the right, and so this inequality can only be true over some finite set of <math>n</math>. It should be straightforward to convince yourself that it fails for <math>n > 2048</math>, for example, and thus we must have <math>n \leq 2048</math>. In fact, we can do quite a bit better than <math>n \leq 2048</math> with a bit more work, but the bound suffices for our purposes. What we have now shown is that our initial assumption - no prime in the range <math>n < p < 2n</math> - can only possibly hold when <math>n \leq 2048</math>. But it's easily seen that the assumption is also false in that range, just by considering the sequence of primes <math>2,3,5,7,13,23,43,83,163,317,631,1259</math>, and <math>2503</math>. Each prime in the sequence is less than twice its predecessor, and so there must be a prime between <math>n</math> and <math>2n</math> for any <math>n \leq 2048</math>. '''QED''' |

## Latest revision as of 05:59, 18 August 2009

Despite its name, Bertrand's postulate is a theorem, not an example of what we'd ordinarily call a postulate in mathematics. Here's what it says:

**Theorem (Bertrand's Postulate):** *For every integer [math]n \geq 2[/math], there is a prime [math]p[/math] satisfying [math]n \lt p \lt 2n[/math].*

Bertrand's postulate is relevant to the finding primes problem because it guarantees the existence of a [math]k[/math]-digit prime for any [math]k[/math]. Brute force search thus yields a [math]k[/math]-digit prime after about [math]O(10^k)[/math] steps; this can be considered the "trivial bound" for the problem.

Bertrand's postulate was apparently first proved by Chebyshev. For large [math]n[/math], the claim follows as a consequence of the prime number theorem. We will give an elementary proof due to Erdos.

Our strategy is to analyse the prime factorization of the binomial coefficient [math]{2n \choose n}[/math]. What we'll discover is that for primes [math]p \leq n[/math], the corresponding prime power in the prime factorization of [math]{2n \choose n}[/math] is never very big. In fact, we can guarantee that those powers are quite small - much smaller than what one might *a priori* believe could be the case. What we'll find as a consequence is that when we take the product of all the prime powers for [math]p \leq n[/math], the product can't possibly be as big as [math]{2n \choose n}[/math]. And that means that there must be primes in the range [math]n \lt p \lt 2n[/math] which appear in the prime factorization of [math]{2n \choose n}[/math].

Rather than prove Bertrand's postulate directly, we'll first prove two results of independent interest. The first is a bound on the product of all primes less than [math]n[/math], due to Chebyshev.

**Lemma (Chebyshev bound):** *For integers [math]n \geq 2[/math], [math]\prod_{p \leq n} p \leq 4^n[/math], where the product is over all primes [math]p[/math] less than or equal to [math]n[/math].*

The Chebyshev bound tells us that primes can't occur too frequently (for example, with constant density) in the positive integers, for if they did, the product of primes on the left would rise much faster than [math]4^n[/math]. Although it's not needed for a proof of Bertrand's postulate, insight can be gained by expressing this idea in a simple quantitative way. Observe that if [math]\pi(n)[/math] is the number of primes less than or equal to [math]n[/math], then [math]\pi(n)! \leq \prod_{p \leq n} p[/math], simply because the [math]k[/math]th prime must be at least [math]k[/math]. Combining this observation with Chebyshev's bound gives [math]\pi(n)! \leq 4^n[/math]. Taking logarithms of both sides, and applying Stirling's approximation, we see that up to constant factors and small corrections, we have [math]\pi(n) \ln \pi(n) \leq n[/math]. This, in turn, implies that, up to constant factors and small corrections, [math]\pi(n) \leq n \ln \ln n / \ln n[/math]. Roughly speaking, the prime numbers are at most logarithmically dense in the positive integers. In fact, the prime number theorem tells us that [math]\pi(n) \approx n / \ln n[/math], as [math]n[/math] becomes large.

**Proof of Chebyshev's bound:** We will induct on [math]n[/math]. The case when [math]n=2[/math] is obviously true. Furthermore, if we assume the result when [math]n[/math] is odd, it follows immediately for [math]n+1[/math], since the left-hand side is not affected by incrementing [math]n[/math]. So we assume the result is true up to some even number, [math]n = 2m[/math], and try to prove the result for [math]2m+1[/math]. What we'll aim to show is that:

[math] (*) \prod_{m+1 \lt p \leq 2m+1} p \leq 4^m [/math]

If we can prove this, then multiplying by the inequality [math]\prod_{p \leq m+1} p \leq 4^{m+1}[/math] (which is true by the inductive hypothesis) will give us the desired result. To prove (*), note that every prime [math]p[/math] satisfying [math]m+1 \lt p \leq 2m+1[/math] must divide [math]{2m+1 \choose m}[/math], since [math]p[/math] appears in the numerator, but not the denominator. Furthermore, the uniqueness of prime factorization means that the product of all such primes must also divide [math]{2m+1 \choose m}[/math], and so we have

[math] \prod_{m+1 \lt p \leq 2m+1} p \leq {2m+1 \choose m}. [/math]

The proof is completed by noting that [math]{2m+1 \choose m}[/math] appears twice in the binomial expansion of [math](1+1)^{2m+1}[/math], and thus [math]{2m+1 \choose m} \leq 4^m[/math]. **QED**

There are two main ideas in our proof of Chebyshev's bound, and it's worth pausing to appreciate them. The first idea is that there should be a relationship between products of primes and factorials, e.g.,

[math] \prod_{m+1 \lt p \leq 2m+1} p \leq {2m+1 \choose m}. [/math]

The second is that there should be a relationship between combinatorial coefficients like [math]{2m+1 \choose m}[/math] and exponentials with fixed bases, e.g., [math]{2m+1 \choose m} \leq 4^m[/math]. Once these two ideas are firmly in mind, the proof of the Chebyshev bound is obvious.

The second lemma used in our proof of Bertrand's postulate is a useful fact about the prime factorization of [math]{2n \choose n}[/math], telling us that [math]{2n \choose n}[/math] has a rather special prime factorization which only involves low powers. After the main statement of the lemma we will single out two special cases where the proof can be used to make statements that are a little stronger than the main statement. These cases are included explicitly only because they are useful later. Note that although they complicate the statement of the lemma somewhat, they are trivial consequences of the proof of the main statement in the lemma.

**Lemma:** *Let [math]p[/math] be a prime, and define [math]r(p,n)[/math] to be the largest number such that [math]p^{r(p,n)}[/math] divides [math]{2n \choose n}[/math]. Then [math]p^{r(p,n)} \leq 2n[/math]. There are two special cases where we can make stronger statements: (1) if [math]p \gt \sqrt{2n}[/math], then [math]r(p,n)[/math] is [math]1[/math] or [math]0[/math]; (2) if [math]2n/3 \lt p \leq n[/math], then [math]r(p,n) = 0[/math].*

This lemma contains the essential insight underlying Bertrand's postulate, and that we explained earlier: because we can guarantee that the prime powers are low, [math]{2n \choose n}[/math] must have many prime factors. A careful accounting using the Chebyshev bound will show that we simply don't have enough if one of those prime factors isn't in the range [math]n \lt p \lt 2n[/math].

**Proof:** To prove the lemma, first note that the prime power of [math]p[/math] in the factorization of [math]n![/math] is given by [math]\sum_{j=1}^{\infty} \lfloor n / p^j \rfloor[/math]. As a result, [math]r(p,n) = \sum_{j=1}^\infty ( \lfloor 2n / p^j \rfloor - 2 \lfloor n / p^j \rfloor)[/math]. All terms in this sum are either [math]0[/math] or [math]1[/math], depending on whether [math]\lfloor 2n/p^j \rfloor[/math] is even or odd, and they are always [math]0[/math] when [math]j \gt \log_p (2n)[/math], whence [math]r(p,n) \leq \log_p (2n)[/math], which gives the main result.

In the special case of (1), [math]p \gt \sqrt{2n}[/math], simply observe that all but the first term in the sum vanishes, and so [math]r(p,n) = \lfloor 2n/ p \rfloor - 2 \lfloor n/p \rfloor[/math], which is either [math]0[/math] or [math]1[/math], according to whether [math]\lfloor 2n/p \rfloor[/math] is even or odd.

In the special case of (2), [math]2n/3 \lt p \leq n[/math], observe again that all but the first term in the sum vanishes, and so [math]r(p,n) = \lfloor 2n/p \rfloor - 2 \lfloor n/p \rfloor[/math]. But for any such value of [math]p[/math] we see that [math]\lfloor 2n/p \rfloor[/math] is equal to [math]2[/math], which is even, and so [math]r(p,n) = 0[/math]. **QED**

The proof of Bertrand's postulate is now straightforward.

**Proof of Bertrand's postulate:** For a contradiction, suppose there are no primes satisfying [math]n \lt p \lt 2n[/math]. In light of case (2) of the last lemma, we can assume that all the prime factors in [math]{2n \choose n}[/math] satisfy [math]p \leq 2n/3[/math]. We split the prime factorizing of [math]{2n \choose n}[/math] up into the cases where [math]p \leq \sqrt{2n}[/math] and where [math]\sqrt{2n} \lt p \leq 2n/3[/math]. Applying the last lemma we obtain:

[math] {2n \choose n} \leq \prod_{p \leq \sqrt{2n}} (2n) \prod_{\sqrt{2n} \lt p \leq 2n/3} p [/math]

We can bound the first product by noting that there are no more than [math]\sqrt{2n}[/math] primes of size at most [math]\sqrt{2n}[/math], and bound the second product using Chebyshev's bound:

[math] {2n \choose n} \leq (2n)^{\sqrt 2n} 4^{2n/3}. [/math]

Observing that [math]{2n \choose n}[/math] is the largest of the [math]2n+1[/math] terms in the binomial expansion of [math](1+1)^{2n}=4^n[/math], we see that

[math] \frac{4^n}{2n+1} \leq {2n \choose n} [/math]

Combinining the last two inequalities and rearranging a little gives

[math] 4^{n/3} \leq (2n+1)(2n)^{\sqrt 2n}. [/math]

The left-hand side rises much faster than the right, and so this inequality can only be true over some finite set of [math]n[/math]. It should be straightforward to convince yourself that it fails for [math]n \gt 2048[/math], for example, and thus we must have [math]n \leq 2048[/math]. In fact, we can do quite a bit better than [math]n \leq 2048[/math] with a bit more work, but the bound suffices for our purposes. What we have now shown is that our initial assumption - no prime in the range [math]n \lt p \lt 2n[/math] - can only possibly hold when [math]n \leq 2048[/math]. But it's easily seen that the assumption is also false in that range, just by considering the sequence of primes [math]2,3,5,7,13,23,43,83,163,317,631,1259[/math], and [math]2503[/math]. Each prime in the sequence is less than twice its predecessor, and so there must be a prime between [math]n[/math] and [math]2n[/math] for any [math]n \leq 2048[/math]. **QED**