Translation:Theorematis fundamentalis in doctrina de residuis quadraticis demonstrationes et ampliationes novae

From testwiki
Jump to navigation Jump to search

Template:Translation header


The fundamental theorem of quadratic residues, which is said to be among the most beautiful truths of higher arithmetic, was easily discovered by induction, but it is much more difficult to demonstrate. It often happens in this subject that the simplest truths, which offer themselves spontaneously to the inquirer by induction, have demonstrations which are hidden in the deepest depths, which can only be brought to light after many fruitless attempts, and quite possibly by a different path than that by which they were sought. Then, when at first one path has been discovered, it happens not infrequently that several more appear from time to time, with some being shorter and more direct, and others arising obliquely and from very different principles, which one would have thought to be nearly unrelated to the proposed question. Strange connections of this kind between abstruse truths not only give a certain charm to these contemplations, but also deserve to be diligently investigated and analyzed, because they frequently lead to new resources or advances in science.

Therefore, although the arithmetic theorem which is to be discussed here may seem to be fully completed by previous efforts, which provided four entirely different demonstrations[1], I nonetheless return again to the same theme, and add two more demonstrations, which will certainly shed new light on this matter. The first is in a certain way related to the third, as it proceeds from the same lemma; afterwards, however, it follows a different course, so that it can well be considered a new proof, whose elegance will be seen to be, if not superior, then at least not inferior to that of the third. On the other hand, the sixth demonstration is based on a completely different and more subtle principle and provides a new example of an astonishing connection between arithmetic truths that, at first glance, appear to be very far removed from each other. To these two demonstrations, a very simple new algorithm is added to determine whether a given integer is a quadratic residue modulo a given prime or not.

There was yet another reason, which prompted me to publish the new demonstrations at this particular moment, although they had been promised nine years ago. In 1805, when I began to investigate the theory of cubic and biquadratic residues, which is a much more difficult subject, I experienced almost the same fate as I once had in the theory of quadratic residues. Indeed, those theorems, which entirely exhaust these questions, and in which a remarkable analogy with the theorems pertaining to quadratic residues shines forth, were immediately discovered by induction as soon as a suitable approach had been found. However, all efforts to obtain them, with their demonstrations perfected in every aspect, remained fruitless for a long time. This was the incentive for me to add more and more demonstrations concerning quadratic residues to those already known, supported by the hope that among the many diverse methods, one or another might do something to reveal an analogous line of reasoning. This hope was by no means in vain, and tireless labor was finally followed by prosperous success. It will soon be possible to bring the fruits of this vigilance to public light; but before embarking on this arduous task, I decided to return once more to the theory of quadratic residues, to complete all that still remained of that agenda, and thus to bid farewell to this sublime part of arithmetic.

FUNDAMENTAL THEOREM OF THE THEORY OF QUADRATIC RESIDUES, FIFTH PROOF

1.

In the introduction, we have already stated that the fifth and third proof proceed from the same lemma. As a matter of convenience, it seems appropriate to repeat it in this place, with notation adapted to the present discussion.

Template:Sc Let m be a prime number (positive odd), and let M be an integer not divisible by m. Consider the minimal positive residues of the numbers

M,2M,3M,4M,12(m1)M

modulo m. Some of these will be less than 12m and some will be greater; let the multitude of the latter =n. Then M will be a quadratic residue or non-residue modulo m, depending on whether n is even or odd.

Template:Sc Let those residues which are less than 12m be denoted by a, b, c, d etc., and let the rest, which are greater than 12m, be denoted by a, b, c, d etc. The complements modulo m of the latter, ma, mb, mc, md etc., will evidently all be less than 12m, and they will be distinct both among themselves and from the residues a, b, c, d, etc. Thus they will be identical, albeit in a different order, to the numbers 1, 2, 3, 412(m1). So, if we set

1×2×3×412(m1)=P

then

P=abcd×(ma)(mb)(mc)(md)

and thus

(1)nP=abcd×(am)(bm)(cm)(dm)

Furthermore, we have

PM12(m1)abcd×abcdabcd×(am)(bm)(cm)(dm)

modulo m, so

PM12(m1)P(1)n

