质数的无穷性和相关问题

Before this, know回顾:质数是什么?

Interactive · 1 question

Infinitude of Primes: Famous Proof of Euclid

There are many proofs of there being infinitely many primes. The most famous one is Euclid's proof, which uses the technique of proof by contradiction. It goes as follows.

Suppose that there are only finitely many primes, and they are p1,p2,…,pnp_1, p_2, \ldots, p_n. These nn primes are arranged in increasing order.

Now consider the number N=p1p2⋯pn+1N = p_1p_2\cdots p_n + 1. By our assumption, NN is not a prime. There must be a prime number pp so that p∣Np \mid N. Since for all 1≤i≤n1 \le i \le n, obviously pi∣p1p2⋯pnp_i \mid p_1p_2 \cdots p_n, but pi∤1p_i \nmid 1, so pi∤Np_i \nmid N. In other words, none of the primes in our assumed finite set divide NN. Therefore, there must exist another prime pn+1p_{n+1} not in our original set such that pn+1∣Np_{n+1} \mid N, contradicting our original assumption that there were finitely many primes. In conclusion, there are infinitely many primes.

Is it always true that if you take the first nn primes, multiply them together, and add 1, you always get a prime number?

Choose one answer

Interactive · 1 question

Infinitude of Primes: Goldbach's Proof

You're probably aware by now that there are infinitely many primes. You've also probably heard of Euclid's proof of infinitude of primes. In short, Euclid's proof basically tells you that given a finite set of prime numbers, it is possible to generate another prime number that is not in that set. So a finite set can not contain all the prime numbers.

In this article, we'll see another proof that there are infinitely many prime numbers. But before that, we need to know what it means for two numbers to be coprime to each other. This proof is due to Goldbach, which was written to Euler in 17301730.

Do you know what it means when people say aa and bb are two coprime integers?

Choose one answer

Read · 1 min

Infinitude of Primes: Saidak's Proof

We've already seen a couple of proofs of the infinitude of prime numbers. In this article we'll go through another one. What makes this proof special is its sheer simplicity. This proof is due to Filip Saidak.

If you've read this post, then you know that one way to prove the infinitude of primes is to somehow generate infinitely many numbers that are all coprime to one another. We used Fermat numbers in that proof.

But to find infinitely many such numbers, one doesn't have to look that far.

Two consecutive positive integers are always coprime to each other. In other words, if nn is a positive integer, then nn and n+1n+1 are coprime.

Now consider the number N2=n(n+1)N_2=n(n+1). If n>1n>1, N2N_2 has at least two prime factors.

Why? Remember that nn and n+1n+1 are coprime. So nn has a prime factor that does not divide n+1n+1. Similarly, n+1n+1 has a prime factor that does not divide nn. That means their product, N2N_2 has to have at least two distinct prime factors.

Now consider the numbers N2N_2 and N2+1N_2+1. They are coprime to each other. So, their product, N3=N2(N2+1)N_3=N_2(N_2+1) has to have at least three distinct prime factors.

Do you see where we're going with this? We can keep doing this indefinitely and generate a number that has as many distinct prime factors as we want it to have. The conclusion: there are infinitely many primes.

This is the sort of proof that makes you go, "Why didn't I think of that?" The surprising thing is no one did think of it until recently. This is a relatively "recent" proof and was published in 2005.

So simple, yet no one thought of it for that many years!

Interactive · 2 questions

Infinitude of Primes: A Combinatorial Proof by Perott

The proof is due to Perott, which dates back to almost 1801−19001801-1900.

Up to 100100, how many numbers are divisibe by 33? Note that, the answer is 3333 because 33⋅3=9933\cdot3=99 and 34⋅3=102>334\cdot3=102>3. Using Floor function, we can say that this is ⌊1003⌋\left\lfloor\frac{100}3\right\rfloor.

A natural number is called square-free if it is not divisible by any square greater than 11. So, 33 and 3030 are square-free whereas 44 is not. We can state this another way. A number is square-free if and only if it is divisible by p2p^2 for a prime pp.

What is the number of numbers divisible by p2p^2?

Choose one answer

Read · 2 min

Infinitude of Primes: Euler's Proof

We have already seen the ways Euclid, Kummer and Goldbach used to prove that there are infinitely many primes. It would be odd to leave out Euler (one of my most favorite mathematicians).

Euler investigated the sum (which is known as Harmonic Series):

S=11+12+…+1n+…∞S=\dfrac11+\dfrac12+\ldots+\dfrac1n+\ldots\infty

Consider the sum in terms of prime factorization.

Obviously, 1,12,122,…1,\dfrac12,\dfrac1{2^2},\ldots are part of the series. So are 13,132,…\dfrac13,\dfrac1{3^2},\ldots and 15,152\dfrac15,\dfrac1{5^2} and so

on. If you understood the fact we showed above, note that 12⋅13\dfrac12\cdot\dfrac13 gives 16\dfrac16. Similarly, 122⋅13=112\dfrac1{2^2}\cdot\dfrac13=\dfrac1{12} and 13⋅15=115\dfrac13\cdot\dfrac15=\dfrac1{15} and so on.

We know that, any number can be written as a product of primes in a unique way. Therefore, when we are multiplying some powers of primes, we will get a unique number. In other words, the same number won't appear twice. Now, notice the following sum:

