Prime number/Citable Version: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Fredrik Johansson
m (indent formulas)
imported>Jitse Niesen
(→‎Unique Factorization: a bit more explicit and connect with the two definitions)
Line 1: Line 1:
A '''prime number''' is a whole number (i.e., one having no fractional or decimal part) that cannot be evenly [[divisor|divided]] by any numbers but 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, 13, and 17. With the exception of <math>2</math>, all prime numbers are [[odd]] numbers, but not every odd number is prime. For example, <math>9 = 3\cdot3</math> and <math>15 = 3\cdot5</math>, so neither 9 nor 15 is prime. The study of prime numbers has a long history, going back to ancient times, and it remains an active part of [[number theory]] (a branch of [[mathematics]]) today. It is commonly believed that the study of prime numbers is an interesting, but not terribly useful, area of mathematical research.  While this used to be the case, the theory of prime numbers has important applications now. Understanding properties of prime numbers and their generalizations  is essential to modern [[cryptography]], and to [[public key cipher]]s that are crucial to Internet commerce, wireless networks and, of course, military applications. Less well known is that other computer algorithms also depend on properties of prime numbers.  
A '''prime number''' is a whole number (i.e., one having no fractional or decimal part) that cannot be evenly [[divisor|divided]] by any numbers but 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, 13, and 17. With the exception of <math>2</math>, all prime numbers are [[odd]] numbers, but not every odd number is prime. For example, <math>9 = 3\cdot3</math> and <math>15 = 3\cdot5</math>, so neither 9 nor 15 is prime. The study of prime numbers has a long history, going back to ancient times, and it remains an active part of [[number theory]] (a branch of [[mathematics]]) today. It is commonly believed that the study of prime numbers is an interesting, but not terribly useful, area of mathematical research.  While this used to be the case, the theory of prime numbers has important applications now. Understanding properties of prime numbers and their generalizations  is essential to modern [[cryptography]], and to [[public key cipher]]s that are crucial to Internet commerce, wireless networks and, of course, military applications. Less well known is that other computer algorithms also depend on properties of prime numbers.  
==Definition==
==Definition==


Line 7: Line 8:
There is another way of defining prime numbers, and that is that a number is prime if whenever it divides the product of two numbers, it must divide one of those numbers. A nonexample (if you will) is that 4 divides 12, but 4 does not divide 2 and 4 does not divide 6 even though 12 is 2 times 6. This means that 4 is ''not'' a prime number. We may express this second possible definition in symbols (a phrase commonly used to mean "in mathematical notation") as follows: A number <math>p \in \mathbb{N}</math> is prime if for any <math>a, b \in \mathbb{N}</math> such that <math>p | ab</math> (read ''p'' divides ''ab''), either <math>p | a</math> or <math>p | b</math>. If the first characterization of prime numbers is taken as the [[definition]], the second is derived from it as a [[theorem]], and ''vice versa''.
There is another way of defining prime numbers, and that is that a number is prime if whenever it divides the product of two numbers, it must divide one of those numbers. A nonexample (if you will) is that 4 divides 12, but 4 does not divide 2 and 4 does not divide 6 even though 12 is 2 times 6. This means that 4 is ''not'' a prime number. We may express this second possible definition in symbols (a phrase commonly used to mean "in mathematical notation") as follows: A number <math>p \in \mathbb{N}</math> is prime if for any <math>a, b \in \mathbb{N}</math> such that <math>p | ab</math> (read ''p'' divides ''ab''), either <math>p | a</math> or <math>p | b</math>. If the first characterization of prime numbers is taken as the [[definition]], the second is derived from it as a [[theorem]], and ''vice versa''.


