Translation:Disquisitiones Arithmeticae/Third Section

Disquisitiones Arithmeticae (1801)
by Carl Friedrich Gauss, translated from Latin by Wikisource
4424909Disquisitiones Arithmeticae1801Carl Friedrich Gauss


On Residues of Powers

Article 45 edit

The residues of the terms of a geometric progression starting from unity constitute a periodic series.

Theorem. Let be relatively prime to Then the geometric progression etc. has at least one term aside than the first term which is congruent to unity modulo and whose exponent is

Proof. Since the modulus is relatively prime to and consequently is also relatively prime to any power of no term of the progression will be but each of them will be congruent to one of the numbers Since the multitude of this series of numbers is it is clear that if more than terms of the progression are considered, they cannot all have different minimal residues. So among the numbers at least two will be congruent. Therefore, letting with and dividing by (Art. 22), we obtain where and Q.E.D.

Ex. In the progression etc., the first term congruent to unity modulo is but in the same progression modulo we have similarly, and Thus in some cases, the exponent of the power congruent to unity is smaller than and in other cases, one must go all the way to the power.

Article 46 edit

When the progression is continued beyond the term congruent to unity, one will find the same residues as those obtained from the beginning. Thus, if we will have etc., until we reach the term whose minimal residue will again be and the period of residues will begin again. We will thus have a period of residues, which always repeats itself from the beginning as soon as it is finished; and no residues other than those in this period can occur in the entire progression. In general, we will have and which can be represented in our notation as follows:

If then

Article 47 edit

This theorem provides an expeditious method of finding residues of powers, regardless of the magnitude of the exponent they are raised to, as soon as the power congruent to unity is known. If e.g. one asks for the remainder which arises upon dividing by then since we have and therefore, since we obtain

Article 48 edit

If is the smallest power congruent to unity, (excluding a case which we do not consider), then the residues that make up the period will all be distinct, as can be easily seen from the demonstration in Art. 45. Then the proposition from Art. 46 can be reversed; namely, if we will have For if and were incongruent modulo their minimal residues and would be different. But and hence meaning that all powers below would not be incongruent, contrary to the hypothesis.

So if we will have meaning that will be divisible by

So far we have only discussed moduli that are relatively prime to We will now separately consider absolutely prime moduli, and establish a more general investigation on this foundation.

Article 49 edit

On moduli which are prime numbers.

Theorem. If is a prime number that does not divide and is the smallest power of congruent to unity, the exponent will be or an aliquot part of

See Art. 45 for examples.

Since we have already proved that is or it remains to show that in the latter case it is always an aliquot part of

I. Let us gather the minimal positive residues of all the terms and denote them by etc., so that we have etc. It is clear that these will all be distinct; for if two terms and gave the same residue, then (assuming ) we would have and which is absurd, since is the smallest power of congruent to unity (by hypothesis). Moreover, all numbers etc. are included in the series a series they do not exhaust when We will denote by the complex of all these residues, which includes a total of terms.

II. Let be an arbitrary number from the series which is missing from Compute the products of with etc., and let their minimal residues be etc., the number of which will also be These residues will be distinct, both from each other and also from the numbers etc. Indeed, if the former assertion were false, we would have and dividing by would give us contrary to what we have just demonstrated. If the latter were false, then we would have When this yields i.e. would be congruent to one of the numbers etc., contrary to the hypothesis; and when we will have, upon multiplying by or, since which is the same absurdity. Letting denote the complex of the numbers etc., whose multitude is we now have numbers from the series etc. So, if and exhaust this series, then we have

III. If some are missing, let be one of those. Multiply etc., by let etc., be the minimal residues of these products, and let denote the complex of all such residues. Then will include numbers taken from the series which are distinct from both each other and the numbers in and The first two assertions are proven as in II. For the third, if we had we would obtain either or depending on whether or In either case, would be congruent to one of the numbers in contrary to the hypothesis. We will therefore have numbers from the series and if none are left over, then we will have and the theorem has been demonstrated.

IV. But if there are still some left over, we will arrive in the same way at a fourth complex of numbers and so on. Since the series is finite, it will eventually be exhausted, and therefore will be a multiple of thus will be an aliquot part of Q.E.D.

Article 50 edit

Fermat's Theorem.

Since is an integer, raising each member of the congruence to the power shows that that is, will always be divisible by when is prime and does not divide

This theorem, which is remarkable both for its elegance and its great utility, is usually called Fermat’s theorem, after the name of the inventor. See Fermatii Opera Mathem. Tolosae 1679 fol. p. 163. Fermat did not provide a proof, although he claimed to have found one. Euler was the first to publish it in his dissertation entitled Theorematum quorundam ad numeros primos spectantium demonstratio, Comm. Ac. Pétrop. T. VIII.[1] It is derived from the expansion of From the form of the coefficients in this expansion, it is easy to deduce that is always divisible by and consequently will be divisible by whenever is. Now since is always divisible by will be as well; hence so will be and generally Therefore, if does not divide will be divisible by What we have just said is sufficient to understand the nature of the method. Lambert gave a similar proof in Actis Erudit. 1769, p. 109. But since the binomial expansion of a power seems alien to number theory, Euler provided another proof Comment. nov. Petr. T. VIII, p. 70. that exactly agrees with the one we have just presented. In the future, other proofs will be presented: here we will be content to give another one derived from the same principle as Euler’s. The following proposition, of which the theorem in question is only a particular case, will be useful for other investigations below.

Article 51 edit

If is a prime number, then the power of etc. is

etc. modulo

It is known that is composed of terms of the form etc. where we have being the number of permutations of objects, of which etc. are respectively equal to etc. But in Art. 41 above we have shown that this number is always divisible by unless all the letters are equal to each other; i.e. unless one of the numbers etc., is and the others are From this it follows that all the terms of the expansion, except etc. are divisible by and therefore If all the quantities etc. are assumed to be and their number is then we will have as in the previous article.

