Algebra and Number Theory Lecture Notes
Total Page:16
File Type:pdf, Size:1020Kb
∗ Algebra and Number Theory Lecture Notes Szymon Brzostowski December 5, 2013 This text is intended to be a more detailed, or rather – a more intuitive, version of the lecture itself. In order to get the most of it, I recommend reading it with your class notes at hand. Hopefully, this should allow for full comprehension of the material given. Notation. The symbol „ ” will denote an assignment, for example a 2 means that the name a carries the value 2. More generally, „ ” can be treated as a defi- nition of a new concept (on its left side) using already known concepts (appearing on its right side). We will also abbreviate the phrase „if and only if” as „iff”. Table of contents 1 Numbers and operations ................................. 3 2 Which numbers are „best”? ............................... 5 3 The first abstraction – the concept of a group .................. 7 4 ...Divisibility in Z ...................................... 9 5 ...Second abstraction – the concept of a ring .................. 11 6 The concept of an isomorphism ........................... 12 7 The direct sum ....................................... 15 8 The third abstraction – the concept of a field ................. 17 9 Congruences ......................................... 18 10 GCD ............................................. 20 ∗ . This document has been written using the GNU TEXMAC S text editor (see www.texmacs.org). 2 Szymon Brzostowski 11 Solving a x b and a x = b ............................ 23 · ≡ n · n 12 The group G n and the ϕ function ......................... 26 13 Fermat’s little theorem and its generalizations ................ 29 14 Chinese remainder theorem ............................. 34 15 The prime numbers ................................... 37 16 Systems of linear equations ............................. 41 16.1 Fromonetoseveralequations . ..... 41 16.2 Triangular systems and back substitution . ........ 44 16.3 Matrixnotationforalinearsystem . ...... 45 16.4 Rowechelonformofamatrix ........................ 49 Further reading ......................................... 49 1. Numbers and operations 3 1 Numbers and operations We begin by setting the terminology for the basic number sets: the naturals (=positive integers): N 1 , 2, 3, , → { } the integers : Z 0, 1 , 2, 3, , → { ± ± ± } p Q Z N the rationals : q : p , q , → n ∈ ∈ o √ the reals : R; it is a set larger than Q; it contains e.g. the radicals ( √2 , 3 , 10√10 → 3 √5 4 +√ 7 , ) and also other numbers, like p, e, p + 1 , . p Note that by convention 0 N. The symbol N will denote the set N 0 . 0 ∪ { } There is one more set of numbers, easily constructed from R: the complex numbers : C a + b i: a, b R . Here two complex numbers are → { ∈ } added and multiplied similarly as polynomials, but further simplification of the result is possible because the new number „i” satisfies i2 =ii= 1 . − Clearly, we have the following chain of inclusions: N $ Z $ Q $ R $ C. Example. 1. Here’s how you add two complex numbers: (2+i)+(1 i) = 2+i+1 i = 3+(1 1) i=3+0 i = 3. − skip the brackets − collect similar terms − · · 2. And here is multiplication: (2+i) (1 i) = 2 (1 i)+i (1 i) = · − use the distributive law · − · − = 2 2 i + 1 i i i = distributive law again − · · − · = 2 + ( 2+1) i ( 1) = 3 i. use the relation for i2 − · − − collect similar terms − Analyzing the first example above, it is not hard to produce a general rule for the addition of complex numbers: Addition Rule in C. ( a + b i) + ( c + d i) ( a + c) + ( b + d) i. a,b,c,d R ∀ ∈ (The universal quantifier is read „for all”.) ∀ A similar formula for the product of two complex numbers holds ( try to find it yourself! ): Multiplication Rule in C. ( a + b i) ( c + d i) ( a c b d) + ( a d + b c) i. a,b,c,d R · · − · · · · ∀ ∈ 4 Szymon Brzostowski Observe that thanks to using symbols instead of specific numbers, above there are formulas that work for every choice of (real) values of a,b,c,d. So although it is enough How for you to know how to calculate with complex numbers to arrive at the correct result, Algebra these formulas give you the result almost automatically once you remember them. In works algebra you generally work with symbols and you calculate using a certain set of rules for manipulating the symbols. Some of these rules you should already be familiar with. The basic rules for computations with numbers are 2+1=1+2, 1 + 1 = 1 + 1 , and – in symbols – → 2 3 3 2 a + b = b + a ( commutativity ) (This law allows you to change the order of the summands.) ( 1+2)+ 3 = 1 + 3 = 5 = 1 + 7 = 1 + 2 + 3 , and – in symbols – → − 2 2 2 − 2 − 2 a + ( b + c) = ( a + b) + c ( associativity ) (This law allows you to skip all brackets when adding – the result is always the same regardless of which numbers you add first.) (2 + 1) 1 = 3 1 = 1 = 2 + 1 = 2 1 + 1 1 , and – in symbols – → · 3 · 3 3 3 · 3 · 3 ( a + b) c = a c + b c ( distributivity ) · · · (This law allows you to distribute multiplication over addition.) Note that the first two rules above are also true when multiplying numbers (i.e. with + replaced by ). This suggests that perhaps such rules could be interpreted more · abstractly. Namely, the symbol + (or ) might denote an unspecified binary operation. · Of course, in such generality it might be appropriate to use some new symbols (like , ⊕ , , ⊞ or ) for the binary operations and sometimes it is done so, especially when ⊙ ◦ there is a danger of some confusion. Observe however, that in the case of complex numbers that we have considered, we used the ordinary symbols + and , rather than · some new ones, and we called them „addition” and „multiplication”, respectively. This is natural, because those operations are in fact extensions of the usual operations of addition and multiplication from the real numbers to a wider domain (this means that the „new” binary operations work in the „old” way for those complex numbers which are real, e.g. (2 +0i)+(3 +0i)=5 + 0 i and similarly (2 + 0 i) (3 + 0 i) = 6 + 0 i). Also in · computer science, a common practice is to implement some new binary operations and still denote them by + and although in fact they overload or even totally redefine the · standard operations of addition and multiplication. Example. One can define a truncated subtraction in N0 by the formula 0, if a < b a + b . a b, if a > b − There is everything in order with such definition, but you should feel that the usage of + is a little cumbersome here (after all, we are rather subtracting than adding). In elementary arithmetic this truncated subtraction is usually denoted by „ . ”. − 2. Which numbers are „best”? 5 2 Which numbers are „best”? T here is no unique answer to such question, because it depends on the properties you are interested in. For example, testing associativity and commutativity gives N Z Q R C Ass. YES YES YES YES YES + Com. YES YES YES YES YES , Ass. YES YES YES YES YES · Com. YES YES YES YES YES so in these respects there is no apparent difference between N, Z, Q, R and C. Actually, in principle , in order to verify that the entries in the above table are correct, it would be enough to check these properties for C because then they are automatically valid for the smaller sets N, Z, Q and R. In practice , this is done the other way around because of the order in which the number sets are actually constructed ( N Z Q R C). → → → → As an example of such verification, try: Exercise 1. Check that + and are associative and commutative in C (assuming you know this · for R!) using the formal definitions of + and given on page 3. · Commentary. Proving the usual empirical properties of the operations + and is not · totally trivial, even for N. First, one needs to properly define the set N (this can be done using Set Theory) and the operations + and . Only then is it possible to actually prove · their properties (this is done in a branch of mathematics called Theoretical Arithmetic). Fortunately, you have so much empirical evidence for their validity from everyday life, you should not feel uncomfortably using those properties. G oing back to our question again: are the various sets of numbers essentially different? Yes, they are... But only when you start thinking about solving equations in them. Suppose we want to solve the equation 2 + x = 1 in the naturals. Clearly, this is impossible because we have x N 1 2 3 ∈ a result always greater than 1 ! 2 + x 3 4 5 But the same equation has a (unique!) solution x = 1 in Z. A difference! − The following table shows which equations can be solved in the various number sets: Equation to solve N Z Q R C a + x = b NO YES YES YES YES a x = b, a 0 NO NO YES YES YES . (1) · x2 = 2 NO NO NO YES YES x2 = 1 NO NO NO NO YES − As we can see, Q is different than Z if considered with multiplication (e.g. 2 x = 1 · Z 2 3 has no solutions in ; on the other hand the equation 3 x= 5 does have the solution 9 · − x= in Q). Also, C is „better” than the other sets with respect to . But what is − 10 · the difference between Q and R? Part of the answer is shown in the above table. The full answer is beyond the scope of Algebra: the real difference is that in R there exist „limits” for all the sequences that „should have” a limit. The same property is true for C. Hence, R and C have different analytic features than Q. 6 Szymon Brzostowski 1 1 1 1 1 1 , , , Q Example.