Coding Theory Pythagorean Codes Massoud Malek. By looking at the legs of a right-angle triangle (a, b, c), Pythagoras gave us the first theorem:
|
|
- Lora Morris
- 7 years ago
- Views:
Transcription
1 By looking at the legs of a right-angle triangle (a, b, c), Pythagoras gave us the first theorem: a 2 + b 2 = c 2 The leg c, is called the hypotenuse. If no other number except one divides both a and b, then the triangle is called primitive Pythagorean triangle or just PPT. The smallest and best-known PPT is (3, 4, 5). Ancient clay tablets from Babylonia indicate that more than 1000 years before Pythagoras, the Babylonians demonstrated an awareness of at least 15 triangles. In ancient Egypt, the (3, 4, 5) triangle was used in constructions of pyramids and temples. Plato (380 B. C.) is attributed with the formula: <1, n> = (n 2 1, 2 n, n 2 + 1), for n > 1. A more general formula for obtaining all triples was given by Euclid in c. 300 B.C. Lemma 1. For positive integers m and n, where 1 m < n, the triple <m, n> = (n 2 m 2, 2 m n, n 2 + m 2 ) is Pythagorean. Moreover, if m and n are relatively prime of opposite parity, then they generate a primitive triple. Basic Properties. In a primitive Pythagorean triangle T = (a, b, c), the following conditions hold: The hypotenuse and one of the legs are always odd and the other leg is divisible by 4. Exactly one of the legs is divisible by 3 and also, exactly one of the three sides is divisible by 5. One leg may be divisible by both 3 and 5, as in (15, 8, 17) or (11, 60, 61). The largest number that always divides a b c is 60. All prime factors of c are of the form 4 n + 1. The hypotenuse of every PPT exceeds the odd leg by twice the square of an integer r and the even leg by the square of an odd integer s, such that c = a + 2 r 2 = b + s 2. Generating Matrices. A matrix is a generating matrix, if its product by some vector, generates a Pythagorean triple. In 1934, Berggren defined the following matrices: A = 2 1 2, B = 2 1 2, and C = ; and proved that T = (a, b, c) is primitive, if and only if T = (a, b, c) = (3, 4, 5) M, California State University, East Bay 1
2 where the generating matrix M, is a finite product of the above matrices Consider the matrix G = and the vector u [m, n] = ( m 2, m n, n 2), where m and n are positive integers. Then u [m, n] G = ( m 2, m n, n 2) = ( m 2 +2 m n, 2 m n + 2 n 2, m 2 +2 m n+2 n 2) = ( (m + n) 2 n 2, 2 (m + n) n, (m + n) 2 + n 2) = <n, m + n>. If n and m + n are relatively prime of opposite parity, then by Lemma 1, u [m, n] G is a primitive Pythagorean triple. Lemma 2. Let T = <m, n> be a PTT. Then T = u [n m, m] G Proof. We have u [n m, m] G = <m, n m + m> = <m, n>= T. Theorem 1. For fixed positive integers m 0 and n 0, where m 0 is odd, define the following sets of PPTs: R m0 = {T n = (a n, b n, c n ) = u[m 0, n] G : n = 1, 2, 3,..., gcd (m 0, n) = 1}, and S n0 = {T m = (a m, b m, c m ) = u[m, n 0 ] G : m = 1, 3, 5,..., gcd (m, n 0 ) = 1}. Then (i) P = R 2 i+1 = S j ; i=0 j=1 (ii) R m0 S n0 = u[m 0, n 0 ] G, whenever gcd(m 0, n 0 ) = 1; (iii) for all T n R m0, c n b n = m 2 0 ; (iv) for all T m S n0, c m a m = 2 n 2 0. (v) for i 1 i 2 and j 1 j 2, R 2 i1 +1 R 2 i2 +1 = and S j1 S j2 =. Proof. (i) follows from Lemma 2. (ii) If gcd (m 0, n 0 ) = 1, then R m0 S n0 contains only one PPT, which is u[m 0, n 0 ] G. From the definitions of u [m, n] G, we obtain T = (a, b, c) = u [m, n] G = ( m m n, 2 m n + 2 n 2, m m n + 2 n 2). For the remainder of the proof, notice that c b = m 2 and c a = 2 n 2. Thus for the same a, b, and c ; m and n must be unique. Hence for i 1 i 2 and j 1 j 2, R 2 i1 +1 R 2 i2 +1 = and S 2 j1 S 2 j2 =. California State University, East Bay 2
3 From the fact that u [m, n] G = <n, m + n>, we conclude that R 1 = { T n = (a n, b n, c n ) = u [1, n] G = ( n, 2 n + 2 n 2, n + 2 n 2) : n = 1, 2, 3,... } is the set of all PPTs generated by <n, n + 1> (two consecutive positive integers) and S 1 = { T m = (a m, b m, c m ) = u [m, 1] G = ( m 2 +2 m, 2 m + 2, m 2 +2 m + 2 ) : m = 1, 3, 5,... } is the set of all PPTs generated by <1, m + 1> (Plato s formula). Theorem 2. Let T = (a, b, c) be a PPT. [ (i) If T R m0 ; then T = u m 0, a m2 0 2 m 0 [ (ii) If T S n0 ; then T = u n 0 + ] ( G = a, a2 m m 2 0 n a, n 0 ] G = Proof. (i) If T R m0 ; then for some n with gcd (m 0, n) = 1, )., a2 + m m 2 0 ( a, 2 n 0 n a, a + 2 n2 0 T = (a, b, c) = u[m 0, n] G = ( m m 0 n, 2 n (m 0 + n), m m 0 n + 2 n 2 ) ). ( ) a m From a = m m 0 n, we obtain n = 0. Hence 2 m 0 [ T = u m 0, a ] ( m2 0 G = a, a2 m m 0 2 m 2, a2 + m 4 ) m 2. 0 (ii) If T S n0 ; then for some odd m with gcd (m, n 0 ) = 1, T = (a, b, c) = u[m, n 0 ] G = ( m m n 0, 2 n 0 (m + n 0 ), m n 0 (m + n 0 ) ). By solving the quadratic equation a = m m n 0 for a positive m, we obtain ( ) m = n 0 + n 20 + a. Hence [ ] ( ) T = u n 0 + n a, n 0 G = a, 2 n 0 n a, a + 2 n2 0. ). Generating Pythagorean triples with Sequence of Numbers. The Fibonacci numbers are the numbers in the following integer sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233,... The sequence F n of Fibonacci numbers is defined by the recurrence relation: F n = F n 1 + F n 2, with seed values F 0 = 0 and F 1 = 1. California State University, East Bay 3
4 The Lucas numbers are the numbers in the following integer sequence: 2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 121, 197, 318,... The sequence of Lucas numbers L n, uses exactly the same recurrence relation as the sequence of Fibonacci numbers F n, but with the seed values L 0 = 2 and L 1 = 1. Clearly any increasing sequence of positive integers may produce Pythagorean triples. Note that F 3 n and L 3 n are even, so the Pythagorean triples < F 3 n+1, F 3 n+2 > and < L 3 n+1, L 3 n+2 > are not primitive. A generalization of the Fibonacci numbers defined by the linear recurrence equation: H n [r, s] = r H n 2 [r, s] + s H n 1 [r, s] with the seed values H 0 [r, s] and H 1 [r, s] is called Horadam sequence. In all that follows, r, s, and the seed values are chosen in a way that for n 1, they generate increasing sequences of positive integers. Note that only H 0 [r, s] may be zero. For r = s = 1, and the seed values H 0 [1, 1] = 0, and H 1 [1, 1] = 1 ; the Horadam sequence reduces to the Fibonacci numbers. By choosing H 0 [1, 1] = 2, instead of H 0 [1, 1] = 0, we obtain the Lucas numbers. Note that consecutive numbers in both Haradam sequences: H n [1, 2] : H n [2, 1] : are relatively prime odd numbers and none of the Pythagorean triples, generated by <H n [1, 2], H n+1 [1, 2]> and <H n [2, 1], H n+1 [2, 1]> are primitive, but every single Pythagorean triple, generated by u [ H n [1, 2], H n+1 [1, 2] ] G and u [ H n [2, 1], H n+1 [2, 1] ] G is primitive. So as long as we chose a sequence of odd numbers, not necessary increasing, where two consecutive numbers are relatively prime, then by using the matrix G, we may generate PPTs with any two consecutive members of that sequence. Let T n = (a n, b n, c n ) be a Pythagorean triangle: If the two non-hypotenuse legs of T n differ by 1, then T n = (3, 4, 5) A n. Note that if n is odd then b n = a n 1 and if n is even, then b n = a n + 1. If the hypotenuse and the odd leg of T n differ by 2, then T n = (3, 4, 5) B n. If the hypotenuse and the even leg of T n differ by 1, then T n = (3, 4, 5) C n. California State University, East Bay 4
5 Application to Coding Theory and Cryptography. Primitive Pythagorean triple can lend itself to Coding Theory and Cryptography. There are infinitely many ways to encode letters of alphabet with PPTs. Here is a simple way to create a Pythagorean alphabet in Coding Theory, by the use of a Horadam sequence and PPTs: First, choose a Horadam sequence such as H n [1, 2] : Then assign a number in that sequence to each letter. Suppose H 6 [1, 2] = 99, is chosen for the letter F, which is the sixth letter of the alphabet. Then assign to F, a codeword, as follows: u[ 99, 239 ] G = ( ), so F. Another way of defining a class of codewords, is by assigning a positive integer to each letter of the alphabet; then multiply the PPT (3, 4, 5) by the matrix A, B, or C. If we assign 6 to the sixth letter of the alphabet, F ; Then using the matrices A, B, or C, we obtain: (3, 4, 5) A 6 = ( ), so F ; (3, 4, 5) B 6 = ( ), so F ; (3, 4, 5) C 6 = ( ), so F. Finally, we may define a class of codewords by selecting either R m0 or S n0. Suppose, we choose R m0, where m 0 is a prime odd number; then we assign a positive integer k with gcd (m 0, k) = 1 to each letter of the alphabet. Then, we create a Pythagorean alphabet using the generating matrix G. Note that PPTs in corollaries 4.5 and 4.6 may be used if we choose R 1. From the fact that the last digit of any integer, could not be different from 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 ; we conclude that any set of PPTs may be partitioned into a finite number of disjoint classes, based on the last digits of a, b, and c, of T = (a, b, c). Here are the first 12 PPTs T k = (a k, b k, c k ), generated by (3, 4, 5) A k, where k = 0, 1, 2, 3,..., 11 : Since there are spaces between words, we may assign the PTT (3, 4, 5) to a blank space. According to the above table, the set of T n is partitioned into six disjoint classes based on the last digits of a k, b k, and c k, with coset leaders: (3, 4, 5), (1, 0, 9), (9, 0, 9), (7, 6, 5), (9, 0, 1), and (1, 0, 1). California State University, East Bay 5
6 Here are the first 27 PPTs T k = (a k, b k, c k ), generated by (3, 4, 5) B k, where k = 0, 1, 2, 3,..., 26 : (3, 4, 5) (5, 8, 7) (5, 2, 7) (3, 6, 5) (9, 0, 1) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Notice that the odd legs and the hypothenuses differ by two.these triples are also in S 1. Here are the first 26 PPTs T k = (a k, b k, c k ), generated by (3, 4, 5) C k, where k = 0, 1, 2, 3,..., 26 : (3, 4, 5) (5, 2, 3) (7, 4, 5) (9, 0, 1) (1, 0, 1) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Notice that the even legs and the hypothenuses differ by one. These triples are also in R 1. Error Detection The fact that the matrix A (resp. B and C) partitions the set of PPTs generated by (3, 4, 5) and A n (resp. B n and C n ) into six (resp. 5) disjoint classes; the received codeword must be in one of those six (resp. 5) classes. If the last digits of a 6, b 6, and c 6 do not match the digits of any of the coset leaders, errors in the codeword is detected. Once the error is detected, it could eventually be corrected either directly or by a retransmission. Although coset leader decoding detects some error in the case of transmitting a codeword assigned to F, when A 6 is used; one could improve the error detection by adding 345 as parity-check digits at the beginning or the end of the codeword in the following ways: (3, 4, 5) A or F. As long as the parity-check digits are not corrupted, the message could be decoded by those digits. Similarly, we could use coset leaders as parity-check digits for codewords obtained from B 6 and C 6 : (3, 4, 5) B or F ; (3, 4, 5) C or F. In order to increase the probability of correcting errors and decreasing the number of retransmission; California State University, East Bay 6
7 one could choose k s with large gaps between them. For example, if 1 is chosen to create a primitive triple for the letter A, then instead of choosing 2 for the letter B and 3 for the letter C, one could choose 12 for B and 13 for C; and so on. In this case, each class contains triples with large distance between them. This way, it is most likely that the closest codeword to the received word is the word sent. Parity-check Digits. Let v = ( a, b, c ) be a PTT. Then define v = ( â, b, ĉ ) ( a, b, c ) mod 10. If v is a message, then v = ( â, b, ĉ ) must be a cost leader. One way to define a Pythagorean code is to define the codeword as follows: w = ( a, b, c, â, b, ĉ ). Clearly the last three digits are the parity-check digits. Data Compression. Sometimes, it is necessary to shorten the length of the codewords without compromising the integrity of the message. For example, to shorten the PTT assigned to F, using (3, 4, 5) C 6 ; one could remove the hypothenuse or the even leg; since the even leg and the hypothenuse differ only by one. So the shorter message will be F or F. Now the codeword including the parity-check digits become or Since in all the triples generated by (3, 4, 5) and a power of B, the odd leg and the hypothenuse differ by two; the codeword could be shorten to F. In the case of the matrix A, although the odd leg and even leg differ by one, but for an even n the even leg is larger and for the odd n the odd leg is larger. To avoid confusion, one could assign PTTs to the letters of the alphabet, by using only odd powers or even powers of A. If we select R m0 which contains PPTs, where the hypotenuses exceed the even legs by m 2 0 or S n 0 which contains PPTs, where the hypotenuses exceeds the odd legs by 2 n 2 0. Then removing the hypotenuse of the encoded word in these sets, would not alter the message and its integrity. According to Theorem 2, from the odd leg a, of the PTT, T = ( a, b, c ) R m0, we may obtain the even leg b = a2 m m 0. Thus we could also remove the even leg b. Hence, we only need the odd leg. Suppose R 7 = {T n = (a n, b n, c n ) = u[7, n] G : n = 1, 2,..., 6, 8, 9,..., 13, 15, 15,..., 20, 22,..., 27, 29} is used to generate the alphabet. Notice that n must be different from 7, 14, 21, and 28 which are multiples of 7. The fact that c b = 49 = 7 2, for all c s and b s implies that each message could be shorten, by removing the hypotenuse. According to Theorem 2, from the odd leg a, we may obtain the value of California State University, East Bay 7
8 the even leg b = a Thus we could also remove the even leg b. 14 In order to be able to detect some transmission errors, we should add to the codeword, the last two digits of the coset leader of the class which contains the word. Here is the short form of the alphabet ( n = 1, 2,..., 26) in R 7 using only he odd leg and the paritycheck digits: R 7 (3, 6, 5) (7, 6, 5) (1, 0, 9) (5, 8, 7) (9, 0, 9) A B C D E F K G Q I J O L H M N S P Q R W X T U V Y Z We assign the PTT (3, 4, 5) to a blank space. Here are the short form of alphabets in S 1 and R 1, respectively, without using the hypothenuse: S 1 (3, 4, 5) (5, 8, 7) (5, 2, 7) (3, 6, 5) (9, 0, 1) 3 4 A 15 8 B C D E F G H I J K L M N O P Q R S T U V W X Y Z R 1 (3, 4, 5) (5, 2, 3) (7, 4, 5) (9, 0, 1) (1, 0, 1) 3 4 A 5 12 B 7 24 C 9 40 D E F G H I J K L M N O P Q R S T U V W X Y Z Error Correction and Decoding. We assume that R 7 with the coset leaders (3, 4, 5), (5, 2, 3), (7, 4, 5), (9, 0, 1), and (1, 0, 1) and two-digit parity check was used. Suppose the message w 1 = and w 2 = were received. Since (3, 6, 7) and (9, 7, 5) are not coset leaders; but is in our table, generated by u[7, 6] G, representing the letter F ; and is very close to generated by u[7, 22] G, representing the letter S. We therefore conclude that it is most likely that v 1 = and v 2 = are the transmitted codewords. California State University, East Bay 8
9 In order to increase the probability of correcting errors or to increase the security, one could choose three different classes of PTT, such as a combination of : R m1, R m2, R m3, S n1, S n2, and S n3 ; then assign for example, three PPTs to each letter in the following way: Choose the odd leg of the PPT from the first class, the even leg of the second PPT from the second class, and the hypotenuse from the third PPT from the third class. This way, the security is increased and if one of the legs is error-free, then the codeword may be identified. Exercises. 1. Suppose the following words using odd legs and parity-check digits were received: Decode the message, assuming that at most one error occurred in each received word. 2. The word is known to be a codeword. The messages were encoded using the odd legs and parity-check digits. Identify and correct (if possible) the following compressed received words: The word [ ] is known to be a codeword. The messages were encoded using the even legs and parity-check digits. Identify and correct (if possible) the following compressed received words: MATLAB. G = [ ; ; ] ; inputm = What is the value of m? ; m = input (inputm) for n = 1 : 27, vm = [ m 2, m n, n 2 ] ; wm = vm G, end ; inputn= What is the value of n? ; n = input (inputn) for m = 1 : 2 : 27, vn = [ m 2, m n, n 2 ] wn = vn G, end ; A = [ ; ; ] ; B = [ ; 2 1 2; ] ; C = [ ; ; ] ; u = [ ] ; w1 = u ; w2 = u ; w3 = u ; inputpa = Choose an positive integer pa less than 11, to generate PPTs with the matrix A ; pa = input (inputpa) for k = 1 : pa, w1 (k, :) = u A k ; end ; [ w1 ] inputpb = Choose an positive integer pb, to generate PPTs with the matrix B ; pb = input (inputpb) for k = 1 : pb, w2 (k, :) = u B k ; end ; [ w2 ], inputpc = Choose an positive integer pc, to generate PPTs with the matrix C ; pc = input (inputpc) for k = 1 : pc, w3 (k, :) = u C k ; end ; [ w3 ], California State University, East Bay 9
Pythagorean Triples. becomes
Solution Commentary: Solution of Main Problems: Pythagorean Triples 1. If m = (n + 1), n = [m -1]/ and n+1 = [m +1]/. Then, by substitution, the equation n + (n + 1) = (n+1) m + 1 becomes + m =. Now, because
More information4.2 Euclid s Classification of Pythagorean Triples
178 4. Number Theory: Fermat s Last Theorem Exercise 4.7: A primitive Pythagorean triple is one in which any two of the three numbers are relatively prime. Show that every multiple of a Pythagorean triple
More informationPYTHAGOREAN TRIPLES KEITH CONRAD
PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient
More informationI. GROUPS: BASIC DEFINITIONS AND EXAMPLES
I GROUPS: BASIC DEFINITIONS AND EXAMPLES Definition 1: An operation on a set G is a function : G G G Definition 2: A group is a set G which is equipped with an operation and a special element e G, called
More informationSolution to Exercise 2.2. Both m and n are divisible by d, som = dk and n = dk. Thus m ± n = dk ± dk = d(k ± k ),som + n and m n are divisible by d.
[Chap. ] Pythagorean Triples 6 (b) The table suggests that in every primitive Pythagorean triple, exactly one of a, b,orc is a multiple of 5. To verify this, we use the Pythagorean Triples Theorem to write
More informationDigitalCommons@University of Nebraska - Lincoln
University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln MAT Exam Expository Papers Math in the Middle Institute Partnership 7-1-007 Pythagorean Triples Diane Swartzlander University
More informationRECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES
RECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES DARRYL MCCULLOUGH AND ELIZABETH WADE In [9], P. W. Wade and W. R. Wade (no relation to the second author gave a recursion formula that produces Pythagorean
More information= 2 + 1 2 2 = 3 4, Now assume that P (k) is true for some fixed k 2. This means that
Instructions. Answer each of the questions on your own paper, and be sure to show your work so that partial credit can be adequately assessed. Credit will not be given for answers (even correct ones) without
More informationSYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me
SYSTEMS OF PYTHAGOREAN TRIPLES CHRISTOPHER TOBIN-CAMPBELL Abstract. This paper explores systems of Pythagorean triples. It describes the generating formulas for primitive Pythagorean triples, determines
More informationCHAPTER 5. Number Theory. 1. Integers and Division. Discussion
CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a
More informationA Direct Method To Generate Pythagorean Triples And Its Generalization To Pythagorean Quadruples And n-tuples
A Direct Method To Generate Pythagorean Triples And Its Generalization To Pythagorean Quadruples And n-tuples Tanay Roy $ Farjana Jaishmin Sonia Department of Physics Jadavpur University Kolkata 700032,
More informationMATH 289 PROBLEM SET 4: NUMBER THEORY
MATH 289 PROBLEM SET 4: NUMBER THEORY 1. The greatest common divisor If d and n are integers, then we say that d divides n if and only if there exists an integer q such that n = qd. Notice that if d divides
More informationMATH10040 Chapter 2: Prime and relatively prime numbers
MATH10040 Chapter 2: Prime and relatively prime numbers Recall the basic definition: 1. Prime numbers Definition 1.1. Recall that a positive integer is said to be prime if it has precisely two positive
More informationKevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm
MTHSC 412 Section 2.4 Prime Factors and Greatest Common Divisor Greatest Common Divisor Definition Suppose that a, b Z. Then we say that d Z is a greatest common divisor (gcd) of a and b if the following
More informationNumber Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may
Number Theory Divisibility and Primes Definition. If a and b are integers and there is some integer c such that a = b c, then we say that b divides a or is a factor or divisor of a and write b a. Definition
More informationApplications of Fermat s Little Theorem and Congruences
Applications of Fermat s Little Theorem and Congruences Definition: Let m be a positive integer. Then integers a and b are congruent modulo m, denoted by a b mod m, if m (a b). Example: 3 1 mod 2, 6 4
More informationPythagorean Theorem: Proof and Applications
Pythagorean Theorem: Proof and Applications Kamel Al-Khaled & Ameen Alawneh Department of Mathematics and Statistics, Jordan University of Science and Technology IRBID 22110, JORDAN E-mail: kamel@just.edu.jo,
More informationSettling a Question about Pythagorean Triples
Settling a Question about Pythagorean Triples TOM VERHOEFF Department of Mathematics and Computing Science Eindhoven University of Technology P.O. Box 513, 5600 MB Eindhoven, The Netherlands E-Mail address:
More information8 Primes and Modular Arithmetic
8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.
More informationChapter 3. if 2 a i then location: = i. Page 40
Chapter 3 1. Describe an algorithm that takes a list of n integers a 1,a 2,,a n and finds the number of integers each greater than five in the list. Ans: procedure greaterthanfive(a 1,,a n : integers)
More informationHOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!
Math 7 Fall 205 HOMEWORK 5 SOLUTIONS Problem. 2008 B2 Let F 0 x = ln x. For n 0 and x > 0, let F n+ x = 0 F ntdt. Evaluate n!f n lim n ln n. By directly computing F n x for small n s, we obtain the following
More informationSection 4.2: The Division Algorithm and Greatest Common Divisors
Section 4.2: The Division Algorithm and Greatest Common Divisors The Division Algorithm The Division Algorithm is merely long division restated as an equation. For example, the division 29 r. 20 32 948
More informationMATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.
MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column
More informationSquare Roots and the Pythagorean Theorem
4.8 Square Roots and the Pythagorean Theorem 4.8 OBJECTIVES 1. Find the square root of a perfect square 2. Use the Pythagorean theorem to find the length of a missing side of a right triangle 3. Approximate
More informationCongruent Number Problem
University of Waterloo October 28th, 2015 Number Theory Number theory, can be described as the mathematics of discovering and explaining patterns in numbers. There is nothing in the world which pleases
More informationHomework until Test #2
MATH31: Number Theory Homework until Test # Philipp BRAUN Section 3.1 page 43, 1. It has been conjectured that there are infinitely many primes of the form n. Exhibit five such primes. Solution. Five such
More informationSect 6.7 - Solving Equations Using the Zero Product Rule
Sect 6.7 - Solving Equations Using the Zero Product Rule 116 Concept #1: Definition of a Quadratic Equation A quadratic equation is an equation that can be written in the form ax 2 + bx + c = 0 (referred
More informationContinued Fractions and the Euclidean Algorithm
Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction
More informationFactoring Algorithms
Factoring Algorithms The p 1 Method and Quadratic Sieve November 17, 2008 () Factoring Algorithms November 17, 2008 1 / 12 Fermat s factoring method Fermat made the observation that if n has two factors
More informationInteger roots of quadratic and cubic polynomials with integer coefficients
Integer roots of quadratic and cubic polynomials with integer coefficients Konstantine Zelator Mathematics, Computer Science and Statistics 212 Ben Franklin Hall Bloomsburg University 400 East Second Street
More informationGREATEST COMMON DIVISOR
DEFINITION: GREATEST COMMON DIVISOR The greatest common divisor (gcd) of a and b, denoted by (a, b), is the largest common divisor of integers a and b. THEOREM: If a and b are nonzero integers, then their
More informationMath 319 Problem Set #3 Solution 21 February 2002
Math 319 Problem Set #3 Solution 21 February 2002 1. ( 2.1, problem 15) Find integers a 1, a 2, a 3, a 4, a 5 such that every integer x satisfies at least one of the congruences x a 1 (mod 2), x a 2 (mod
More informationOn the generation of elliptic curves with 16 rational torsion points by Pythagorean triples
On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples Brian Hilley Boston College MT695 Honors Seminar March 3, 2006 1 Introduction 1.1 Mazur s Theorem Let C be a
More informationPythagoras Theorem. Page I can... 1... identify and label right-angled triangles. 2... explain Pythagoras Theorem. 4... calculate the hypotenuse
Pythagoras Theorem Page I can... 1... identify and label right-angled triangles 2... eplain Pythagoras Theorem 4... calculate the hypotenuse 5... calculate a shorter side 6... determine whether a triangle
More informationHow To Prove The Dirichlet Unit Theorem
Chapter 6 The Dirichlet Unit Theorem As usual, we will be working in the ring B of algebraic integers of a number field L. Two factorizations of an element of B are regarded as essentially the same if
More informationThe last three chapters introduced three major proof techniques: direct,
CHAPTER 7 Proving Non-Conditional Statements The last three chapters introduced three major proof techniques: direct, contrapositive and contradiction. These three techniques are used to prove statements
More informationa 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.
Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given
More informationWRITING PROOFS. Christopher Heil Georgia Institute of Technology
WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this
More informationCS 103X: Discrete Structures Homework Assignment 3 Solutions
CS 103X: Discrete Structures Homework Assignment 3 s Exercise 1 (20 points). On well-ordering and induction: (a) Prove the induction principle from the well-ordering principle. (b) Prove the well-ordering
More information1.2. Successive Differences
1. An Application of Inductive Reasoning: Number Patterns In the previous section we introduced inductive reasoning, and we showed how it can be applied in predicting what comes next in a list of numbers
More informationPrimes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov
Lee 1 Primes in Sequences By: Jae Young Lee Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov Lee 2 Jae Young Lee MA341 Number Theory PRIMES IN SEQUENCES
More informationCOMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH. 1. Introduction
COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH ZACHARY ABEL 1. Introduction In this survey we discuss properties of the Higman-Sims graph, which has 100 vertices, 1100 edges, and is 22 regular. In fact
More informationMATH 90 CHAPTER 6 Name:.
MATH 90 CHAPTER 6 Name:. 6.1 GCF and Factoring by Groups Need To Know Definitions How to factor by GCF How to factor by groups The Greatest Common Factor Factoring means to write a number as product. a
More informationU.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009. Notes on Algebra
U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009 Notes on Algebra These notes contain as little theory as possible, and most results are stated without proof. Any introductory
More informationCONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12
CONTINUED FRACTIONS AND PELL S EQUATION SEUNG HYUN YANG Abstract. In this REU paper, I will use some important characteristics of continued fractions to give the complete set of solutions to Pell s equation.
More informationNumber Theory: A Mathemythical Approach. Student Resources. Printed Version
Number Theory: A Mathemythical Approach Student Resources Printed Version ii Contents 1 Appendix 1 2 Hints to Problems 3 Chapter 1 Hints......................................... 3 Chapter 2 Hints.........................................
More informationElementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.
Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole
More informationLecture 3: Finding integer solutions to systems of linear equations
Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture
More informationLinear Codes. Chapter 3. 3.1 Basics
Chapter 3 Linear Codes In order to define codes that we can encode and decode efficiently, we add more structure to the codespace. We shall be mainly interested in linear codes. A linear code of length
More informationk, then n = p2α 1 1 pα k
Powers of Integers An integer n is a perfect square if n = m for some integer m. Taking into account the prime factorization, if m = p α 1 1 pα k k, then n = pα 1 1 p α k k. That is, n is a perfect square
More informationThe Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.
The Prime Numbers Before starting our study of primes, we record the following important lemma. Recall that integers a, b are said to be relatively prime if gcd(a, b) = 1. Lemma (Euclid s Lemma). If gcd(a,
More informationComputing exponents modulo a number: Repeated squaring
Computing exponents modulo a number: Repeated squaring How do you compute (1415) 13 mod 2537 = 2182 using just a calculator? Or how do you check that 2 340 mod 341 = 1? You can do this using the method
More informationMath 55: Discrete Mathematics
Math 55: Discrete Mathematics UC Berkeley, Spring 2012 Homework # 9, due Wednesday, April 11 8.1.5 How many ways are there to pay a bill of 17 pesos using a currency with coins of values of 1 peso, 2 pesos,
More informationIndexing Properties of Primitive Pythagorean Triples for Cryptography Applications
Indexing Properties of Primitive Pythagorean Triples for Cryptography Applications Yashwanth Kothapalli Oklahoma State University, Stillwater, OK-74078 yashwanth.kothapalli@okstate.edu Abstract: This paper
More informationminimal polyonomial Example
Minimal Polynomials Definition Let α be an element in GF(p e ). We call the monic polynomial of smallest degree which has coefficients in GF(p) and α as a root, the minimal polyonomial of α. Example: We
More informationMATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS
MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS Class Meetings: MW 2:00-3:15 pm in Physics 144, September 7 to December 14 [Thanksgiving break November 23 27; final exam December 21] Instructor:
More informationIntroduction to Algebraic Coding Theory
Introduction to Algebraic Coding Theory Supplementary material for Math 336 Cornell University Sarah A. Spence Contents 1 Introduction 1 2 Basics 2 2.1 Important code parameters..................... 4
More informationDiscrete Mathematics, Chapter 4: Number Theory and Cryptography
Discrete Mathematics, Chapter 4: Number Theory and Cryptography Richard Mayr University of Edinburgh, UK Richard Mayr (University of Edinburgh, UK) Discrete Mathematics. Chapter 4 1 / 35 Outline 1 Divisibility
More informationH/wk 13, Solutions to selected problems
H/wk 13, Solutions to selected problems Ch. 4.1, Problem 5 (a) Find the number of roots of x x in Z 4, Z Z, any integral domain, Z 6. (b) Find a commutative ring in which x x has infinitely many roots.
More informationQuotient Rings and Field Extensions
Chapter 5 Quotient Rings and Field Extensions In this chapter we describe a method for producing field extension of a given field. If F is a field, then a field extension is a field K that contains F.
More informationEvery Positive Integer is the Sum of Four Squares! (and other exciting problems)
Every Positive Integer is the Sum of Four Squares! (and other exciting problems) Sophex University of Texas at Austin October 18th, 00 Matilde N. Lalín 1. Lagrange s Theorem Theorem 1 Every positive integer
More informationSome practice problems for midterm 2
Some practice problems for midterm 2 Kiumars Kaveh November 15, 2011 Problem: What is the remainder of 6 2000 when divided by 11? Solution: This is a long-winded way of asking for the value of 6 2000 mod
More informationMath 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = 36 + 41i.
Math 5A HW4 Solutions September 5, 202 University of California, Los Angeles Problem 4..3b Calculate the determinant, 5 2i 6 + 4i 3 + i 7i Solution: The textbook s instructions give us, (5 2i)7i (6 + 4i)(
More informationThe Chinese Remainder Theorem
The Chinese Remainder Theorem Evan Chen evanchen@mit.edu February 3, 2015 The Chinese Remainder Theorem is a theorem only in that it is useful and requires proof. When you ask a capable 15-year-old why
More informationAPPLICATIONS AND MODELING WITH QUADRATIC EQUATIONS
APPLICATIONS AND MODELING WITH QUADRATIC EQUATIONS Now that we are starting to feel comfortable with the factoring process, the question becomes what do we use factoring to do? There are a variety of classic
More informationTheorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive
Chapter 3 Number Theory 159 3.1 Prime Numbers Prime numbers serve as the basic building blocs in the multiplicative structure of the integers. As you may recall, an integer n greater than one is prime
More informationRow Echelon Form and Reduced Row Echelon Form
These notes closely follow the presentation of the material given in David C Lay s textbook Linear Algebra and its Applications (3rd edition) These notes are intended primarily for in-class presentation
More informationCodes for Network Switches
Codes for Network Switches Zhiying Wang, Omer Shaked, Yuval Cassuto, and Jehoshua Bruck Electrical Engineering Department, California Institute of Technology, Pasadena, CA 91125, USA Electrical Engineering
More information2 When is a 2-Digit Number the Sum of the Squares of its Digits?
When Does a Number Equal the Sum of the Squares or Cubes of its Digits? An Exposition and a Call for a More elegant Proof 1 Introduction We will look at theorems of the following form: by William Gasarch
More informationPigeonhole Principle Solutions
Pigeonhole Principle Solutions 1. Show that if we take n + 1 numbers from the set {1, 2,..., 2n}, then some pair of numbers will have no factors in common. Solution: Note that consecutive numbers (such
More informationHandout NUMBER THEORY
Handout of NUMBER THEORY by Kus Prihantoso Krisnawan MATHEMATICS DEPARTMENT FACULTY OF MATHEMATICS AND NATURAL SCIENCES YOGYAKARTA STATE UNIVERSITY 2012 Contents Contents i 1 Some Preliminary Considerations
More informationby the matrix A results in a vector which is a reflection of the given
Eigenvalues & Eigenvectors Example Suppose Then So, geometrically, multiplying a vector in by the matrix A results in a vector which is a reflection of the given vector about the y-axis We observe that
More informationFactoring and Applications
Factoring and Applications What is a factor? The Greatest Common Factor (GCF) To factor a number means to write it as a product (multiplication). Therefore, in the problem 48 3, 4 and 8 are called the
More informationLAMC Beginners Circle: Parity of a Permutation Problems from Handout by Oleg Gleizer Solutions by James Newton
LAMC Beginners Circle: Parity of a Permutation Problems from Handout by Oleg Gleizer Solutions by James Newton 1. Take a two-digit number and write it down three times to form a six-digit number. For example,
More information1. The volume of the object below is 186 cm 3. Calculate the Length of x. (a) 3.1 cm (b) 2.5 cm (c) 1.75 cm (d) 1.25 cm
Volume and Surface Area On the provincial exam students will need to use the formulas for volume and surface area of geometric solids to solve problems. These problems will not simply ask, Find the volume
More informationA Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions
A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions Marcel B. Finan Arkansas Tech University c All Rights Reserved First Draft February 8, 2006 1 Contents 25
More informationMath Workshop October 2010 Fractions and Repeating Decimals
Math Workshop October 2010 Fractions and Repeating Decimals This evening we will investigate the patterns that arise when converting fractions to decimals. As an example of what we will be looking at,
More informationSolving Quadratic Equations
9.3 Solving Quadratic Equations by Using the Quadratic Formula 9.3 OBJECTIVES 1. Solve a quadratic equation by using the quadratic formula 2. Determine the nature of the solutions of a quadratic equation
More information2.5 Zeros of a Polynomial Functions
.5 Zeros of a Polynomial Functions Section.5 Notes Page 1 The first rule we will talk about is Descartes Rule of Signs, which can be used to determine the possible times a graph crosses the x-axis and
More informationTHE DIMENSION OF A VECTOR SPACE
THE DIMENSION OF A VECTOR SPACE KEITH CONRAD This handout is a supplementary discussion leading up to the definition of dimension and some of its basic properties. Let V be a vector space over a field
More information3 Some Integer Functions
3 Some Integer Functions A Pair of Fundamental Integer Functions The integer function that is the heart of this section is the modulo function. However, before getting to it, let us look at some very simple
More informationBX in ( u, v) basis in two ways. On the one hand, AN = u+
1. Let f(x) = 1 x +1. Find f (6) () (the value of the sixth derivative of the function f(x) at zero). Answer: 7. We expand the given function into a Taylor series at the point x = : f(x) = 1 x + x 4 x
More informationContinued Fractions. Darren C. Collins
Continued Fractions Darren C Collins Abstract In this paper, we discuss continued fractions First, we discuss the definition and notation Second, we discuss the development of the subject throughout history
More informationα = u v. In other words, Orthogonal Projection
Orthogonal Projection Given any nonzero vector v, it is possible to decompose an arbitrary vector u into a component that points in the direction of v and one that points in a direction orthogonal to v
More informationToday s Topics. Primes & Greatest Common Divisors
Today s Topics Primes & Greatest Common Divisors Prime representations Important theorems about primality Greatest Common Divisors Least Common Multiples Euclid s algorithm Once and for all, what are prime
More informationNotes on Determinant
ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without
More informationGod created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886)
Chapter 2 Numbers God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886) God created the integers and the rest is the work
More informationDIVISIBILITY AND GREATEST COMMON DIVISORS
DIVISIBILITY AND GREATEST COMMON DIVISORS KEITH CONRAD 1 Introduction We will begin with a review of divisibility among integers, mostly to set some notation and to indicate its properties Then we will
More informationSOLUTIONS FOR PROBLEM SET 2
SOLUTIONS FOR PROBLEM SET 2 A: There exist primes p such that p+6k is also prime for k = 1,2 and 3. One such prime is p = 11. Another such prime is p = 41. Prove that there exists exactly one prime p such
More informationSystems of Linear Equations
Systems of Linear Equations Beifang Chen Systems of linear equations Linear systems A linear equation in variables x, x,, x n is an equation of the form a x + a x + + a n x n = b, where a, a,, a n and
More informationPROOFS BY DESCENT KEITH CONRAD
PROOFS BY DESCENT KEITH CONRAD As ordinary methods, such as are found in the books, are inadequate to proving such difficult propositions, I discovered at last a most singular method... that I called the
More information6.3 Conditional Probability and Independence
222 CHAPTER 6. PROBABILITY 6.3 Conditional Probability and Independence Conditional Probability Two cubical dice each have a triangle painted on one side, a circle painted on two sides and a square painted
More information7.2 Quadratic Equations
476 CHAPTER 7 Graphs, Equations, and Inequalities 7. Quadratic Equations Now Work the Are You Prepared? problems on page 48. OBJECTIVES 1 Solve Quadratic Equations by Factoring (p. 476) Solve Quadratic
More informationThe Fundamental Theorem of Arithmetic
The Fundamental Theorem of Arithmetic 1 Introduction: Why this theorem? Why this proof? One of the purposes of this course 1 is to train you in the methods mathematicians use to prove mathematical statements,
More information11 Ideals. 11.1 Revisiting Z
11 Ideals The presentation here is somewhat different than the text. In particular, the sections do not match up. We have seen issues with the failure of unique factorization already, e.g., Z[ 5] = O Q(
More informationZeros of a Polynomial Function
Zeros of a Polynomial Function An important consequence of the Factor Theorem is that finding the zeros of a polynomial is really the same thing as factoring it into linear factors. In this section we
More informationLecture 13 - Basic Number Theory.
Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted
More informationMODERN APPLICATIONS OF PYTHAGORAS S THEOREM
UNIT SIX MODERN APPLICATIONS OF PYTHAGORAS S THEOREM Coordinate Systems 124 Distance Formula 127 Midpoint Formula 131 SUMMARY 134 Exercises 135 UNIT SIX: 124 COORDINATE GEOMETRY Geometry, as presented
More informationBasic Proof Techniques
Basic Proof Techniques David Ferry dsf43@truman.edu September 13, 010 1 Four Fundamental Proof Techniques When one wishes to prove the statement P Q there are four fundamental approaches. This document
More informationNOTES ON LINEAR TRANSFORMATIONS
NOTES ON LINEAR TRANSFORMATIONS Definition 1. Let V and W be vector spaces. A function T : V W is a linear transformation from V to W if the following two properties hold. i T v + v = T v + T v for all
More information