:'''Aside on mathematical notation''': The second sentence above is a translation of the first into [[mathematical notation]]. It may seem difficult at first (perhaps even a form of obfuscation!), but [[mathematics]] relies on precise reasoning, and mathematical notation has proved to be a valuable, if not indispensible, aid to the study of mathematics. It is commonly noted while ancient [[Greek mathematics|Greek mathematicians]] hd a good understanding of prime numbers, and indeed [[Euclid]] was able to show that there are infinitely many prime numbers, the study of prime numbers (and algebra in general) was hampered by the lack of a good notation, and this is one reason ancient Greek mathematics (or mathematicians) excelled in geometry, making comparatively less progress in algebra and number theory.
:'''Aside on mathematical notation''': The second sentence above is a translation of the first into [[mathematical notation]]. It may seem difficult at first (perhaps even a form of obfuscation!), but [[mathematics]] relies on precise reasoning, and mathematical notation has proved to be a valuable, if not indispensible, aid to the study of mathematics. It is commonly noted while ancient [[Greek mathematics|Greek mathematicians]] had a good understanding of prime numbers, and indeed [[Euclid]] was able to show that there are infinitely many prime numbers, the study of prime numbers (and algebra in general) was hampered by the lack of a good notation, and this is one reason ancient Greek mathematics (or mathematicians) excelled in geometry, making comparatively less progress in algebra and number theory.


==Unique Factorization==
==Unique Factorization==
Line 17: Line 18:
We may now use a technique known as [[mathematical induction]] to show that the two prime decompositions are really the ''same''.
We may now use a technique known as [[mathematical induction]] to show that the two prime decompositions are really the ''same''.


Given any prime divisor of ''N'' (call it ''p''), we know that
Consider the prime factor <math>p_1</math>. We know that


:<math>p | p_1 p_2 \cdots p_m</math>
:<math>p_1 \mid q_1 q_2 \cdots q_n.</math>
 
and


:<math>p | q_1 q_2 \cdots q_n</math>
Using the second definition of prime numbers, it follows that <math>p_1</math> divides one of the ''q''-factors, say <math>q_i</math>. Using the first definition, <math>p_1</math> is in fact equal to <math>q_i</math>


Because ''p'' is prime, we know there are integers ''i'' and ''j'' such that <math>p | p_i</math> and <math>p | q_j</math>. On the other hand, since <math>p_i</math> and <math>q_j</math> are prime, it must be that p is ''equal'' to <math>p_i</math> and to <math>q_j</math>. This means that if we set <math>N_1 = N/p</math>, we may write
Now, if we set <math>N_1 = N/p_1</math>, we may write


:<math>N_1 = p_1 p_2 \cdots \hat{p_i} \cdots p_m</math>
:<math>N_1 = p_2 p_3 \cdots p_m</math>


and
and


:<math>N_1 = q_1 q_2 \cdots \hat{q_j} \cdots q_n</math>
:<math>N_1 = q_1 q_2 \cdots \hat{q}_i \cdots q_n</math>


where the circumflex ("hat symbol") indicates that <math>p = p_i = q_j</math> is ''not'' part of the prime factorization of <math>N_1</math>
where the circumflex ("hat symbol") indicates that <math>q_i</math> is ''not'' part of the prime factorization of <math>N_1</math>.


Continuing this way, we obtain a sequence of numbers <math>N = N_0 > N_1 > N_2 > \ldots > N_n = 1</math> where each <math>N_{\alpha}</math> is obtained by dividing <math>N_{\alpha - 1}</math> by a prime factor. In particular, we see that <math>m = n</math> and that there is some permutation ("rearrangement") of the indices <math>1, 2, \ldots n</math> such that <math>p_i = q_{\sigma(i)}</math>. Said differently, the two factorizations of ''N'' must be the same up to a possible rearrangment of terms.
Continuing this way, we obtain a sequence of numbers <math>N = N_0 > N_1 > N_2 > \ldots > N_n = 1</math> where each <math>N_{\alpha}</math> is obtained by dividing <math>N_{\alpha - 1}</math> by a prime factor. In particular, we see that <math>m = n</math> and that there is some permutation ("rearrangement") &sigma; of the indices <math>1, 2, \ldots n</math> such that <math>p_i = q_{\sigma(i)}</math>. Said differently, the two factorizations of ''N'' must be the same up to a possible rearrangement of terms.


==There are infinitely many primes==
==There are infinitely many primes==

Revision as of 08:47, 6 April 2007

