Learning number theory with Gauß/Congruent numbers

From testwiki
Jump to navigation Jump to search

Definition and elementary theorems

Template:TextBox Template:Wikipedia

Template:TextBox

Proof:

First we note that n|(a+mna) for each m. Then let n|(ba), i. e. ba=mn for an m. Then b=a+mn.

Template:TextBox

Proof 1:

We prove the corollary from theorem 1.2.

Reflexivity: Setting m=0, we note that aamodn.

Symmetry: Let abmodn, i.e. b=a+mn. Then a=b+(m)n, where m.

Transitivity: Let abmodn and bcmodn, i.e. b=a+mn and c=b+ln. Then c=a+(m+l)n.

Proof 2:

We prove the corollary directly.

Reflexivity: n|(aa).

Symmetry: abmodnn|(ba)n|(ab)bamodn.

Transitivity: n|(ba) and n|(cb) implies ba=sn, cb=tn for some s,t. Hence, ca=cb+ba=(s+t)n.

Template:TextBox

Template:TextBox

Template:Wikipedia

Proof:

Consider the set

S:=0{a+tn|t}.

Since this set by definition is contained in , it has a least element. Call this element r. By definition, we obtain the existence of t such that

a=(t)n+r.

We define s=t. Assume r>n1. Then rnS, contradicting the minimality of r.

We note at this point that rings R for which the above theorem holds with R instead of and (and a couple of more modifications, see the Wikipedia article) are called Euclidean rings. Template:Wikipedia

Theorem 1.6:

There are exactly n different congruency classes modulo n, where n.

Proof 1:

We prove the theorem from division with remainder.

We claim that 0,,n1 define pairwise different congruency classes. Indeed, assume that two of those elements defined the same congruency class, call them k and j. Then n|(jk), and hence in particular jk=0 or jkn. The latter is a contradiction since we may make j as large as possible and k as small as possible.

Let now a. By division with remainder, we obtain a=sn+r,s,0rn1. Then armodn, where r is in the range 0,,n1.

In summary, we obtain that each element 0,,n1 represents a distinct congruency class, and further that each other number is contained in one of the congruency classes represented by these elements. Since they are n many, the theorem follows.

Proof 2:

We prove the theorem from Corollary 1.7 (this is not nonsensical because we give two proofs of this corollary which are not based upon this lemma).

First of all, we note that 0,,n1 define pairwise different congruency classes, since if b{0,,n1}, by corollary 1.7 there exists exactly one number among 0,,n1 congruent to b (b itself).

Then we note that each congruence class is represented by at least one b, which in turn by corollary 1.7 is congruent to one of the elements 0,,n1. Hence, each congruence class is represented by an element in {0,,n1}. Since these are exactly n different elements, the theorem follows.

Template:TextBox

Proof 1:

We prove the corollary using theorem 1.2.

Indeed, by theorem 1.2 the integers congruent to b modulo n are given exactly by b+mn,m. Assume none of those integers were contained within {a,a+1,,a+n1}. Define m0 to be the largest integer such that b+m0n<a and m1 to be the smallest integer such that a+n1<m1. By assumption m1=m0+1, since otherwise m=m0+1 would be larger than the largest integer m0 such that b+m0n<a and smaller than the smallest integer m1 such that a+n1<m1 and hence ab+mna+n1 contrary to our assumption. But the difference between b+m0n and b+m1n=b+(m0+1)n is exactly n, and in particular there are n1 numbers enclosed between the two. This contradicts the assumption that the numbers {a,a+1,,a+n1} are enclosed within the two; those are n different numbers.

Assume two of the integers {a,a+1,,a+n1} were congruent to b modulo n. Call them a+j and a+l. Then a+j=b+sn, a+l=b+tn for some s,t by theorem 1.2. Hence, jl=(st)n. In particular, the difference between l and j is either zero or greater or equal to n in contradiction to the fact that the difference between any to numbers within {a,a+1,,a+n1} is less or equal to n1 (for, we may maximise the difference by moving the lower element to a and the higher element to a+n1).

Proof 2:

We prove the corollary using theorem 1.2 and fractions.

If abn is an integer, then abmodn. Otherwise, abn is a fraction. Let k be the next larger integer. Then

a=b+abnn<b+kn<b+ab+nnn=a+n

and hence b+kn is contained within {a,a+1,,a+n1}. Since furthermore for all l{0,,n1}

k1<abna+lbn<a+nbn<k+1,

only one of the fractions a+lbn can be an integer, which is equivalent to n|(a+lb).

Proof 3:

We prove the corollary from the notion of congruence classes and lemma 1.6.

Indeed, in complete analogy to lemma 1.6, we prove that a,,a+n1 represent pairwise distinct congruence classes. Since there are exactly n many of them, the elements a,,a+n1 indeed represent all of the congruency classes. Since the equivalence classes of any equivalence relation form a partition, we conclude that each b is congruent to one of a,,a+n1.

Residues

Template:TextBox

From theorem 1.2 now directly follows that the residues modulo n of a are exactly the numbers

a+mn,m.

Lemma 1.8

Let a and n. Then a has exactly one residue within {(n1),,1,0} and exactly one residue within {0,1,,n1}. They coincide if and only if n|a.

Proof:

This follows from corollary 1.6 with a=(n1) or a=0 respectively.

Template:TextBox

Template:TextBox

Proof:

We have n|(aj) and hence n|(a+nj), i.e. n|(a(jn)). We separate four cases:

  1. |j|=0. Then since j=|j|, zero is the positive least residue and the negative least residue at once.

Template:TextBox

The rings of residue classes

Divisibility criteria

Template:TextBox

Proof:

Since 101mod9 (and hence 101mod3), we have

j=0naj10jj=0najmodk, k{3,9}.

Exercises

  • Exercise 1.?.1:

Template:BookCat