Article 52 edit

How many numbers generate a period whose multitude is a given divisor of

Since the divisors of are the only numbers that can serve as exponents for the smallest powers congruent to unity, one is led to ask whether all divisors of enjoy this property; and, when classifying all numbers not divisible by according to the exponent of their smallest power congruent to unity, how many there are for each exponent. We immediately observe that it suffices to consider positive numbers from to for it is clear that congruent numbers must be raised to the same power to become congruent to unity, and therefore any number must be raised to the same exponent as its minimum positive residue. We must therefore investigate how the numbers are distributed among the factors of in this respect.

For the sake of brevity, if is one of the divisors of (among which which and are to be included), we will denote by the multitude of positive numbers less than whose power is the smallest power congruent to unity.

Article 53 edit

In order to make ourselves more easily understood, we will first present an example. For the numbers are distributed among the divisors of as follows:

So in this case With a little attention, one can see that the multitude of numbers belonging to each exponent is equal to the multitude of numbers relatively prime to and not greater than that exponent. Equivalently, retaining the notation of Art. 39, we have This observation can be proved in general, as follows.

I. If there is a number belonging to the exponent i.e. one whose power is congruent to unity, and whose lower powers are incongruent, then its powers or equivalently their minimal residues, will also have the property that their powers are congruent to unity. In other words, the minimal residues of the numbers which are all distinct, will be roots of the congruence Since this congruence can have no more than distinct roots, it is clear that the minimal residues of are the only numbers between and whose powers are congruent to unity. Hence it follows that the numbers belonging to the exponent can be found among the minimal residues of the numbers Which these are, and what their multitude is, will now be determined. If is a number relatively prime to then none of the powers of with exponent will be congruent to unity. Indeed, suppose that (see Art. 31). Then we will have and thus if the power of were congruent to unity, with then we would also have and consequently contrary to the hypothesis. Hence it is clear that the minimal residue of belongs to the exponent On the other hand, if had a common divisor with then the minimal residue of would not belong to the exponent since the power of is congruent to unity (for is divisible by or equivalently and therefore ). From this we conclude that there are as many numbers belonging to the exponent as there are numbers relatively prime to in the series But it must be remembered that this conclusion is based on the supposition that there is already a number belonging to the exponent Therefore, it remains doubtful whether every exponent has a number belonging to it, and the only conclusion we can draw is that is either or

Article 54 edit

II. Let etc. be the divisors of Since the numbers must be distributed among these divisors, we will have

But (Art. 40) we have shown that

and in the previous article we saw that is less than or equal to The same goes for and etc. Therefore, if one or more of the terms in the sequence etc., were less than the corresponding term in the sequence etc., then the sum of the former could not be equal to the sum of the latter. Hence, we conclude that and are always equal to each other, regardless of the magnitude of

Article 55 edit

The particular case of the previous proposition which most deserves our attention is the following: there always exist numbers such that none of their powers below the is congruent to unity, and indeed, there are as many between the and as there are numbers less than and relatively prime to Since the demonstration of this theorem is by no means as obvious as it may appear to be at first sight, it is worth giving another demonstration which is slightly different from the previous one, especially because a diversity of methods often contributes a great deal to the elucidation of obscure matters.

First decompose into prime factors, so that etc., where etc. are distinct prime numbers. The proof of the theorem then proceeds according to the following steps:

I. We can always find a number (or several) belonging to the exponent and similarly numbers etc. belonging to the exponents etc.,

II. The product of the numbers etc., or the minimal residue of this product, belongs to the exponent This can be proved as follows.

I. Since the congruence has degree it cannot be satisfied by all numbers in the series Therefore, we can find such a number which does not satisfy the congruence. If we then set , I claim that the minimal residue of belongs to the exponent

Indeed, it is clear that is congruent to i.e. to unity, but is congruent to which is not congruent to unity. No less will the powers be congruent to unity. But the exponent of the smallest power of which is congruent to unity, that is the exponent to which belongs, must be a divisor of (Art. 48); and since is only divisible by itself and by lower powers of it necessarily follows that will be the exponent to which belongs. It can be shown by a similar method that one can find numbers belonging to the exponents etc.

II. If we assume that the product of all numbers etc. does not belong to the exponent etc., but rather to a smaller exponent then must be one of the divisors of (Art. 48), or in other words will be an integer greater than unity. It follows that this quotient will be one of the prime numbers etc., or at least divisible by one of them (Art. 17), e.g. by as the reasoning would be the same for the others. Thus will divide and so the product etc., raised to the power would still be congruent to unity (Art. 46). But it is clear that all numbers etc. (except ) become congruent to unity when raised to the power since the exponents etc. to which they belong, divide Therefore

so must divide (Art. 48), i.e. is an integer; but is not an integer (Art. 15). Therefore our assumption cannot hold, i.e. the product etc. actually belongs to the exponent

This proof seems a bit longer than the first one, but it is more direct.

Article 56 edit

This theorem provides us with a remarkable example of the circumspection needed in number theory, so as not to consider as proven things that are not. Lambert, refers to this proposition in the dissertation we have praised above, Acta Erudit. 1769 p. 127, but he says nothing about the necessity of proving it. No one has even attempted to do so, except the great Euler, Comment. nov. Ac. Petrop. T. XVIII, 1774, p. 85, Demonstrationes circa residua ex divisione potestatum per numeros primos resultantia. See especially article 37, in which he extensively discussed the need to prove this proposition. However, the demonstration of this penetrating man has two defects; one is that he tacitly assumes, starting in article 31, that the congruence (translating his arguments into our notation) actually has different roots, while it was only demonstrated that this congruence cannot have more; the other is that he only deduces the formula of Art. 34 by induction.

Article 57 edit