Hence M12(m1)±1, where the sign is positive if n is even and negative if n is odd. Therefore, with the help of the theorem proved in Disquisitiones Arithmeticae art. 106, the truth of the lemma is immediately apparent.

2.

Template:Sc Let m, M be positive odd relatively prime integers, and let n be the multitude of numbers in the sequence

M,2M,3M12(m1)M

whose minimal positive residues modulo m are greater than 12m. Similarly, let N be the multitude of numbers in the sequence

m,2m,3m12(M1)m

whose minimal positive residues modulo M are greater than 12M. Then the three numbers n, N, 14(m1)(M1) will either be all even, or one will be even and the other two will be odd.

Template:Sc Let us denote

Template:Center

Thus n will indicate how many numbers Mf have their least positive residues modulo m in the complex f, and similarly N will indicate how many numbers mF have their least positive residues modulo M in the complex F. Finally, let us denote

Template:Center

Since every integer not divisible by m must be congruent, modulo m, to a residue from the complex f or from the complex f, and similarly every integer not divisible by M must be congruent to a residue from the complex F or from the complex F, it follows that all the numbers φ, among which obviously no one is divisible by both m and M, can be distributed into eight classes in the following way.

I. In the first class there will be those numbers which are congruent to some number from f modulo m, and congruent to some number from F modulo M. We will denote the multitude of these numbers by α.
II. Numbers congruent to numbers from f, F modulo m, M, respectively, the multitude of which we set =β.
III. Numbers congruent to numbers from f, F modulo m, M, respectively, the multitude of which we set =γ.
IV. Numbers congruent to numbers from f, F modulo m, M, respectively, the multitude of which shall be =δ.
V. Numbers divisible by m, and congruent to one of the residues from F modulo M.
VI. Numbers divisible by m, and congruent to one of the residues from F modulo M.
VII. Numbers divisible by M, congruent to one of the residues from f modulo m.
VIII. Numbers divisible by M, congruent to one of the residues from f modulo m.

Clearly, classes V and VI taken together will include all of the numbers mF. The multitude of numbers contained in VI will be =N, and hence the multitude of numbers contained in V will be 12(M1)N. Similarly, classes VII and VIII taken together will contain all numbers Mf, in class VIII there will be n numbers, and in class VII there will be 12(m1)n.

Similarly, all the numbers φ will be distributed into eight classes IX - XVI. If we maintain the same order, then it is easy to see that the numbers in the classes

Template:Center

are the complements modulo mM of the numbers in the classes

Template:Center

respectively, so that in class IX there will be δ numbers; in class X, there will be γ, and so on. Now, it is clear that if all the numbers of the first class are joined with all the numbers of the ninth class, one will have all the numbers below mM which are congruent to some number from f modulo m , and to some number from F modulo M. It is easily seen that the multitude of these is equal to the multitude of all combinations of one individual from f and one individual from F. Therefore,

α+δ=14(m1)(M1)

and by a similar argument

β+γ=14(m1)(M1)

By joining all numbers of classes II, IV, VI, we will clearly have all numbers below 12mM, which are congruent to some residue from F modulo M. Moreover, these same numbers can also be presented as follows:

F,M+F,2M+F,3M+F12(m3)M+F

from which the total number of them will be =14(m1)(M1), or in other words we will have

β+δ+N=14(m1)(M1)

Similarly, by joining the classes III, IV, VIII, it follows that

γ+δ+n=14(m1)(M1)

From this the following four equations arise:

2α=14(m1)(M1)+n+N2β=14(m1)(M1)+nN2γ=14(m1)(M1)n+N2δ=14(m1)(M1)nN

each of which demonstrates the truth of the theorem.

3.

If we now assume that m and M are prime numbers, the combination of the previous theorem with the lemma of article 1 immediately yields the fundamental theorem. For it is clear that,

I. Whenever one or both of m, M is of the form 4k+1, the number 14(m1)(M1) will be even, and therefore n and N will either be both even or both odd, and thus either m and M are both quadratic residues modulo each other, or both are quadratic non-residues modulo each other.
II. Whenever m, M are both of the form 4k+3, the number 14(m1)(M1) will be odd, hence one of the numbers n, N will be even and the other odd, and therefore one of the numbers m, M will be a quadratic residue modulo the other, and the other will be a quadratic non-residue modulo the one. Q. E. D.

