up | next | prev | ptail | tail |
Let be any positive integer and let
(A) |
be the set of positive integers not greater than and prime to . Let be any integer prime to and form the set of integers
(B) |
No number of the set (B) is congruent to a number , unless for, from
we have ; whence since both and are positive and not greater than . Therefore . Furthermore, every number of the set (B) is congruent to some number of the set (A). Hence we have congruences of the form
No two numbers in the second members are equal, since unless . Hence the numbers are the numbers in some order. Therefore, if we multiply the above system of congruences together member by member and divide each member of the resulting congruence by (which is prime to ), we have
This result is known as Fermat’s general theorem. It may be stated as follows:
If is any positive integer and is any integer prime to , then
COROLLARY 1. If is any integer not divisible by a prime number , then
COROLLARY 2. If is any prime number and is any integer, then
The theorem of Cor. 1, § 4.1, is often spoken of as the simple Fermat theorem. It was first announced by Fermat in 1679, but without proof. The first proof of it was given by Euler in 1736. This proof may be stated as follows:
From the Binomial Theorem it follows readily that
since
is obviously divisible by . Subtracting from each side of the foregoing congruence, we have
Hence if is divisible by , so is . But is divisible by . Hence is divisible by ; and then ; and so on. Therefore, in general, we have
If is prime to this gives , as was to be proved.
If instead of the Binomial Theorem one employs the Polynomial Theorem, an even simpler proof is obtained. For, from the latter theorem, we have readily
Putting we have
from which the theorem follows as before.
From the simple Fermat theorem it follows that the congruence
has the solutions , , , , . Hence from the discussion in §3.4 it follows that
this relation being satisfied for every value of . Putting we have
If is an odd prime this leads to the congruence
Now for this congruence is evidently satisfied. Hence we have the Wilson theorem:
Every prime number satisfies the relation
An interesting proof of this theorem on wholly different principles may be given. Let points be distributed at equal intervals on the circumference of a circle. The whole number of -gons which can be formed by joining up these points in every possible order is evidently
for the first vertex can be chosen in ways, the second in ways, , the in two ways, and the last in one way; and in counting up thus we have evidently counted each polygon times, once for each vertex and for each direction from the vertex around the polygon. Of the total number of polygons are regular (convex or stellated) so that a revolution through brings each of these into coincidence with its former position. The number of remaining -gons must be divisible by ; for with each such -gon we may associate the -gons which can be obtained from it by rotating it through successive angles of . That is,
Hence
and from this it follows that
as was to be proved.
Wilson’s theorem is noteworthy in that its converse is also true. The converse may be stated as follows:
Every integer such that the congruence
is satisfied is a prime number.
For, if is not prime, there is some divisor of different from and less than . For such a we have ; so that ; and hence . Since this contradicts our hypothesis the truth of the theorem follows.
Wilson’s theorem and its converse may be combined into the following elegant theorem:
A necessary and sufficient condition that an integer is prime is that
Theoretically this furnishes a complete and elegant test as to whether a given number is prime. But, practically, the labor of applying it is so great that it is useless for verifying large primes.
In this section we shall prove the following theorem:
There exists no integer for which the equation
is true when is greater than .
If contains a divisor different from and , the equation is obviously false; for the second member is divisible by while the first is not. Hence we need to prove the theorem only for primes .
Transposing to the second member and dividing by we have
If the product on the left contains both the factor and the factor ; that is, the first member contains the factor . But the second member does not contain this factor, since for the expression is equal to . Hence the theorem follows at once.
The object of this section is to extend Fermat’s general theorem and incidentally to give a new proof of it. We shall base this proof on the simple Fermat theorem, of which we have already given a simple independent proof. This theorem asserts that for every prime and integer not divisible by , we have the congruence
Then let us write
(1) |
Raising each member of this equation to the power we may write the result in the form
(2) |
where is an integer. Hence
By raising each member of (2) to the power we can readily show that
It is now easy to see that we shall have in general
where is a positive integer; that is,
For the special case when is 2 this result can be extended. For this case (1) becomes
Squaring we have
Hence,
(3) |
where is an integer. Therefore
Squaring (3) we have
or
It is now easy to see that we shall have in general
if . That is,
(4.1) |
Now in terms of the -function let us define a new function as follows:
where is the least common multiple of
Denote by the number
Let be any number prime to . From our preceding results we have
Now any one of these congruences remains true if both of its members are raised to the same positive integral power, whatever that power may be. Then let us raise both members of the first congruence to the power ; both members of the second congruence to the power ; ; both members of the last congruence to the power . Then we have
From these congruences we have immediately
We may state this result in full in the following theorem:
If and are any two relatively prime positive integers, the congruence
is satisfied.
As an excellent example to show the possible difference between the exponent in this theorem and the exponent in Fermat’s general theorem, let us take
Here
In a later chapter we shall show that there is no exponent less than for which the congruence
is verified for every integer prime to .
From our theorem, as stated above, Fermat’s general theorem follows as a corollary, since is obviously a factor of ,
EXERCISES
for every a prime to . (Compare this problem with the next section.)
The fact that the converse of Wilson’s theorem is a true proposition leads one naturally to inquire whether the converse of Fermat’s simple theorem is true. Thus, we may ask the question: Does the existence of the congruence require that be a prime number? The Chinese answered this question in the affirmative and the answer passed unchallenged among them for many years. An example is sufficient to show that the theorem is not true. We shall show that
although , is not a prime number. Now . Hence . Hence . From this it follows that the direct converse of Fermat’s theorem is not true. The following theorem, however, which is a converse with an extended hypothesis, is readily proved.
If there exists an integer such that
and if further there does not exist an integer less than such that
then the integer is a prime number.
For, if is not prime, . Then for we have , contrary to the hypothesis of the theorem.
The theorems of the present chapter afford us a ready means of writing down a solution of the congruence
(1) |
We shall consider only the case in which and are relatively prime, since the general case is easily reducible to this one, as we saw in the preceding chapter.
Since and are relatively prime we have the congruences
Hence either of the numbers ,
is a representative of the solution of (1). Hence the following theorem:
If
is any linear congruence in which and are relatively prime, then either of the numbers ,
is a representative of the solution of the congruence.
The former representative of the solution is the more convenient of the two, since the power of is in general much less in this case than in the other.
EXERCISE
In this section we shall apply the preceding results of this chapter to the problem of finding the solutions of congruences of the form
where are integers. These are called quadratic congruences.
The problem of the solution of the quadratic congruence (1) can be reduced to that of the solution of a simpler form of congruence as follows: Congruence (1) is evidently equivalent to the congruence
(1) |
But this may be written in the form
Now if we put
(2) |
and
we have
(3) |
We have thus reduced the problem of solving the general congruence (1) to that of solving the binomial congruence (3) and the linear congruence (2). The solution of the latter may be effected by means of the results of §4.8. We shall therefore confine ourselves now to a study of congruence (3). We shall make a further limitation by assuming that and are relatively prime, since it is obvious that the more general case is readily reducible to this one.
The example
shows at once that the congruence (3) does not always have a solution. First of all, then, it is necessary to find out in what cases (3) has a solution. Before taking up the question it will be convenient to introduce some definitions.
DEFINITIONS. An integer is said to be a quadratic residue modulo or a quadratic non-residue modulo according as the congruence
has or has not a solution. We shall confine our attention to the case when .
We shall now prove the following theorem:
I. If and are relatively prime integers, a necessary condition that is a quadratic residue modulo is that
Suppose that the congruence has the solution . Then . Hence
Since is prime to it is clear from that is prime to . Hence . Therefore we have
That is, this is a necessary condition in order that shall be a quadratic residue modulo .
In a similar way one may prove the following theorem:
II. If and are relatively prime integers, a necessary condition that is a quadratic residue modulo is that
When is a prime number each of the above results takes the following form: If is prime to and is a quadratic residue modulo , then
We shall now prove the following more complete theorem, without the use of I or II.
III. If is an odd prime number and is an integer not divisible by , then is a quadratic residue or a quadratic non-residue modulo according as
This is called Euler’s criterion.
Given a number , not divisible by , we have to determine whether or not the congruence
has a solution. Let be any number of the set
(A) |
and consider the congruence
(4.2) |
This has always one and just one solution equal to a number of the set (A). Two cases can arise: either for every of the set (A) the corresponding is different from or for some of the set (A) the corresponding is equal to . The former is the case when is a quadratic non-residue modulo ; the latter is the case when is a quadratic residue modulo . We consider the two cases separately.
In the first case the numbers of the set (A) go in pairs such that the product of the numbers in the pair is congruent to a modulo . Hence, taking the product of all pairs, we have
But
Hence
whence the truth of one part of the theorem.
In the other case, namely that in which some and corresponding are equal, we have for this
and
Since has at most two solutions it follows that all the integers in the set (A) except and fall in pairs such that the product of the numbers in each pair is congruent to a modulo . Hence, taking the product of all these pairs, which are in number, and multiplying by we have
Since we have
whence the truth of another part of the theorem.
Thus the proof of the entire theorem is complete.
up | next | prev | ptail | top |