A prime number is a whole number (i.e., one having no fractional or decimal part) that cannot be evenly divided by any numbers but 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, 13, and 17. With the exception of , all prime numbers are odd numbers, but not every odd number is prime. For example, and , so neither 9 nor 15 is prime. The study of prime numbers has a long history, going back to ancient times, and it remains an active part of number theory (a branch of mathematics) today. It is commonly believed that the study of prime numbers is an interesting, but not terribly useful, area of mathematical research. While this used to be the case, the theory of prime numbers has important applications now. Understanding properties of prime numbers and their generalizations is essential to modern cryptography, and to public key ciphers that are crucial to Internet commerce, wireless networks and, of course, military applications. Less well known is that other computer algorithms also depend on properties of prime numbers.

Definition

Prime numbers are usually defined to be positive integers (other than 1) with the property that they are only (evenly) divisible by 1 and themselves. In other words, a number is said to be prime if there are exactly two such that , namely and .


There is another way of defining prime numbers, and that is that a number is prime if whenever it divides the product of two numbers, it must divide one of those numbers. A nonexample (if you will) is that 4 divides 12, but 4 does not divide 2 and 4 does not divide 6 even though 12 is 2 times 6. This means that 4 is not a prime number. We may express this second possible definition in symbols (a phrase commonly used to mean "in mathematical notation") as follows: A number is prime if for any such that (read p divides ab), either or . If the first characterization of prime numbers is taken as the definition, the second is derived from it as a theorem, and vice versa.

Aside on mathematical notation: The second sentence above is a translation of the first into mathematical notation. It may seem difficult at first (perhaps even a form of obfuscation!), but mathematics relies on precise reasoning, and mathematical notation has proved to be a valuable, if not indispensible, aid to the study of mathematics. It is commonly noted while ancient Greek mathematicians had a good understanding of prime numbers, and indeed Euclid was able to show that there are infinitely many prime numbers, the study of prime numbers (and algebra in general) was hampered by the lack of a good notation, and this is one reason ancient Greek mathematics (or mathematicians) excelled in geometry, making comparatively less progress in algebra and number theory.

Unique Factorization

Every integer N > 1 can be written in a unique way as a product of prime factors, up to reordering. to see why this is true, assume that N can be written as a product of prime factors in two ways

We may now use a technique known as mathematical induction to show that the two prime decompositions are really the same.

Consider the prime factor . We know that

Using the second definition of prime numbers, it follows that divides one of the q-factors, say . Using the first definition, is in fact equal to

Now, if we set , we may write

and

where the circumflex ("hat symbol") indicates that is not part of the prime factorization of .

Continuing this way, we obtain a sequence of numbers where each is obtained by dividing by a prime factor. In particular, we see that and that there is some permutation ("rearrangement") σ of the indices such that . Said differently, the two factorizations of N must be the same up to a possible rearrangement of terms.

There are infinitely many primes

One basic fact about the prime numbers is that there are infinitely man of them. In other words, the list of prime numbers 2, 3, 5, 7, 11, 13, 17, ... doesn't ever stop. There are a number of ways of showing that this is so, but one of the oldest and most familiar proofs goes back go Euclid.

Euclid's Proof

Suppose the set of prime numbers is finite, say , and let

then for each we know that (because the remainder is 1). This means that N is not divisible by an prime, which is impossible. This contradiction shows that our assumption that there must only be a finite number of primes must have been wrong and thus proves the theorem.

Euler's Proof

The Swiss mathematician Leonhard Euler showed how the existence of infinitely many primes could be demostrated using a rather different approach. The starting point is the fact that the harmonic series

diverges. That is, for any , we can choose n such that

A second fact we will need about infinite series is that if

Now, unique factorization gives us

where the sum on the left is the harmonic series, and the product on the right is extended over all primes p. Now, if there are only finitely many primes, the product on the right has a (finite) value, but the harmonic series (the sum on the left) diverges. This shows that there must be infinitely many primes, after all.

Remark: One might well wonder what point there is in offering multiple proofs of the same result. After all, isn't one enough? In mathematics, the point of writing a proof is not so much to establish that something is true, but to understand why it is true. Euclid's proof is purely algebraic, and ultimately depends on the fact that prime numbers can be characterized in two different ways. Euler's proof, on the other hand, makes use of a couple of facts about infinite series combined with the unique factorization property establishe above. What is interesting is that these two proofs (and there are many others) use ideas from very different parts of mathematics to arrive at the same result. One has the feeling that this is evidence of particularly deep interconnections between different parts of mathematics.