FUNDAMENTAL THEOREM OF THE THEORY OF QUADRATIC RESIDUES, SIXTH PROOF.

1.

Template:Sc Let p be a prime number (odd positive), let n be a positive integer not divisible by p, and let x be an indeterminate quantity. Then the function

1+xn+x2n+x3n+etc.+xnpn

will be divisible by

1+x+xx+x3+etc.+xp1

Template:Sc Let g be a positive integer such that gn1(modp), and let gn=1+hp. Then we have

1+xn+x2n+x3n+etc.+xnpn1+x+xx+x3+etc.+xp1=(1xnp)(1x)(1xn)(1xp)=(1xnp)(1xgnx+xhp+1)(1xn)(1xp)=1xnp1xp1xgn1xnx(1xnp)1xn1xhp1xp

and therefore the function is clearly integral. Q. E. D.

It follows that any integral function of x which is divisible by 1xnp1xn, will also be divisible by 1xp1x.

2.

Let α denote a positive primitive root modulo p, i.e., let α be a positive integer such that the minimal positive residues of the powers 1, α, αα, α3, , αp2 modulo p are identical (without regard to order) to the numbers 1, 2, 3, 4, , p1. Furthermore, denoting the function

x+xα+xαα+xα3++xαp2+1

by f(x), it is clear that f(x)1xxxx3xp1 will be divisible by 1xp, and therefore a fortiori by 1xp1x=1+x+xx+x3++xp1. From this it follows, since x is an indeterminate quantity, that f(xn) will also be divisible by 1xnp1xn and consequently (by the previous article) also by 1xp1x, as long as n is an integer not divisible by p. Conversely, whenever n is an integer divisible by p, each part of the function f(xn), reduced by unity, will be divisible by 1xp. Therefore in this case, f(xn)p will also be divisible by 1xp, and consequently also by 1xp1x.

3.

Template:Sc If we set

xxα+xααxα3+xα4etc.xαp2=ξ

then ξξp will be divisible by 1xp1x, if we take the upper sign whenever p is of the form 4k+1 and the lower sign whenever p is of the form 4k+3.

Template:Sc It can easily be seen that, of the p1 functions

+xξxx+xα+1xαα+1+etc.+xαp2+1xαξx2α+xαα+αxα3+α+etc.+xαp1+α+xααξx2αα+xα3+ααxα4+αα+etc.+xαp+ααxα3ξx2α3+xα4+α3xα5+α3+etc.+xαp+1+α3

etc. up to

xαp2ξx2αp2+xαp1+αp2xαp+αp2+etc.+xα2p4+αp2

the first will be =0, and each of the others will be divisible by 1xp. Therefore, the sum of all these will also be divisible by 1xp. This sum is

=ξξ(f(xx)1)+(f(xα+1)1)(f(xαα+1)1)+(f(xα3+1)1)etc.+(f(xαp2+1)1)=ξξf(xx)+f(xα+1)f(xαα+1)+f(xα3+1)etc.+f(xαp2+1)=Ω

Therefore, this expression Ω will also be divisible by 1xp1x. Now among the exponents 2, α+1, αα+1, α3+1αp2+1, the only one divisible by p will be α12(p1)+1, and so by the previous article, the individual parts of the expression Ω,

f(xx),f(xα+1),f(xαα+1),f(xα3+1) etc.

except for the term f(xα12(p1)+1), will be divisible by 1xp1x. It is therefore permissible to delete those parts, and the remaining function

ξξf(xα12(p1)+1)

will still be divisible by 1xp1x. Above the sign will be positive or negative, depending on whether p is of the form 4k+1 or 4k+3. And since f(xα12(p1)+1)p is divisible by 1xp1x, it follows that ξξp will also be divisible by 1xp1x. Q.E.D.

To avoid any ambiguity from the double sign, we will denote by ε the number +1 or 1, according to whether p is of the form 4k+1 or 4k+3. Therefore,

(1x)(ξξεp)1xp

will be an integral function of x, which we will denote by Z.

4.

Let q be a positive odd number, so that 12(q1) an integer. Then (ξξ)12(q1)(εp)12(q1) will be divisible by ξξεp, and therefore also by 1xp1x. If we set ε12(q1)=δ, and

