Math 409/409G History of Mathematics

Slides:



Advertisements
Similar presentations
The Euler Phi-Function Is Multiplicative (3/3)
Advertisements

Section 4.1: Primes, Factorization, and the Euclidean Algorithm Practice HW (not to hand in) From Barr Text p. 160 # 6, 7, 8, 11, 12, 13.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides.
Chapter Primes and Greatest Common Divisors ‒Primes ‒Greatest common divisors and least common multiples 1.
Pigeons, Integer Equations, and Congruence Sections 8.8 and 10.1 to 10.3.
Greatest Common Divisor. Definitions Let a and b be two non-zero integers. The greatest common divisor of a and b, denoted gcd(a,b) is the largest of.
Basic properties of the integers
CSE115/ENGR160 Discrete Mathematics 04/19/12 Ming-Hsuan Yang UC Merced 1.
Elementary Number Theory and Methods of Proof. Basic Definitions An integer n is an even number if there exists an integer k such that n = 2k. An integer.
Announcements: Homework 1 returned. Comments from Kevin? Homework 1 returned. Comments from Kevin? Matlab: tutorial available at
Chapter II. THE INTEGERS
Congruence of Integers
1 More Applications of the Pumping Lemma. 2 The Pumping Lemma: Given a infinite regular language there exists an integer for any string with length we.
Ch 3.3: Linear Independence and the Wronskian
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
SOLVING SYSTEMS USING SUBSTITUTION
LIAL HORNSBY SCHNEIDER
Properties of the Integers: Mathematical Induction
Quiz 2 key.
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
Chapter 2 The Fundamentals: Algorithms, the Integers, and Matrices
1 Properties of Integers Objectives At the end of this unit, students should be able to: State the division algorithm Apply the division algorithm Find.
Module :MA3036NI Cryptography and Number Theory Lecture Week 7
Mathematics of Cryptography Modular Arithmetic, Congruence,
Complexity of the Euclidean Algorithm (2/7) The complexity of an algorithm is the approximate number of steps necessary for the algorithm to finish as.
Chapter 4 Number Theory in Asia The Euclidean Algorithm The Chinese Remainder Theorem Linear Diophantine Equations Pell’s Equation in Brahmagupta Pell’s.
MATH 224 – Discrete Mathematics
WIKIPEDIA HAS MANY MORE DIVISIBILITY RULES. EXAMPLE Since 52=13(4) is divisible by 4, is divisible by 4 Since 452=56(8)+4 is not divisible.
Cryptography Inverses and GCD Piotr Faliszewski. GCD(a,b) gcd(a, 0) = a gcd(a, b) = gcd(b, a mod b) a = b*q + r Here: q =  a / b  r = a mod b (a –
The Integers. The Division Algorithms A high-school question: Compute 58/17. We can write 58 as 58 = 3 (17) + 7 This forms illustrates the answer: “3.
CompSci 102 Discrete Math for Computer Science
Rational Numbers and Fields
MAT 320 Spring 2008 Section 1.2.  Start with two integers for which you want to find the GCD. Apply the division algorithm, dividing the smaller number.
Math 409/409G History of Mathematics Books VII – IX of the Elements Part 3: Prime Numbers.
Chinese Remainder Theorem Dec 29 Picture from ………………………
Solving Linear Inequalities Lesson 5.5 linear inequality: _________________________________ ________________________________________________ solution of.
Euclidean Algorithm How to find a greatest common divisor in several easy steps.
Section 5.5 The Real Zeros of a Polynomial Function.
Math 409/409G History of Mathematics Books VII – IX of the Elements Part 1: Divisibility.
1 Section Congruences In short, a congruence relation is an equivalence relation on the carrier of an algebra such that the operations of the algebra.
MA/CSSE 473 Day 08 Extended Euclid's Algorithm Modular Division Fermat's little theorem.
Properties of the gcd Theorem: For any two integers a,b there exist integers x,y such that xa + yb = gcd(a,b). A proof will not be given at this point.
Lesson 11-2 Remainder & Factor Theorems Objectives Students will: Use synthetic division and the remainder theorem to find P(r) Determine whether a given.
Discrete Mathematics 4. NUMBER THEORY Lecture 7 Dr.-Ing. Erwin Sitompul
Warm Up Determine whether each system has zero, one or infinitely many solutions one infinitely many zero 3x + y = 15 3x – 2y = 6 x + 2y = 18.
Warm Up Tell whether the system has one solution, no solution, or infinitely many solutions.
1 Math Pacing Graphing Linear Equations. Equations as Relations A linear equation can be written in the standard form of a linear equation: Ax + By =
Part II – Theory and Computations. Major Ideas....
Chapter 4 With Question/Answer Animations 1. Chapter Summary Divisibility and Modular Arithmetic - Sec 4.1 – Lecture 16 Integer Representations and Algorithms.
5.1 Solving Systems of Linear Equations by Graphing
MA/CSSE 473 Day 07 Extended Euclid's Algorithm Modular Division Fermat's little theorem intro.
Lesson 4-1 Solving linear system of equations by graphing
Lecture 4 The Euclidean Algorithm
Chapter 6 More about Polynomials
Mathematics of Cryptography
8.7Systems of Linear Equations – Part 1
Lesson 23 – Roots of Polynomial Functions
Number Theory and Modular Arithmetic
Analytic Number Theory MTH 435
Factor Theorems.
The Extended Euclidean Algorithm (2/10)
4.4 Objectives Day 1: Find the determinants of 2  2 and 3  3 matrices. Day 2: Use Cramer’s rule to solve systems of linear equations. Vocabulary Determinant:
Topic Past Papers –Proofs
Miniconference on the Mathematics of Computation
Modular Inverses Recall the simple encryption function
Objective: Students will solve systems by graphing
Miniconference on the Mathematics of Computation
Warm Up.
Polynomials Thursday, 31 October 2019.
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Math 409/409G History of Mathematics Solving Linear Diophantine Equations

A Diophantine equation is any equation for which you are interested only in the integer solutions to the equation. Thus a linear Diophantine equation is a linear equation ax + by  c with integer coefficients for which you are interested only in finding integer solutions.

In the last lesson you saw how to use a TI-83/84 to solve the linear Diophantine equation x + 4y  44 subject to the constraint 6 < x < 12. Had this equation not been subject to a constraint on x, there would have been an infinite number of solutions xo, yo. Using a TI-83/84 to find them would be an impossible task unless you are quite adept at recognizing obscure patterns.

Books VII – IX of the Elements, In this lesson you will see how to solve linear Diophantine equations using nothing more than pencil and paper. This will require you to recall a theorem from the previous lesson titled: Books VII – IX of the Elements, Part 1: Divisibility.

Theorem D1 For any nonzero integers a and b, there exist integers x Theorem D1 For any nonzero integers a and b, there exist integers x* and y* such that gcd(a,b)  ax* + by*. In that previous lesson you also saw in detail how to use the Euclidean Algorithm to find the values of gcd(a,b), x*, and y*. Later in this lesson I will review, without explanation, how this is done.

When you have a linear Diophantine equation to solve, the first question you should ask about that Diophantine equation is whether or not the equation admits solutions in integers. The following theorems tell you how to find the answer to these question.

Theorem D2 If gcd(a,b)  c, then the linear Diophantine equation ax + by  c has no solution. Proof: Let d  gcd(a,b). Then there are integers r and s such that dr  a and ds  b. By way of contradiction, assume that ax + by  c does have a solution xo, yo. Then c  axo + byo  drxo + dsyo. But this says that d|c since c  d(rxo + syo). Since this is a contradiction, the Diophantine equation has no solution.

Theorem D3 If gcd(a,b)│c, then the linear Diophantine equation ax + by  c has a solution. Proof: Let d  gcd(a,b). Since d|c, dp  c for some integer p. By theorem D1, there are integers x* and y* such that d  ax* + by*. So c  dp  a(x*p) + b(y*p). Hence ax + by  c has a solution, namely xo  x*p and yo  y*p.

Examples By Theorem D2, the Diophantine equation 2x + 10y  17 has no solution (in integers) since gcd(2,10)  2  17. By Theorem D3, the Diophantine equation 3x + 6y  18 does have solutions (in integers) since gcd(3,6)  3 │18.

If a linear Diophantine equation ax + by  c does have a solution (that is if gcd(a,b)│c), how do you solve it?

Theorem D4 If the linear Diophantine equation ax + by  c does have a solution, then all such solutions are given by x  xo + (b/d)t and y  yo – (a/d)t where d  gcd(a,b), xo, yo is a particular solution to the equation and t ranges over the integers.

Use the Euclidean Algorithm to find gcd(a,b). If d  gcd(a,b)│c, then the solutions to ax + by  c are x  xo + (b/d)t and y  yo – (a/d)t where xo, yo is a particular solution and t ranges over the integers. To solve ax + by  c: Use the Euclidean Algorithm to find gcd(a,b). Use the Euclidean Algorithm to find x* and y* such that d  ax* + by*. Find p such that c  dp. (p exists since d │c.) Then xo  x*p and yo  y*p are particular solutions since c  dp  a(x*p) + b(y*p). Then all solutions are x  xo + (b/d)t and y  yo – (a/d)t where t is an integer.

Find all solutions to the Diophantine equation 172x + 20y  1000. Use the Euclidean Algorithm to find d  gcd(172, 20).

Use the Euclidean Algorithm to find x* and y* such that d  ax* + by*. Solve for the remainder.

Using these equations we get: So x*  2 and y*  -17

Solve 172x + 20y  1000 Find p such that c  dp. d  gcd(172,20)  4 c  1000 so 1000  4·250.

Solve 172x + 20y  1000 Then xo  x*p and yo  y*p are particular solutions since c  dp  a(x*p) + b(y*p). 1000  4·250  [ ]·250 1000  172·(500) + 20·(- 4250) So a particular solution is xo  500 and y  - 4250.

Solve 172x + 20y  1000 Then all solutions are x  xo + (b/d)t and y  yo – (a/d)t where t is an integer. From the equation 172x + 20y  1000, we see that a  172 and b  20. From our previous work, xo  500, yo  - 4250, and d  4. So the solutions, in integers, are x  500 + 5t and y  - 4250 – 43t where t ranges over the integers.

Example Find all positive solutions to the Diophantine equation 172x + 20y  1000. We just saw that all solutions to this equation are of the form x  500 + 5t and y  - 4250 – 43t where t ranges over the integers. So we need to find those values of t for which x  500 + 5t > 0 and y  - 4250 – 43t > 0.

Since t must be an integer, t  - 99. So - 100 < t  - 99. Find all positive integer solutions to the equation 172x + 20y  1000. All solutions are x  500 + 5t and y  - 4250 – 43t. x  500 + 5t > 0  t > - 100. y  - 4250 – 43t > 0  t < - 98.83… Since t must be an integer, t  - 99. So - 100 < t  - 99.

We just found that - 100 < t  - 99. Since t must be an integer, Find all positive integer solutions to the equation 172x + 20y  1000. All solutions are x  500 + 5t and y  - 4250 – 43t. We just found that - 100 < t  - 99. Since t must be an integer, - 100 < t  - 99  t  - 99. So there is only one positive solution to the Diophantine equation, namely x  500 + 5t  ···  5 and y  - 4250 – 43t  ···  7.

Diophantine Equations This ends the lesson on Solving Linear Diophantine Equations