Primitive roots, bases, indices.

Following Euler, we will call the numbers that belong to the exponent primitive roots. So if is a primitive root, then all the minimal residues of the powers will be distinct, from which one easily deduces that they all lie among the numbers which are in the same number as them, i.e. that every number not divisible by is congruent to some power of This remarkable property is of great utility, and can considerably shorten the arithmetic operations related to congruences, in much the same way that the introduction of logarithms shortens the operations of ordinary arithmetic. We will take an arbitrarily chosen primitive root as the base, to which we will refer all numbers not divisible by and if we will call the index of E.g. for the modulus if we take the primitive root as the base, then

Moreover, it is clear that for a given base each number has several indices, but these are all congruent modulo thus indices which are congruent modulo will be considered equivalent, just as numbers are considered equivalent when they are congruent modulo

Article 58 edit

Algorithm for computing indices.

The theorems concerning indices are precisely analogous to those concerning logarithms.

The index of a product of any number of factors is congruent to the sum of the indices of the different factors, modulo

The index of a power of a number is congruent, modulo to the product of the exponent by the index of the given number.

We omit the proofs because of their simplicity.

Thus if we wanted to construct a table that gives the indices of all numbers for various moduli, then all numbers larger than the modulus and all composite numbers could be omitted. An attempt at such a table can be found at the end of this work (Tab. I). The prime numbers and powers of prime numbers from to which are to be regarded as moduli, can be found in the first column. The numbers taken as bases are in the nexdt column; then follow the indices of successive prime numbers, which are written in groups of five each; at the top are the prime numbers arranged in the same order, so that one can easily find the index that corresponds to a given prime number, for a given modulus.

E.g. if then the index of the number with taken as the base, will be

Article 59 edit

The index of the value of any expression (Art. 31) is congruent modulo to the difference of the indices of the numerator and the denominator provided that the numbers and are not divisible by

Let be any value of this expression; we will have hence

and therefore

Therefore, if we have two tables, one giving the indices corresponding to each number for some modulus, and the other giving the numbers corresponding to given indices, then we can easily solve all linear congruences, since they can always be reduced to others with prime moduli (Art. 30). E.g. for the congruence

we have

Thus,

Now is the number with index therefore We have not added the second table; but another can be used in its place, as we will show in Sect. VI.

Article 60 edit

On the roots of the congruence

Just as we introduced notation for the roots of first degree congruencesin Art. 31, in what follows we will introduce another sign for the roots of pure congruences of higher degrees. Just as the symbol represents nothing other than a root of the equation so will the symbol represent an arbitrary root of the congruence Thus we will say that the expression has as many values as it has incongruent ones modulo because all those congruent modulo must be considered equivalent (Art. 26). Furthermore, it is clear that if and are congruent modulo then the expressions and will be equivalent.

Now if we take we will have From this congruence, and the rules of the previous section, we can deduce the values of and hence the corresponding values of However, it is easy to see that has as many values as there are roots of the congruence Therefore, will have only one value when is coprime to but when the greatest common divisor of and is there will be incongruent values of modulo and consequently will have equally many incongruent values modulo provided that is divisible by Without this condition, will have no real values.

For instance, if one seeks the values of the expression one must solve the congruence from which one obtains three values The values of corresponding to these are

Article 61 edit

Although this method is very expedient when the necessary tables are available, we should not forget that it is indirect. So, it will be worthwhile to investigate how fruitful direct methods can be. We will now present some observations that can be deduced from the previous notions; others, which require more subtle considerations, will be reserved until Section VIII.

Let us begin with the simplest case, in which or equivalently, in which one seeks the roots of the congruence Taking an arbitrary primitive root as the base, we have When is relatively prime to this congruence will have only one root, namely so in this case will have only one value, namely However, when and have as their greatest common divisor, the complete solution of the congruence will be (see Art. 29), i.e. must be congruent to one of the numbers

modulo and so will have incongruent values modulo thus will also have distinct values (incongruent modulo ). From this one can see that the expression has distinct values, whose indices are the numbers listed above; therefore the expression is entirely equivalent to the expression i.e. the congruence and the congruence have the same roots; but the former will be of a lower degree unless

Ex. has three values, because is the greatest common divisor of and these will also be the values of the expression The three values are

Article 62 edit

This reduction offers us a great advantage, since we no longer need to solve congruences of the form other than those where is a divisor of the reduced module by unity. Later we will show that congruences of this form can be reduced even further, although the method above is insufficient to do so. However, there is one case that we can fully address here, namely the case Indeed, it is clear that the values of the expression will always be and since it cannot have more than two values, and and are incongruent, unless the modulus is in which case it is clear that will only have one value. It follows that and are also the values of the expression whenever is relatively prime with This will happen for any modulus such that is an absolutely prime number (unless in which case all numbers are roots) e.g. when etc. As a corollary, we observe that the index of is always regardless of the primitive root chosen as the base. Indeed, Thus will either be or but is always the index of and and always have different indices (except in the case where which is not worth considering here).

Article 63 edit

We have shown (Art. 60) that the expression either has different values or none at all, if is the greatest common divisor of and Just as we found that and were equivalent when we will prove more generally that the expression can always be reduced to another equivalent expression . Let denote any value such that and let denote any value of the expression which will always have real values, as we saw in Art. 31. Then we will have but because we will have Thus and therefore any value of will also be a value of So, whenever has real values, it will be precisely equivalent to the expression since it can neither have different nor fewer values, although it is true that can have real values without necessarily having them.

Ex. To find the values of the expression we observe that the greatest common divisor of the numbers and is and is a value of so if has real values, it will be equivalent to the expression or and indeed we find that the values of the latter are and which also satisfy the former.

Article 64 edit