\begin{eqnarray*} & & \left(1+\dfrac12+\dfrac1{2^2}+\ldots\right)\cdot\left(1+\dfrac13+\dfrac1{3^2}+\ldots\right)\newline & = & 1+\dfrac12+\dfrac1{2^2}+\dfrac13+\dfrac1{2\cdot3}+\dfrac1{2^2\cdot3}+\dfrac1{3^2}+\dfrac1{2\cdot3^2}+\dfrac1{2^2\cdot3^2}+\ldots\newline & = & 1+\dfrac12+\dfrac14+\dfrac13+\dfrac16+\dfrac1{12}+\dfrac19+\dfrac1{18}+\dfrac1{36}+\ldots \end{eqnarray*} Unique prime factorization guranatees that none of 2,4,62,4,6 or 1818 will appear anywhere in the series again. That is, any number of the form 2i3j2^i3^j will appear exactly in this series. Similarly, if we considered all the numbers generated by 2i3j5k2^i3^j5^k, we would have numbers like 30,6030, 60 or 9090 exactly once in the series. So, going this way, we can see that the sum SS is nothing but the product of 1+1p+1p2+…1+\dfrac1p+\dfrac1{p^2}+\ldots for all prime pp.

\begin{eqnarray*} S & = & 1+\dfrac12+\dfrac13+\dfrac14+\ldots\newline & = & \left(1+\dfrac12+\dfrac1{2^2}+\ldots\right)\cdot\left(1+\dfrac13+\dfrac1{3^2}+\ldots\right)\cdot\left(1+\dfrac15+\dfrac1{5^2}+\ldots\right)\newline & = & \prod_{p\in\mathbb P}1+\dfrac1p+\dfrac1{p^2}+\ldots \end{eqnarray*} where P\mathbb P is the set of primes. The infinite geometric series 1+r+r2+…1+r+r^2+\ldots where the ratio rr is such that ∣r∣<1|r|<1, has a finite sum 11−r\dfrac1{1-r}. Here, r=1p<1r=\dfrac1p<1 of-course. Therefore, we can say that

1+1p+1p2+…=11−1p=pp−11+\dfrac1p+\dfrac1{p^2}+\ldots=\dfrac1{1-\frac1p}=\dfrac p{p-1}

This means that,

S=1+12+13+…=∏p∈Ppp−1S = 1+\dfrac12+\dfrac13+\ldots=\prod_{p\in\mathbb P}\dfrac p{p-1}

Our intuition says that, SS is infinite, though we can't gurantee that without proving it first. In the post Harmonic series diverges it is already proved that SS is infinite. A series diverges if it has an infinite sum. If the number of primes is finite, then the product of pp−1\dfrac p{p-1} would be finite too. But it gives us a contradiction. Thus, the number of primes must be infinite.

This proof should tell you how great Euler's insight was! May be you will understand why Euler is one of the most favorite mathematicians of the author.

Read · 1 min

Infinitude of Primes: A Proof by Schorn

Yet another proof of infinitude of primes. I wanted to write it because it is as elegant as the other ones we saw earlier. We will use Euclidean Algorithm to find greatest common divisor.

Schorn's idea was basically a revision of Goldbach's idea, which is described in this post. First we will prove the following: gcd⁡(j(n!)+1,i(n!)+1)=1\gcd(j(n!)+1,i(n!)+1)=1 for 1≤i<j<n+11\leq i<j<n+1. We can write j=i+kj=i+k, so 1≤k<n1\leq k<n. Thus,

\begin{eqnarray*} \gcd(n!(i+k)+1,i(n!)+1) & = & \gcd(i(n!)+1+n!k,i(n!)+1)\newline & = & \gcd(n!k,i(n!)+1) \end{eqnarray*} from Euclidean algorithm after subtraction. We also know that if gcd⁡(a,b)=1\gcd(a,b)=1 then gcd⁡(a,bc)=gcd⁡(a,c)\gcd(a,bc)=\gcd(a,c). Clearly gcd⁡(n!,i(n!)+1)=1\gcd(n!,i(n!)+1)=1 since i(n!)+1i(n!)+1 leaves a remainder of 11 when divided by n!n!. Therefore, \begin{eqnarray*} \gcd(n!(i+k)+1,i(n!)+1) & = & \gcd(n!k,i(n!)+1)\newline & = & \gcd(k,i(n!)+1) \end{eqnarray*} Since k<nk<n, we also have that kk divides n!n!, so i(n!)+1i(n!)+1 leaves a remainder of 11 when divided by kk too. Finally, we have \begin{eqnarray*} \gcd(n!(i+k)+1,i(n!)+1) & = & \gcd(k,i(n!)+1) = 1 \end{eqnarray*} From this we can say, the integers n!i+1n!i+1 for 1≤i≤n1\leq i\leq n are co-prime. And so, we are done.

Read · 1 min

Infinitude of Primes: Yet Another Proof

We hope, you aren't getting bored of so many proofs of the same theorem. Here is another one I couldn't help sharing. This elegant proof is due to J. Braun (18961896).

Take the primes p1,…,pkp_1,\ldots,p_k, P=p1⋯pkP=p_1\cdots p_k and set

1p1+…+1pk=aP\dfrac1{p_1}+\ldots+\dfrac1{p_k}=\dfrac a{P}

Note that, aP>12+13+15=3130>1\dfrac aP>\dfrac12+\dfrac13+\dfrac15=\dfrac{31}{30}>1 So a>Pa>P, and thus, aa has a prime divisor pp. So pp must divide PP, if it is not a new prime.

a=Pp1+…+Pp+…+Ppka=\dfrac P{p_1}+\ldots+\dfrac Pp+\ldots+\dfrac P{p_k}

Obviously, pp divides Pq\frac Pq if p≠qp\neq q. Therefore, we have pp divides Pp\dfrac Pp, since pp divides aa and Pq\frac Pq for all other primes qq. But then the equation gives that pp divides Pp\frac Pp, a contradiction! W5W^5.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems