Translation:Theorematis arithmetici demonstratio nova

1.
Questions in higher arithmetic lead frequently to singular phenomena, much more so than in analysis, and this contributes a great deal to their allure. In analytical investigations it is evidently impossible to discover new truths, unless the way to them has been revealed by our mastery of their underlying principles. On the other hand, in arithmetic it is very often the case that, through induction and by some unexpected fortune, the most elegant new truths spring up, the demonstrations of which are so deeply hidden and shrouded in so much darkness, that they elude all efforts, and deny access to the keenest investigations. Furthermore, there are so many surprising connections between arithmetic truths, which are at first sight most heterogeneous, that we not infrequently arrive at a demonstration much desired and sought after through long meditations, by a path very different from that which had been expected, while we are looking for something quite different. Generally speaking, truths of this kind are of such a nature that they can be approached by several very different paths, and it is not always the shortest paths that present themselves at first. With such a truth, which has been demonstrated through the most abstruse detours, it is certainly valuable if one happens to discover a simpler and more genuine explanation.

2.
Among the questions mentioned in the preceding article, a prominent place is held by the theorem containing almost all the theory of quadratic residues, which in Disquisitiones Arithmeticae (Sect. IV) is distinguished by the name fundamental theorem. Legendre is undoubtedly to be regarded as the first discoverer of this most elegant theorem, although the great geometers Euler and Lagrange had long before discovered several of its special cases by induction. I will not dwell here on enumerating the efforts of these men to find a demonstration; the reader is referred to their extensive work which has just been mentioned. However it is permissible to add, in confirmation of what has been stated in the previous article, an account of my own efforts. I had fallen upon the theorem on my own in 1795, at a time when I was completely ignorant of all that had already been discovered in higher arithmetic, and was completely shut out from literary resources. For a whole year it tortured me, and eluded me despite my most strenuous efforts, until at last I received the demonstration that I have delivered in the fourth Section of the aforementioned work. Afterwards, three others presented themselves to me, based on entirely different principles, one of which I delivered in the fifth Section. But all these demonstrations, even if they seem to leave nothing to be desired with regard to rigor, are derived from very heterogeneous principles, except perhaps the first, which nevertheless proceeded by more laborious reasoning, and was burdened by more extensive operations. Therefore, I have no doubt that until now a genuine demonstration has not been given; let it now be up to the experts to judge whether that which has lately been successfully discovered, and which the following pages present, deserves to be decorated with this name.

3.
Let $p$ be a positive prime number, and let $k$  any integer not divisible by $p;$ 

$A$ the complex of numbers $1,$ $2,$ $3 \ldots \frac{1}{2}(p-1)$ $B$ the complex of numbers $\frac{1}{2}(p+1),$  $ \frac{1}{2}(p+3),$  $\frac{1}{2}(p+5) \ldots p-1$

Let us consider the minimal positive residues modulo $p$ of the products of $k$  with each of the numbers in $A.$  These will obviously all be different, with some belonging to $A$  and others to $B.$  Now if it is assumed that, among the resulting residues, $\mu$  of them belong to $B,$  then $k$  will either be a quadratic residue or a quadratic non-residue modulo $p,$  according as $\mu$  is even or odd.

Proof. Let the residues belonging to $A$ be $a,$  $a^{\prime},$  $a^{\prime \prime} \ldots,$  and let the remaining residues belonging to $B$  be $b,$  $b^{\prime},$  $b^{\prime \prime} \ldots.$  It is clear that the complements of the latter, $p-b,$  $p-b^{\prime},$  $p-b^{\prime \prime} \ldots,$  are all distinct from the numbers $a,$  $a^{\prime},$  $a^{\prime \prime} \ldots,$  and that, taken together, they complete the complex $A.$  We therefore have

$$1 . 2 . 3 \ldots \frac{1}{2}(p-1)=a a^{\prime} a^{\prime \prime} \ldots(p-b)(p-b^{\prime})(p-b^{\prime \prime}) \ldots$$

Now the latter product clearly becomes

$$\begin{align}& \equiv(-1)^{\mu} a a^{\prime} a^{\prime \prime} \ldots b b^{\prime} b^{\prime \prime} \ldots \equiv(-1)^{\mu} k. 2 k .3 k \ldots \frac{1}{2}(p-1) k \\& \equiv(-1)^{\mu} k^{\frac{1}{2}(p-1)} 1.2 .3 \ldots \frac{1}{2}(p-1) \quad\pmod{p}\end{align}$$

Hence we have

$$1 \equiv(-1)^{\mu} k^{\frac{1}{2}(p-1)}$$

or $k^{\frac{1}{2}(p-1)} \equiv \pm 1,$ according as $\mu$  is even or odd, from which our theorem immediately follows.

4.
The following considerations will be greatly shortened by the introduction of certain notation. We therefore let the symbol $(k, p)$ denote the multitude of residues of the products

$$k, 2k, 3k, \ldots, \frac{1}{2}(p-1)k,$$