In order to not undertake this operation unnecessarily, we must look for rules by which we can immediately deduce whether admits real values or not. If we have a table of indices, the matter is easy, because it is clear from Art. 60 that will have real values whenever the index of is divisible by no matter which primitive root is taken as the base, and otherwise it will not have real values. However, we can also discover this without the help of this table. If is the index of and is divisible by then will be divisible by and vice versa. But the index of the number is Therefore, if has real values, will be congruent to unity, and otherwise it will not be congruent to unity. Thus in the example of the previous article, we have from which we conclude that has real values. Similarly, we see from this that always has two real values when is of the form and has none when is of the form for and This elegant theorem, which is usually stated as follows: If is a prime number of the form then we can find a square such that is divisible by but if is of the form no such square can be found, was demonstrated in this way by Euler, Comm. nov. Acad. Petrop. T. XVIII, p. 112, in 1773. He had given another proof of it much earlier, Comm. nov. T. V, p. 5, which came out in 1760. In an earlier dissertation (T. iv, p. 25), he had not yet reached the goal. Lagrange later also provided a proof of this theorem, Nouveaux Mém. de l’Ac. de Berlin, 1775, p. 342. We will present yet another proof in the following section, in which this topic will be treated properly.

Article 65 edit

After examining how one can reduce all expressions to others in which is a divisor of and after finding a criterion which allows to recognize whether there are real roots or not, let us consider with more care the expressions where is a divisor of We will first discuss the relationship between the different values of this expression, and then we will indicate some tricks through which one can often find one of the values.

First, when and is one of the values of the expression or equivalently then all powers of will also be values of this expression; and there will be as many different values as there are units in the exponent to which belongs (Art. 48). So, if is a value belonging to the exponent then its powers (where the last can be replaced with unity) will include all values of the expression We will explain in more detail in section VIII how one can find these values belonging to the exponent

Second, when is not congruent to unity, and one knows a value of the expression then the other values can be found as follows. Let

be the values of the expression Then

will be the values of For it is clear that all these numbers satisfy the congruence Indeed, if one of them is , then since and its power will be congruent to from Art. 23 it is easy to see that all these values are distinct; thus the expression cannot have other values, as it cannot have more than For example, if one value of is then the other will be From all of this, it must be concluded that one cannot find all the values of unless one also has all the values of

Article 66 edit

The second topic that we had promised to discuss was how to determine when a single value of the expression (where is assumed to be a divisor of ) can be found directly. This occurs whenever there is a value congruent to a power of and since this case is very common, it is appropriate to dwell on it briefly. Let be this value, if it exists, so that and Then we have and if one can determine in such a way that this condition is satisfied, then will be the required value; but the previous condition is equivalent to where is the exponent to which belongs (Art. 46, 48). If and are relatively prime, then it is possible to solve this congruence, and indeed we will have on the other hand, if and have a common divisor, then no value of will be congruent to any power of

Article 67 edit

Since the above solution requires us to know the number let us see how to proceed when it is not known. First of all, it is easy to see that must be a divisor of provided that has real values, which we assume here. Let be any of these values. Then we will have and raising both parts of the latter congruence to the power, we find that therefore is divisible by (Art. 48). Now if is relatively prime to then the congruence can be solved modulo and it is clear that any value of that satisfies this congruence will satisfy the same congruence modulo this being a divisor of (Art. 5), and thus we have found what we were looking for. On the other hand, if is not relatively prime to then we first remove all prime factors of which also divide . From this we obtain a number which is relatively prime to where denotes the product of the remaining prime factors of Then if the condition that is relatively prime to holds, will also be relatively prime to and therefore it will divide If we now solve the congruence (which is possible because and are relatively prime), then the value we find for will satisfy the same congruence modulo as required. The art here lies in finding a number that can replace which we do not know. However, we must be mindful of the fact that when is not relatively prime to the condition assumed in the previous article is not met, and all of the resulting conclusions are false; and if by blindly following the rules, we find a value for whose power is not congruent to this merely shows the condition does not hold, and therefore the method is not applicable.

Article 68 edit

But even in this case, it is often useful to carry out the above procedure, and it is well worth the effort, because the resulting false values may be related to true ones. Indeed, suppose that the numbers and have been thus determined, but is not Then if the values of could be determined, multiplying these different values by would give those of Indeed, if is a value of we will have but the expression is simpler than because usually belongs to a smaller exponent than Namely, if is the greatest common divisor of and then will belong to the exponent which can be demonstrated as follows. Substituting the value gives but is divisible by (by the previous article), and is divisible by (ibid.), or equivalently is divisible by Also, is relatively prime to thus is divisible by or equivalently is divisible by and therefore is divisible by or equivalently is divisible by Thus from which it easily follows that raised to the power is congruent to unity. It would be easy to show that cannot belong to an exponent smaller than but since this is not required for our purposes, we will not dwell on it. We are thus certain that always belongs to a smaller exponent than that of except in the case where divides , and therefore

Now how does it help, when belongs to a smaller exponent than ? More numbers are possible for than there are for so when we have occasion to solve many expressions of the form following the same modulus, we gain the ability to draw several solutions from the same source. So e.g. we can always find at least one value of given only the values of which are Indeed, it is easy to see, from the previous articles, that we will determine a value directly when is odd, and that will be when is even; but only belongs to the exponent

Examples. Suppose we want to find Here we have and hence so we must have from which we obtain Therefore and indeed we find that Given the values of the expression , we could also determine the remaining values of the expression In fact, the values of are and multiplying these by we obtain

Now suppose we want to find the values of expression Then we have therefore Hence we must have from which we obtain Therefore but is not congruent to but rather so we have and thus we obtain the correct values

This is all we are able to present here on solving these expressions. It is clear that direct methods will often escape from being too verbose; but this inconvenience applies to almost all direct methods in number theory, so we did not wish to neglect to show how much they can achieve here. It is also worth noting that it was not our intention to explain individually the specific techniques that often present themselves to the experienced practitioner.