ξq1δp12(q1)=1xp1xY

then Y will be an integral function of x, and we will have δ=+1 whenever one of the numbers p, q, or both, is of the form 4k+1; on the other hand, we will have δ=1 whenever both p, q are of the form 4k+3.

5.

Now, let us assume that q is also a prime number (different from p). Then it is clear from the theorem proven in Disquisitiones Arithmeticae, art. 51, that

ξq(xqxqα+xqααxqα3+etc.xqαp2)

is divisible by q, or of the form qX, where X is an integral function of x, even with respect to its numerical coefficients (which also applies to the other integral functions occurring here, Z, Y, W). Let us denote by μ the index of the number q with respect to the primitive root α modulo p, i.e. let qαμ(modp). Then the numbers q, qα, qαα, qα3qαp2 will be congruent to αμ, αμ+1, αμ+2αp2, 1, α, αααμ1 modulo p, and thus

xqxαμxqαxαμ+1xqααxαμ+2xqα3xαμ+3xqαpμ2xαp2xqαpμ1xxqαpμxαxqαpμ+1xααxqαp2xαμ1

will all be divisible by 1xp. Taking these quantities alternately positively and negatively, and adding them all up, it is clear that the function

xqxqα+xqααxqαα3+etc.xqαp2ξ

will be divisible by 1xp, provided that the sign is taken to be positive or negative depending on whether μ is even or odd, i.e. depending on whether q is a quadratic residue or non-residue modulo p. Therefore, let us set

xqxqα+xqαxqα3+etc.xqαp2γξ=(1xp)W

where γ=+1 or γ=1 depending on whether q is a quadratic residue or non-residue modulo p. Then it is clear that W will be an integral function.

6.

Having made these preparations, we deduce by combining the preceding equations that

qξX=εp(δp12(q1)γ)+1xp1x(Z(δp12(q1)γ)+YξξWξ(1x))

Suppose that upon dividing the function ξX by

xp1+xp2+xp3+etc.+x+1

we obtain a quotient U and remainder T, or in other words we have

ξX=1xp1xU+T

where U and T are integral functions, even with respect to their numerical coefficients, and the degree of T is lower than the divisor. Then we will have

qTεp(δp12(q1)γ)=1xp1x(Z(δp12(q1)γ)+YξξWξ(1x)qU)

which is obviously false unless the left member and the right member both vanish individually. Thus εp(δp12(q1)γ) will be divisible by q, and also δp12(q1)γ, and therefore, because δδ=1, the number p12(q1)γδ will be divisible by q.

Now if β denotes a positive or negative unit, depending on whether p is a quadratic residue or non-residue modulo q, then p12(q1)β will be divisible by q, and therefore so will be βγδ, which cannot happen unless β=γδ. Hence, the fundamental theorem follows automatically. Namely,

I. Whenever both p, q, or one of them alone, is of the form 4k+1, and consequently δ=+1, we will have β=γ, and thererfore either q is a quadratic residue mduloo p, and p is simultaneously a quadratic residue modulo q, or q is a quadratic non-residue modulo p, and simultaneously p is a quadratic non-residue modulo q.
II. Whenever both p, q are of the form 4k+3, and consequently δ=1, we will have β=γ, and therefore either q is a quadratic residue modulo p, and simultaneously p is a quadratic non-residue modulo q, or q is a non-residue modulo p, and simultaneously p is a residue modulo q. Q. E. D.

A new algorithm for determining whether a given positive integer is a quadratic residue or non-residue modulo a given prime.

1.

Before we present a new solution to this problem, we will briefly repeat the solution given in Disquisitiones Arithmeticae, which was accomplished quite expediently with the help of the fundamental theorem and the following well-known theorems:

I. The relation of a number a to a number b (insofar as the former is a quadratic residue or non-residue modulo the latter) is the same as the relation of a number c to b, if ac(modb).
II. If a is a product of factors α, β, γ, δ, etc., and b is a prime number, then the relation of a to b will depend on the relation of these factors to b, so that a will be a quadratic residue or non-residue depending on whether there is an even or odd number of such factors which are quadratic non-residues modulo b. Thus, whenever any factor is a square, it will not be considered at all in this examination; and if any factor is a power of an integer with an odd exponent, it can be replaced with that integer instead.
III. The number 2 is a quadratic residue modulo any prime number of the form 8m+1 or 8m+7, and a non-residue modulo any prime number of the form 8m+3 or 8m+5.