whose minimal positive residues exceed $\frac{1}{2}p.$ Moreover, for any non-integral quantity $x,$  we denote by $[x]$  the greatest integer less than or equal to $x,$  so that $x-[x]$  is always a positive quantity between $0$  and $1.$  We can then easily derive the following relations:


 * I. $[x]+[-x]=-1.$


 * II. $[x]+h=[x+h],$ whenever $h$  is an integer.


 * III. $[x]+[h-x]=h-1.$


 * IV. If $x-[x]$ is a fraction smaller than $\frac{1}{2},$  then $[2x]-2[x]=0;$  if it is greater than $\frac{1}{2},$  then $[2x]-2[x]=1.$


 * V. If the minimal positive residue of an integer $h$ exceeds $\frac{1}{2}p$  modulo $p,$  then $\left[\frac{2h}{p}\right]-2\left[\frac{h}{p}\right]=0;$  if it is less than or equal to $\frac{1}{2}p$  modulo $p,$  then $\left[\frac{2h}{p}\right]-2\left[\frac{h}{p}\right]=1.$


 * VI. From this it immediately follows that $(k, p)=$

$$\begin{aligned}{\left[\frac{2k}{p}\right]+\left[\frac{4k}{p}\right]+\left[\frac{6k}{p}\right] \ldots+\left[\frac{(p-1)k}{p}\right]} \\-2\left[\frac{k}{p}\right]-2\left[\frac{2k}{p}\right]-2\left[\frac{3k}{p}\right] \ldots-2\left[\frac{\frac{1}{2}(p-1)k}{p}\right].\end{aligned}$$


 * VII. From VI and I, we can easily deduce

$$(k, p)+(-k, p)=\frac{1}{2}(p-1)$$


 * Hence, it follows that $-k$ has the same or opposite relation to $p$  (insofar as it is a quadratic residue or non-residue) as does $+k,$  depending on whether $p$  is of the form $4n+1$  or $4n+3.$  It is clear that in the former case, $-1$  will be a quadratic residue modulo $p,$  whereas in the latter case, it will be a quadratic non-residue.


 * VIII. We will transform the formula given in VI as follows. From III, we have

$$\left[\frac{(p-1)k}{p}\right] \equiv k-1-\left[\frac{k}{p}\right], \left[\frac{(p-3)k}{p}\right]=k-1-\left[\frac{3k}{p}\right], \left[\frac{(p-5)k}{p}\right]=k-1-\left[\frac{5k}{p}\right] \ldots$$


 * Applying these substitutions to $\frac{p \mp 1}{4}$ terms in the series above, we have


 * first, if $p$ is of the form $4n+1,$  then

$$\begin{aligned} (k, p)= & \frac{1}{4}(k-1)(p-1) \\&-2\left\{\left[\frac{k}{p}\right]+\left[\frac{3k}{p}\right]+\left[\frac{5k}{p}\right] \ldots+\left[\frac{\frac{1}{2}(p-3)k}{p} \right]\right\} \\&-\left\{\left[\frac{k}{p}\right]+\left[\frac{2k}{p}\right]+\left[\frac{3k}{p}\right] \ldots+\left[\frac{\frac{1}{2}(p-1)k}{p}\right]\right\} \end{aligned}$$


 * second, if $p$ is of the form $4n+3,$  then

$$\begin{aligned}(k, p)=&\frac{1}{4}(k-1)(p+1) \\&-2\left\{\left[\frac{k}{p}\right]+\left[\frac{3k}{p}\right]+\left[\frac{5k}{p}\right] \ldots+\left[\frac{\frac{1}{2}(p-1)k}{p}\right]\right\} \\&-\left\{\left[\frac{k}{p}\right]+\left[\frac{2k}{p}\right]+\left[\frac{3k}{p}\right] \ldots+\left[\frac{\frac{1}{2}(p-1)k}{p}\right]\right\} \end{aligned}$$


 * IX. For the special case $k=+2,$ it follows from the formulas given above that $(2, p)=\frac{1}{4}(p \mp 1),$  with the sign being taken as $+$  or $-$  depending on whether $p$  is of the form $4n+1$  or $4n+3.$  Thus, $(2, p)$  is even and $2 R p,$  whenever $p$  is of the form $8n+1$  or $8n+7;$  on the contrary, $(2, p)$  is odd and $2 N p,$  whenever $p$  is of the form $8n+3$  or $8n+5.$

5.
''Let $x$ be a positive non-integer quantity such that no integer can be found among its multiples $x,$  $2x,$  $3x \ldots$  up to $nx$. Letting $[nx]=h,$ it is easily concluded that no integer can be found among the multiples of the reciprocal quantities $\frac{1}{x},$  $\frac{2}{x},$  $\frac{3}{x} \ldots$  up to $\frac{h}{x}.$  Then I say that''

$$\left.\begin{array}{l} \phantom{+}[x]+[2x]+[3x]\dots+[nx] \\ +\left[\frac{1}{x}\right]+\left[\frac{2}{x}\right]+\left[\frac{3}{x}\right] \ldots+\left[\frac{h}{x}\right] \end{array}\right\}=nh$$