Article 69 edit

Relationships between indices in different systems.

We now return to the roots we have called primitive. We have shown that, if we take an arbitrary primitive root as a base, then all numbers whose indices are relatively prime to will also be primitive roots, and that there are no others: from this we have deduced the number of such roots. See Art. 53. Since the choice of the base we take is generally arbitrary, we see that here, as with logarithms, we can have many different systems.[2] Let us look for the relations that link them together. Let and be two primitive roots, and another number. Suppose that the index of is and the index of is when is taken as base. On the other hand, let and when is taken as the base. Then we will have indeed so (by hypothesis), hence By similar reasoning, we find that and Therefore, if we have created an index table for the base we can easily change it to another one with base Indeed, if the index of is for the base , then the index of will be for the base and by multiplying all of the indices in the table by this number, we will have all the indices for the base

Article 70 edit

However, although a given number may have many different indices, depending on which primitive root is taken as the base, all of these indices will have a common property, that their greatest common divisor with is the same. In fact, if the index of a given number is for the base and for base and if the greatest common divisors of these indices with are assumed to be different, e.g. then will not divide On the other hand, if denotes the index of for the base then we will have (by the previous article) and hence will divide Q.E.A.

We can also show that this common divisor of the indices of a given number and is independent of the base by observing that it is equal to where is the exponent to which the number belongs. Indeed, if the index is for any base, then as we saw in Arts. 48, 58, will be the smallest number (excluding zero), that when multiplied by gives a product divisible by or equivalently it will be the smallest value of the expression except for zero; but it is easy to deduce from Art. 29 that this value is the greatest common divisor of the numbers and

Article 71 edit

It is easy to show that one can always find a base such that a number belonging to the exponent has a given index, as long as the greatest common divisor of this index and is For the sake brevity, denote this divisor by let the index be and let be the index of the given number when some primitive root is chosen as the base. Then and will be relatively prime to , i.e. to Now if is a value of the expression which is also relatively prime to then will be the desired primitive root, because we will have the proposed number as desired. But it can be shown that the expression admits arbitrary values coprime to Indeed, it is equivalent to or as we saw in Arts. 2, 31, and all such values will be coprime with for if one such value had a common divisor with this divisor would also have to divide and consequently it would divide which is congruent to modulo contrary to the hypothesis that is relatively prime to Thus, when all the prime divisors of also divide all values of the expression will be relatively prime to and their multitude will be but when still contains other prime factors etc. which do not divide let be an arbitrary value of Then since etc. are mutually relatively prime, one can find a number which is congruent to modulo and which is congruent modulo etc. to arbitrary given numbers that are relatively prime to the corresponding modulus (Art. 32). Such a number will not be divisible by any factor of and thus will be relativley prime with it, as required. It can be easily shown from the theory of combinations that the number of these values is etc.; but we omit this demonstration, which will not be necessary for us.

Article 72 edit

Bases adapted to particular purposes.

Although in general one can arbitrarily choose any primitive root as a base, certain particular advantages may make one base preferred over another. In Table I we have always taken as the base when it was a primitive root, and in other cases we have chosen the base in such a way that the index of the number was as small as possible, i.e. so that it would be where is the exponent to which belongs. The advantage of this will be recognized in Sect. VI, where the same table will be used for other purposes. But since this still leaves a degree of arbitrariness, as we saw in the previous article, we have always chosen, among all primitive roots that satisfy this requirement, the smallest one as the base. So, for we have and has i.e. 6 values, which are We have therefore chosen to be the base.

Article 73 edit

Method for finding primitive roots.

Most of the methods used to find primitive roots rely largely on trial and error. If we combine what we have said in Art. 55 with what we will say below about solving the congruence then we will have almost everything that can be done using general methods. Euler admits (Opuscula analyt. T. i, p. 152.) that it seems extremely difficult to determine these numbers, and that their nature must be considered as one of the most thorny points of number theory. However, they can be found quite easily using the following method. Experienced individuals can easily shorten the calculation by using various tricks; but these are better learned by practice than by rules.

1st. Choose an arbitrary number (often the calculation becomes simpler when one chooses as small as possible, e.g. ) which is relatively prime to the given modulus (we will always denote the modulus with this letter), and determine its period (Art. 46), i.e. the minimal residues of its powers up to the first power which has as its minimal residue.[3] If then is a primitive root.

2nd. On the other hand, if one can choose another number that is not in the period of and determine its period in exactly the same way. Letting denote the exponent to which belongs, it is easy to see that is neither equal to nor one of its aliquot parts, for in both cases we would have which is impossible, since the period of contains all numbers whose power is congruent to unity (Art. 53). Now, if is then will be a primitive root; but if is not but instead a multiple of then we still have the advantage of knowing a number that belongs to a larger exponent, and thus we are closer to our goal, since we are looking for the number that belongs to the maximum exponent. Finally, if is neither nor a multiple of we can find a number belonging to an exponent larger than and namely, this exponent will be the least common multiple of and Indeed, letting this we can decompose into two relatively prime factors and , with the former dividing and the latter dividing [4]. If we set and then will belong to the exponent it is easy to see that belongs to the exponent and to the exponent and therefore the product will belong to the exponent since and are relatively prime, as can be demonstrated by following exactly the procedure of Art. 55, II.

3rd. If then will be a primitive root; otherwise one can similarly find a third number which does not appear in the period of this number will either be a primitive root, or it will belong to an exponent or finally, it can be used to determine a number belonging to an exponent Since the numbers produced by repeating this operation belong to exponents which are always increasing, it is clear that one will eventually find a number that belongs to the maximum exponent i.e. a primitive root, q.e.f.

Article 74 edit

Let us clarify the above with an example. Let for which we seek a primitive root. Let us first try the number whose period is