Therefore, given a number a whose relation to the prime number b is sought, we first substitute the minimal positive residue of a modulo b in place of a. Then, after resolving this residue into its prime factors, the problem is reduced by theorem II to the determination of the relations of each of these factors to b. The relation of the factor 2 (if it is present an odd number of times) to b is known by theorem III. The relations of the remaining factors to b known by the fundamental theorem. Thus instead of the relation of the given number to the prime number b, we must now investigate the relations of b to certain other odd primes smaller than b, and these problems will be reduced in the same way to smaller moduli, and it is clear that these successive reductions will eventually be exhausted.

2.

To illustrate this solution by an example, let us seek the relation of the number 103 to 379. Since 103 is already less than 379, and is itself a prime number, the fundamental theorem must be applied immediately, which tells us that the relation we seek is the opposite of the relation of the number 379 to 103. This in turn is equal to the relation of the number 70 to 103, which depends on the relations of the numbers 2, 5, 7 to 103. The first of these relations is revealed by theorem III. The second, by the fundamental theorem, depends on the relation of the number 103 to 5, which by theorem I is equal to the relation of the number 3 to 5; this, in turn, by the fundamental theorem, depends on the relation of the number 5 to 3, which by theorem I is equal the relation of the number 2 to 3, which is known by theorem III. Likewise, the relation of the number 7 to 103 depends, by the fundamental theorem, on the relation of the number 103 to 7, which by theorem I is equal to the relation of the number 5 to 7; this, in turn, by the fundamental theorem, depends on the relation of the number 7 to 5, which is equal, by theorem I, to the relation of the number 2 to 5, which is known by theorem III. If one prefers to transform this analysis into a synthesis, the decision of the question will be referred to the fourteen points, which we present here in full, so that the greater concision of the new solution may be the more clearly understood.

  1. The number 2 is a quadratic residue modulo 103 (theorem III).
  2. The number 2 is a quadratic non-residue modulo 3 (theorem III).
  3. The number 5 is a quadratic non-residue modulo 3 (by 1 and 2).
  4. The number 3 is a quadratic non-residue modulo 5 (fund. theorem and 3).
  5. The number 103 is a quadratic non-residue modulo 5 (1 and 4).
  6. The number 5 is a quadratic non-residue modulo 103 (fund. theorem and 5).
  7. The number 2 is a quadratic non-residue modulo 5 (theorem III).
  8. The number 7 is a quadratic non-residue modulo 5 (1 and 7).
  9. The number 5 is a quadratic non-residue modulo 7 (fund. theorem and 8).
  10. The number 103 is a quadratic non-residue modulo 7 (1 and 9).
  11. The number 7 is a quadratic residue modulo 103 (fund. theorem and 10).
  12. The number 70 is a quadratic non-residue modulo 103 (II, 1, 6, 11).
  13. The number 379 is a quadratic non-residue modulo 103 (1 and 12).
  14. The number 103 is a quadratic residue modulo 379 (fund. theorem and 13).

In the following, for the sake of brevity, we will use the notation introduced in Comment. Gotting. Vol. XVI. Namely, by [x] we will denote the quantity x itself, if x is an integer, or the greatest integer smaller than x, if x is a fractional quantity, so that x[x] is always a non-negative quantity less than unity.

3.

Template:Sc If a and b are positive integers which are relatively prime to each other, and [12a]=a, evaluate the sum

[ba]+[2ba]+[3ba]+[4ba]+etc.+[aba]

Template:Sc For the sake of brevity, let us denote the sum in question by φ(a,b), so that

φ(b,a)=[ab]+[2ab]+[3ab]+etc.+[bab]

if we set [12b]=b. It was shown in the demonstration of the third fundamental theorem that in the case where a and b are both odd, we have

φ(a,b)+φ(b,a)=ab

As we already mentioned there, the truth of this proposition can also be extended to the case where only one of the numbers a, b is odd, by following the same method. Let a be divided by b in a manner analogous to the method by which the greatest common divisor of two integers is investigated, let β be the quotient, and let c be the remainder; then divide b by c and so on in a similar manner, so as to obtain equations

