Math 170 Project #11 Part 2 Jeffrey Martinez Bianca Orozco Omar Monroy.

Slides:



Advertisements
Similar presentations
The Pigeon hole problem
Advertisements

Tutorial 2: First Order Logic and Methods of Proofs
Lecture 4 4.1,4.2 Counting. 4.1 Counting Two Important Principles: Product Rule and Sum Rule. Product Rule: Assume we need to perform procedure 1 AND.
Review for CS1050. Review Questions Without using truth tables, prove that  (p  q)   q is a tautology. Prove that the sum of an even integer and an.
COUNTING AND PROBABILITY
Application: The Pigeonhole Principle Lecture 37 Section 7.3 Wed, Apr 4, 2007.
The Pigeonhole Principle
Section 11 Direct Products and Finitely Generated Abelian Groups One purpose of this section is to show a way to use known groups as building blocks to.
3.3 Divisibility Definition If n and d are integers, then n is divisible by d if, and only if, n = dk for some integer k. d | n  There exists an integer.
Elementary Number Theory and Methods of Proof
Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
Copyright © Cengage Learning. All rights reserved.
3.3 The Characteristic function of the set  function from universal set to {0,1}  Definition 3.6: Let U be the universal set, and let A  U. The characteristic.
Ramseyan Theorems for Numbers. page 2Ramseyan Theorems for Numbers Contents 1.Sum-Free Sets 2.Zero-Sum Sets 3.Szemerédi’s Cube Lemma.
Functions, Pigeonhole Principle Lecture 14: Nov 4 A B f( ) =
Nonregular languages Sipser 1.4 (pages 77-82). CS 311 Mount Holyoke College 2 Nonregular languages? We now know: –Regular languages may be specified either.
Nonregular languages Sipser 1.4 (pages 77-82). CS 311 Fall Nonregular languages? We now know: –Regular languages may be specified either by regular.
Discrete Structures Chapter 5 Pigeonhole Principle Nurul Amelina Nasharuddin Multimedia Department.
The Pigeonhole Principle
Discrete Mathematics Lecture 7 Alexander Bukharovich New York University.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Pigeonhole.
Fall 2004COMP 3351 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Copyright © Cengage Learning. All rights reserved.
1 Non-regular languages. 2 Regular languages Non-regular languages.
Math Olympiad Strategies
Functions A B f( ) =. This Lecture We will define a function formally, and then in the next lecture we will use this concept in counting. We will also.
Methods of Proof & Proof Strategies
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Fall 2015 COMP 2300 Discrete Structures for Computation
Divisibility Rules and Finding Factors
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
The Pigeonhole Principle. The pigeonhole principle Suppose a flock of pigeons fly into a set of pigeonholes to roost If there are more pigeons than pigeonholes,
Discrete Structures Combinations. Order Doesn’t Matter In the previous section, we looked at two cases where order matters: Multiplication Principle –
Divisibility and Mental Math. Vocabulary A number is divisible by another number if it can be divided into and result in a remainder of is divisible.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
1 Chapter 2 Pigeonhole Principle. 2 Summary Pigeonhole principle –simple form Pigeonhole principle –strong form Ramsey’s theorem.
Chapter 7 – Counting Techniques CSNB 143 Discrete Mathematical Structures.
Ways to Check for Divisibility Dividing by 2 All even numbers are divisible by 2 Even numbers are numbers that end with either 2, 4, 6, 8, or 0.
Introduction Suppose that a password on a computer system consists of 6, 7, or 8 characters. Each of these characters must be a digit or a letter of the.
Review. Problem 1 What is the output of the following piece of code void increment(int x) { x++; } int main() { int y = 10; increment(y); cout
The Pigeonhole Principle Alan Kaylor Cline. The Pigeonhole Principle Statement Children’s Version: “If k > n, you can’t stuff k pigeons in n holes without.
Section 7.1. Probability of an Event We first define these key terms: An experiment is a procedure that yields one of a given set of possible outcomes.
3/7/20161 Now it’s time to look at… Discrete Probability.
9.3 Geometric Sequences and Series. 9.3 Geometric Sequences A sequence is geometric if the ratios of consecutive terms are the same. This common ratio.
The Pigeonhole Principle. Pigeonhole principle The pigeonhole principle : If k is a positive integer and k+1 or more objects are placed into k boxes,
Nonregular Languages How do you prove a language to be regular? How do you prove a language to be nonregular? A Pumping Lemma.
Pigeonhole Principle. If n pigeons fly into m pigeonholes and n > m, then at least one hole must contain two or more pigeons A function from one finite.
Discrete Mathematics. Exercises Exercise 1:  There are 18 Computer Science (CS) majors and 325 Business Administration (BA) majors at a college.
Section The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must have more than 1 pigeon.
Equivalence with FA * Any Regex can be converted to FA and vice versa, because: * Regex and FA are equivalent in their descriptive power ** Regular language.
Main Menu Main Menu (Click on the topics below) Pigeonhole Principle Example Generalized Pigeonhole Principle Example Proof of Pigeonhole Principle Click.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Discrete Mathematics Lecture 6
L14: Permutations, Combinations and Some Review
Non-regular languages
Standard Representations of Regular Languages
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
Reflexivity, Symmetry, and Transitivity
The Pigeonhole Principle
CS 2210 Discrete Structures Counting
The sum of any two even integers is even.
COUNTING AND PROBABILITY
Elementary Questions about Regular Languages
Non-regular languages
The Pigeon hole problem
Pigeon-Hole Principle ( PHP )
The Pigeonhole Principle
From the last time: gcd(a, b) can be characterized in two different ways: It is the least positive value of ax + by where x and y range over integers.
Presentation transcript:

Math 170 Project #11 Part 2 Jeffrey Martinez Bianca Orozco Omar Monroy

Pigeonhole A generalization of the pigeonhole principle states that if n pigeons fly into m pigeonholes and, for some positive integer k, k<n/m (the # of pigeons doesn’t divide evenly into the pigeonholes), then at least one pigeonhole contains k+1 or more pigeons.

Pigeonhole Example Holes (m) = 4 Pigeons (n) = 9 Pigeons per hole (k) = 2 n nnnn In this example, pigeonhole #1 has 3 pigeons (k+1)

9.4 Question # 37 a)Suppose a₁, a₂, … aₓ is a sequence of x integers none of which is divisible by x. Show that at least one of the differences aᵤ→aᵥ (for u ≠ v) must b)Show that every finite sequence x₁, x₂, … xₐ of n integers has a consecutive subsequence xᵢ₊₁, xᵢ₊₂, xᵢ₊₃,... xj whose sum is divisible by n. Example: n = 5: 3, 4, 17, 7, 16 has the consecutive subsequence 17, 7, 16 whose sum is divisible by 5.

Definition of Divisibility All numbers that are divisible by x are of the form xn, where n is an integer. Any integer that is not divisible by x has a remainder c, where c is an integer greater than zero and less than x. xn + c, where n is an integer and c is an integer greater than 0 and less than x.

Part a) Example Let sequence A = {a 1, a 2, a 3, a 4, a 5 } of length 5. x = 5. Since none of the elements can be divisible by 5, the elements of A are all of the form: 5n+1, 5n+2, 5n+3, or 5n+4. Pick 4 numbers that are not divisible by 5, arbitrarily, lets pick 3, 4, 6, 7, none of their differences are equal to 5. 3 is of the form 5(0)+3 4 is of the form 5(0)+4 6 is of the form 5(1)+1 7 is of the form 5(1)+2 Picking the 5th number, no matter what number we choose, as long as it does not repeat a previous number of the sequence, (u ≠ v) and is not divisible by 5, we will have a difference that is divisible by 5. For instance let’s choose 29, which is of the form 5(5)+4, and [5(5)+4]- [5(0)+4] = 5(5) which is divisible by 5.

Part b) Example Let x = 3, sequence with an element divisible by x: {4, 6, 8}; subsequence {6} is divisible by 3 Otherwise, a sequence of numbers of which none are divisible by 3 and have a remainder of either 1 or 2 will result in the proof from part a). This once again is the pigeon hole principle, since for every 3 numbers chosen that are not divisible by 3, at least 2 must have the same remainder. Since that is true, for a consecutive subsequence of a 3 element sequence the remainders of those numbers will at least once add up to 3.