Therefore, since its power is congruent to unity, is not a primitive root. Let us try another number, which is not in the period of e.g. whose period is

So is also not a primitive root; but the least common multiple of the exponents to which and belong (i.e. the numbers and ), is which can then be resolved into factors and according to the rules from the previous article. Therefore, raising to the power raising to the power and taking the product, we obtain of which will belong to the exponent Finally, if we calculate the period of and try a number not contained in it, e.g. we find that it is a primitive root.

Article 75 edit

Various theorems on periods and primitive roots.

Before leaving this subject, we will present some propositions that do not seem unworthy of attention due to their simplicity.

The product of all terms in the period of any number is when their multitude, or the exponent to which the number in question belongs, is odd, and when the exponent is even.

Ex. For the modulus the period of is composed of the terms whose product

For the same modulus, the period of is composed of the terms whose product

Proof. Letting be the exponent to which the number belongs, we can always find (Art.71) a base for which the index of the number is The index of the product of all the terms will be

i.e. when is odd; and when is even; hence in the first case, the product is but in the second it is Q.E.D.

Article 76 edit

If the number in the previous theorem is a primitive root, then its period will include all of the numbers whose product will therefore always be (for is always even, except when in which case and are equivalent. This elegant theorem, which is usually stated in the following way: The product of all numbers smaller than a prime number, increased by unity, is divisible by this prime number, was published by Waring who attributes it to Wilson Meditationes algeb. Ed. 3, p. 380. Yet neither of them could prove it, and Waring admits that the proof seems to him all the more difficult as there is no notation in which a prime number can be expressed. As for us, we believe that the proofs of these kinds of truths must be drawn from principles rather than from notation. Lagrange subsequently provided a proof, Nouv. Mém. de l’Ac. de Berlin, 1771. It is based on considering of the coefficients that are found by expanding the product

Namely, he shows that by setting this product

the coefficients etc., are divisible by and therefore Now, for the product is divisible by but then it will be therefore must necessarily be divisible by

Finally Euler (Opusc. analyt. T. i, p. 529) provided a proof that is similar to the one we have just explained. Since such men judged this theorem not unworthy of their reflections, we hope it will not meet with disapproval if we add yet another demonstration.

Article 77 edit

When the product of two numbers is congruent to unity modulo we will say that are associated, as did Euler. Then by the preceding section, every positive number less than will always have one and only one associated number that is positive and less than Now, it is easy to prove that among the numbers only and are associated with themselves, because those that enjoy this property will be given by the congruence which is of the second degree and can therefore only have two roots, i.e. apart from and we can have no others. Therefore, upon removing these, the remaining numbers will be associated in pairs; thus their product will be and therefore the product of all the numbers will be or Q.E.D.

E.g. for the numbers are associated as follows: with with with with with so that etc. Hence therefore

Article 78 edit

Wilson's theorem can be made more general by stating it as follows: The product of all numbers less than and relatively prime to a given number is congruent, modulo to a positive or negative unit. The unit should be taken negatively when is of the form or where is a prime number different from or when in all other cases it should be taken positively. Wilson’s theorem falls within the first case. E.g. For the product of the numbers is For the sake of brevity,we omit the the demonstration: we merely observe that we can achieve it in the same way as in the previous article, except that the congruence can have more than two roots, which requires certain particular considerations. One could also derive it from the consideration of indices, as in Art. 75, in combination with that which we will say shortly about composite moduli.

Article 79 edit

Let us return to the enumeration of the other propositions (Art. 75).

The sum of all terms in the period of any number is as in the example of article 75,

Proof. Let be the number in question, and let be the exponent to which it belongs. The sum of all terms in the period will be

However, thus the sum must be (Art. 22) if is not divisible by or thus we must exclude this case if we wish to call even a single term a period.

Article 80 edit

The product of all primitive roots is unless because in this case there is only one primitive root,

Proof. If we take an arbitrary primitive root as a base, then the indices of all primitive roots will be numbers less than and relatively prime to However, the sum of all these numbers, i.e. the index of the product of all primitive roots, is and therefore the product is it is easy to see that if is a number relatively prime to then will also be relatively prime to and therefore the sum of the numbers relatively prime to is composed of pairs whose sum is divisible by (but can never be equal to except in the case or which we excluded; for it is clear that in all other cases is not relatively prime to .

Article 81 edit

The sum of all primitive roots is (when is divisible by a square), or (when is the product of distinct prime factors; the sign is positive when the number of factors is even, and it is negative when the number of factors is odd).

Ex 1. For the primitive roots are and their sum is

Ex 2. For the primitive roots are and their sum is

Ex 3. For the primitive roots are and their sum is

We have shown earlier (Art. 55, II) that if is etc. (where etc. are distinct prime numbers), and etc. are arbitrary numbers that belong to the exponents etc., then all products etc. will be primitive roots. However, it is easy to show that any primitive root can only be expressed in one way as a product of this form.[5]

It follows from this that the primitive roots can be replaced with products of this form; but in these products we must combine all values of with all those of etc. So, by the theory of combinations, the sum of all such products will be equal to the product of the sum of all values of the sum of the values of the sum of the values of etc. Denoting the values of by etc., and the values of by etc. etc., it follows that the sum of all primitive roots will be

Now I say that if the sum etc. will be and if this sum will be and likewise for etc., If these two assertions are proved, then the truth of the theorem will be evident. Indeed, when is divisible by a square, one of the exponents etc., will be greater than unity, hence one of the factors, whose product is congruent to the sum of primitive roots, will be and thus so will be the product itself: but when is not divisible by any square, all of the exponents etc., will be equal to one, so the sum of the primitive roots will be congruent to the product of as many factors as there are numbers etc., and therefore the product will be depending on whether the number of such factors is even or odd. This can be shown as follows:

1st. When and is a number belonging to the exponent the remaining numbers belonging to the same exponent will be But

is the sum of a complete period, and therefore is (Art. 79), and thus

2nd. When and is a number belonging to the exponent the remaining numbers belonging to the same exponent are obtained by removing etc. from the sequence etc. see Art. 53. Thus their sum will be

i.e. it will be congruent to the difference of two periods, and therefore Q.E.D.

Article 82 edit

On moduli which are prime powers.

All that we have explained so far assumes that the modulus is a prime number. We still need to consider the case where we take a composite number as the modulus. However, there are not as many elegant properties in this case as in the first one, and there is no need for very delicate devices to find them, as everything is deduced almost solely from the application of the previous principles, so it would be superfluous and tedious to exhaust all the details here. Therefore, we will briefly explain what this second case has in common with the first, and what distinguishes it.

Article 83 edit

The propositions of Arts. 4548 have already been proved in general, but the one in Art. 49 must be modified as follows:

If denotes the number of integers less than and relatively prime to , i.e., if (Art. 38), and is a given number which is relatively prime to then the smallest exponent such that is congruent to unity modulo will be or an aliquot part of

The proof of the proposition in Art. 49 can also be applied in this case, by substituting for and for and instead of the numbers the numbers relatively prime to and less than it. We leave this to the reader. But the other proofs we have mentioned (Arts. 50, 51), can only be applied in this case after many modifications. As for the following propositions (Art. 52 and onwards), there is a great difference between moduli that are powers of a prime number and those that are divisible by several prime numbers. Therefore, we will separately consider moduli of the first type.

Article 84 edit

If the modulus is where is a prime number, then we have (Art. 38). Now, if we apply the investigations of Arts. 53, 54 in this case, mutatis mutandis as in the previous article, we find that everything that has been shown there would also hold if it could be shown that the congruence does not have more than different roots. It is from a more general proposition (Art. 43) that we deduced this truth for a prime modulus, but this proposition only holds for prime modules, and therefore cannot be applied to this case. We will therefore prove it by a more specialized method. Later (Sect. VIII) we will prove it even more easily.

Article 85 edit

We aim to prove the following theorem:

If the greatest common divisor of the numbers and is then the congruence will have distinct roots.

Let where is not divisible by and therefore divides Then the congruence will have distinct roots modulo and if these are denoted by etc., then any root of this same congruence modulo must be congruent to one of the numbers etc. modulo We will prove that the congruence has roots congruent to just as many congruent to etc. modulo Thus the total number of roots will be or as we claimed. To carry this out, we will show that first, if is a root congruent to modulo then

will also be roots; and second, no number congruent to can be a root, unless it is of the form (where is an integer); hence there will clearly be distinct roots, and no more; the same thing will happen with respect to etc.; and third, we will show how one can always find a root congruent to modulo

Article 86 edit

Theorem. If, as in the preceding article, is a number divisible by and not by then

The second part of the theorem does not hold when and

We could deduce this theorem from the binomial formula, if we were to show that all terms, after the second, are divisible by but since considering the denominators of the coefficients leads to some confusion, we prefer the following method.

We assume first that and Then because

we have

But

and therefore each term etc., will be and therefore the sum of all terms will be or equivalently this sum will be of the form for some number . Hence will be of the form

For this case, the theorem is proved.

If the theorem were not true for the other values of with still being then there would necessarily be a limit up to which the theorem would be true, and beyond which it would be false. Let be the smallest value of for which the theorem is false. It is easy to see that the theorem is true if is divisible by and not by but if is substituted for it is no longer true. Therefore, we have

for some integer ; but since the theorem is already proven for we will have

and hence

i.e. the theorem is still true if we substitute in place of or instead of contradicting the assumption. Thus the theorem is true for all values of

Article 87 edit

The case where remains. By a method precisely similar to that of the previous article, we will prove, without using the binomial theorem, that

and therefore (since the number of terms is )

However, since is divisible by will also be divisible by , except in the case where which we have excluded in the previous article. In the remaining cases, we have and therefore the sum will be The rest of the proof proceeds as before.

It generally follows from this that, except in the case where we have

and not for any modulus that is a power of higher than provided that is not divisible by and that is the highest power of that divides

From this the first two propositions of that we set out to prove in Art. 85 follow immediately: namely

First, if then we also have

Second, if a number is congruent to and consequently to modulo then it cannot satisfy the congruence unless it is congruent to modulo Indeed, if we had , where is not divisible by and then we would have modulo but not modulo the higher power so would not be a root of the congruence

Article 88 edit

Third, we must find a root of the congruence which is congruent to modulo It will suffice to show how this can be achieved if we know a root of the congruence modulo since we can then proceed from the modulus for which is a root, to the modulus and from there to all consecutive powers.

Let be a root of the congruence and let us seek a root of the same congruence modulo which we assume to be since the previous article tells us it must have this form (later we will separately consider the case where cannot be greater than ). We will then have

but also

Thus if we determine in such a way that or (since and is divisible by by hypothesis) in such a way that is divisible by the problem will be solved. Since cannot be divisible by a power of higher than and therefore is relatively prime with so it follows from what was shown in the Sect. II that this is always possible.

On the other hand, if i.e. if is divisible by or by a higher power of then any value that satisfies the congruence modulo will satisfy the same congruence modulo Indeed, if then we will have and therefore, since we will also have Thus if we will have (Art. 87).

Article 89 edit

Everything that we have demonstrated, starting in Art. 57, with the help of the theorem that the congruence can have no more than roots, can be applied to a modulus that is a power of a prime number, and if we call primitive roots the numbers that belong to the exponent that is to say those whose period contains all numbers not divisible by then there will also be primitive roots in this case. Everything we have said about indices and their use, including the solution of the congruence can be applied in this case as well. Since the proofs are not difficulty, it would be superfluous to repeat them. We have also shown how one can deduce from the roots of the congruence those of the congruence but something must be added about the case which we had excluded above.

Article 90 edit

On moduli which are powers of two.

If the modulus is a power of two, say and is greater than then any odd number will become congruent to unity when it is raised to the power

E.g.

Indeed, every odd number is either of the form or of form from which the proposition follows immediately (theor. Art. 86).

Therefore, the exponent to which any given odd number belongs modulo must be a divisor of such a number will therefore belong to one of the exponents and moreover it is easy to determine the exponent to which it belongs. Let the proposed number be and let the largest power of that divides (here is when is odd); then the exponent to which the given number belongs will be if but if or is the proposed number will be and therefore will belong to the exponent or to the exponent Indeed, a number of the form (or equivalently, ) becomes congruent to unity modulo when raised to the power but will not be congruent to unity when raised to any power of lower degree. Thus any number of the form where is odd, that is any number of the form or belongs to the exponent

Article 91 edit

It follows that in this case there are no primitive roots, in the sense that we have given to this expression. That is, there are no numbers whose period contains all the numbers less than and relatively prime to the modulus. However, it is easy to see that something analogous happens here. Indeed, every odd power of a number of the form is itself of the form and every even power is of the form therefore no power can be of the form or Therefore, because the period of a number of the form is composed of distinct terms, each of which is of the form or and there are no more than such numbers which are smaller than the modulus, it is evident that every number of the form or is congruent to a power of a certain number of the form modulo It can be shown in a similar way that the period of a number of the form includes all numbers of the form and So, if we take a number of the form as a base, we will find real indices for all numbers of the form and taken positively, and for all numbers of the form and taken negatively, where the indices are considered to be equivalent if they are congruent modulo This is how we must understand Table I, in where for the moduli and (no table is needed for the modulus ), we always took the number as the base. E.g. the number which is of the form and so must be taken negatively, has the index modulo which means that If one were to take numbers of the form and negatively, and those of the form and positively, one would have to give them indices that are, in a sense, imaginary. Introducing these would reduce the indicial calculus to a very simple algorithm; but as we would be led too far if we wanted to treat this subject with complete rigor, we reserve this point for another occasion, when perhaps we will undertake to treat in more detail the theory of imaginary quantities, which, in our opinion, has not yet been reduced to clear notions by anyone. Experts will easily find this algorithm for themselves; those who are less practiced can nevertheless use the table, provided they have properly understood the principles established above, just as those who are not familiar with modern knowledge on imaginary logarithms use logarithms.

Article 92 edit

On moduli which are composed of several prime factors.

For a modulus which is composed of several prime numbers, everything related to residues of powers can be deduced from the general theory of congruences; but since we will present a method below to reduce congruences whose modulus is composed of several prime numbers to others whose modulus is a prime number, or a power of a prime number, we will not dwell much on this matter. We will content ourselves to merely observe that the beautiful property that holds for other moduli, namely that there always exist numbers whose period contains all numbers relatively prime to the modulus, does not hold here, except in the case where the module is twice a prime number, or a power of a prime number. Indeed, if we reduce the modulus to the form etc., with etc. being distinct prime numbers, and if we also denote by by etc., and let be relatively prime wto then we will have etc. Therefore, if is the least common multiple of etc., we will have with respect to each of the moduli etc., and therefore, modulo which is equal to their product. However, except in the case where is twice a prime number or a power of a prime number, we will always have etc., since the numbers etc. are all divisible by and thus cannot be relatively prime. Therefore no number can have a period which contains as many terms as there are numbers less than and relatively prime to the modulus, since the number of the latter is equal to the product etc. E.g. for the power of any number relatively prime to is congruent to unity, since is the least common multiple of and Finally, the case where the module is twice a prime number or twice a power of a prime number is exactly similar to the case where the modulus is a prime number or a power of a prime number.

Article 93 edit

We have occasionally mentioned the works in which other geometers have spoken about the subject treated in this section. However, those who wish to have certain things explained more fully than our desire for brevity has permitted, we refer them above all to the following works of Euler, which are highly commendable due to the perspicuity that has always distinguished this great man above all others.

Theoremata circa residua ex divisione potestatum relicta Comm. nov. Petr. T. VII, p. 49 sqq.
Demonstrationes circa residua ex divisione potestatum per numeros primos resultantia. (Ibid. T. xviii, p. 85).

To these can also be added Opusculorum analyt. T. I, Diss. 5 and 8.

  1. This great man had not quite achieved this goal in a previous commentary. Comm. Petr. T. VI. p. 106. — In the famous debate between Maupertuis and Konig on the principle of least action, a debate that led to unrelated digressions, Konig claimed to have in his possession an autographed manuscript of Leibniz, containing a proof of this theorem which was exactly identical to that of Euler. Appel au public. p. 106. Although we do not want to deny this testimony, it is certain that Leibniz never published his proof. See Hist. de l’Ac. de Prusse, A. 1750. p. 530.
  2. However, they differ in that while for logarithms the number of systems is infinite, here it is equal to the number of primitive roots, because congruent bases obviously produce the same systems.
  3. It is plain to see that it is unnecessary to know these powers themselves, as one can obtain the minimal residue of each power from that of the previous power.
  4. It is easy to see from Art. 18 how to derive this decomposition. We decompose into factors that are prime numbers or powers of different prime numbers; each of these divides either or or both. We will assign to and to those prime powers that divide only or only respectively. As for those dividing both and it does not matter which one they are assigned to. If we then let the product of those assigned to be and let the product of those assigned to be then it is easy to se that divides divides and
  5. Specifically, we can determine numbers etc. such that and and etc., (see Art. 32); then we will have (Art. 19). Now, to express any primitive root as a product etc., we take etc., so that will belong to the exponent will belong to the exponents etc.; the product etc. will then be finally it is easy to see that etc., cannot be determined in any other way.