a=βb+cb=γc+dc=δd+ed=εe+f etc.

In this way, through a series of continually decreasing numbers b, c, d, e, f etc., we shall eventually arive at unity, since by hypothesis a and b are coprime. Then the final equation will be

k=λl+1

We clearly have

[ab]=[β+cb]=β+[cb][2ab]=[2β+2cb]=2β+[2cb][3ab]=[3β+3cb]=3β+[3cb]

etc., so

φ(b,a)=φ(b,c)+12β(bb+b)

and therefore

φ(a,b)=ab12β(bb+b)φ(b,c)

By similar reasoning, if we set [12c]=c, [12d]=d, [12e]=e etc., then

φ(b,c)=bc12γ(cc+c)φ(a,d)φ(c,d)=cd12δ(dd+d)φ(d,e)φ(d,e)=de12ε(ee+e)φ(e,f)

etc. up to

φ(k,l)=kl12λ(ll+l)φ(l,1)

Therefore, since it is obvious that φ(l,1)=0, we obtain the formula

φ(a,b)=abbc+cdde+etc.±kl12β(bb+b)+12γ(cc+c)12δ(dd+d)+12ε(ee+e)etc.12λ(ll+l)

4.

It is easily concluded from what was set forth in the third proof, that the relation of the number b to a, whenever a is a prime number, is automatically known from the value of the sum φ(a,2b). Namely, b will be a quadratic residue or non-residue modulo a according to whether this sum is an even or odd number. The sum φ(a,b) itself can be used for the same purpose, but with the restriction that the case where b is odd must be distinguished from the case where it is even. Specifically,

I. Whenever b is odd, b will be a quadratic residue or non-residue modulo a, depending on whether φ(a,b) is even or odd.
II. Whenever b is even, the same rule will hold, if in addition a is of the form 8n+1 or of the form 8n+7. If however, for an even value of b the modulus a is of the form 8n+3 or 8n+5, the opposite rule must be applied, namely that b will be a quadratic residue modulo a if φ(a,b) is odd, but it will be a non-residue if φ(a,b) is even.

All of this is very easily derived from article 4 of the third proof.

5.

Example. If the ratio of the number 103 to the prime number 379 is sought, then to find the sum φ(379,103), we first compute

a=379a=189b=103b=051β=3c=070c=035γ=1d=033d=016δ=2e=004e=002ε=8

hence

φ(379,103)=96391785+560323978+630272+24=4786

and thus 103 is a quadratic residue modulo 379. If we want to use the sum φ(379,206) for the same purpose, we have the following pattern,

379189206103117386133165844

from which we deduce

φ(379,206)=194678858+1376645356+3741680+40=9666

and thus 103 is a quadratic residue modulo 379.

6.

Since in order to determine the relation of b to a, it is not necessary to compute each part of the aggregate φ(a,b), but rather it is sufficient to know how many of them are odd, our rule can also be expressed as follows:

Let a=βb+c, b=γc+d, c=δd+e etc., until the series of numbers a, b, c, d, e etc. reaches unity. Set [12a]=a, [12b]=b, [12c]=c etc., and let μ be the multitude of odd numbers in the series a, b, c etc. which are immediately followed by an odd number; further, let ν be the multitude of odd numbers in the series β, γ, δ etc., such that the corresponding number in the series b, c, d etc. is of the form 4n+1 or 4n+2. With this being done, b will be a quadratic residue or non-residue modulo a, depending on whether μ+ν is even or odd, except in the case where b is even and a is of the form 8n+3 or 8n+5, in which case the opposite rule holds.

In our example, the sequence a, b, c, d, e has two consecutive pairs of odd numbers, hence μ=2, and in the series b, c, d, e, there are two odd numbers, but the corresponding numbers in b, c, d, e are of the form 4n+3, hence ν=0. Therefore, μ+ν is even, and it follows that 103 is a quadratic residue modulo 379.

  1. Two have been set forth in the Disquisitiones Arithmeticae, Sections four and five; the third in a separate treatise (Commentt. Soc. Gotting. Vol. XVI), the fourth is included in the treatise: Summation of certain singular series (Commentt. Recentiores, Vol. I).