Proof. Let $\Omega$ represent the series $[x]+[2x]+[3x] \ldots+[nx].$  Then the terms up to the $\left[\frac{1}{x}\right]^{\text{th}}$  term inclusively are clearly all $=0;$  the terms up to the $\left[\frac{2}{x}\right]^{\text{th}}$  term inclusively are all $=1;$  the terms up to the $\left[\frac{3}{x}\right]^{\text{th}}$  term inclusively are all $=2$  and so on. Hence we have

$$\left. \begin{array}{rl}\Omega&= 0 \times\left[\frac{1}{x}\right] \\ &+1 \times\left\{\left[\frac{2}{x}\right]-\left[\frac{1}{x}\right]\right\} \\& +2 \times\left\{\left[\frac{3}{x}\right]-\left[\frac{2}{x}\right]\right\} \\& +3 \times\left\{\left[\frac{4}{x}\right]-\left[\frac{3}{x}\right]\right\} \\&\qquad \text{etc.} \\& +(h-1)\left\{\left[\frac{h}{x}\right]-\left[\frac{h-1}{x}\right]\right\} \\& +h\left\{n-\left[\frac{h}{x}\right]\right\}\end{array}\right\}=hn-\left[\frac{1}{x}\right]-\left[\frac{2}{x}\right]-\left[\frac{3}{x}\right] \ldots-\left[\frac{h}{x}\right]$$

Q. E. D.

6.
''Let $k,$ $p$  be any odd positive integers that are prime to each other. Then''

$$\left.\begin{array}{l} \phantom{+} {\left[\frac{k}{p}\right]+\left[\frac{2 k}{p}\right]+\left[\frac{3 k}{p}\right] \ldots+\left[\frac{\frac{1}{2}(p-1) k}{p}\right]} \\+ {\left[\frac{p}{k}\right]+\left[\frac{2 p}{k}\right]+\left[\frac{3 p}{k}\right] \ldots+\left[\frac{\frac{1}{2}(k-1) p}{k}\right]}\end{array}\right\}=\frac{1}{4}(k-1)(p-1).$$

Proof. Suppose, which is allowed, that $k<p.$ Then $\frac{\frac{1}{2}(p-1) k}{p}$  is smaller than $\frac{1}{2} k,$  but larger than $\frac{1}{2}(k-1),$  so $\left[\frac{\frac{1}{2}(p-1) k}{p}\right]=\frac{1}{2}(k-1).$  Hence, it is clear that the current theorem follows immediately from the previous theorem by taking $\frac{k}{p}=x,$  $\frac{1}{2}(p-1)=n,$  and therefore $\frac{1}{2}(k-1)=h.$

It can be demonstrated in a similar manner that if $k$ is an even number, relatively prime to $p,$  then

$$\left.\begin{array}{l} \phantom{+}\left[\frac{k}{p}\right]+\left[\frac{2 k}{p}\right]+\left[\frac{3 k}{p}\right] \ldots+\left[ \frac{\frac{1}{2}(p-1) k}{p}\right] \\+\left[\frac{p}{k}\right]+\left[\frac{2 p}{k}\right]+\left[\frac{3 p}{k}\right] \ldots+\left[\frac{\frac{1}{2} k p}{k}\right] \end{array} \right\}=\frac{1}{4} k(p-1)$$

But we do not dwell on this proposition, which is not necessary for our purposes.

7.
Now, by combining the theorem mentioned above with proposition VIII of article 4, the fundamental theorem immediately follows. Indeed, let $k$ and $p$  be any two distinct positive prime numbers, and let

$$\begin{aligned} (k, p)+\left[\frac{k}{p}\right]+\left[\frac{2 k}{p}\right]+\left[\frac{3 k}{p}\right] \ldots+\left[\frac{\frac{1}{2} (p-1) k}{p}\right] &=L\\ (p, k)+\left[\frac{p}{k}\right]+\left[\frac{2 p}{k}\right]+\left[\frac{3 p}{k}\right] \ldots+\left[\frac{\frac{1}{2} (k-1) p}{k}\right] &= M \end{aligned}$$

Then by proposition VIII of article 4, it is clear that $L$ and $M$  are always even. But by the theorem of Article 6, we have

$$L+M=(k, p)+(p, k)+\frac{1}{4}(k-1)(p-1)$$

Therefore, when $\frac{1}{4}(k-1)(p-1)$ turns out to be even, which occurs if either both $k$  and $p$  are of the form $4n+1$  or if one of them is of the form $4n+1,$  it is necessary that either both $(k, p)$  and $(p, k)$  are even or both are odd. On the other hand, when $\frac{1}{4}(k-1)(p-1)$ is odd, which happens if both $k$  and $p$  are of the form $4n+3,$  it is necessary that one of the numbers $(k, p)$  and $(p, k)$  is even and the other is odd. In the former case, then, the relation of $k$ to $p$  and the relation of $p$  to $k$  (insofar as one is a quadratic residue or non-residue modulo the other) will be identical, and in the latter case they will be opposite.

Q. E. D.