Similar documents
Tutorial Obtain the principal disjunctive normal form and principal conjunction form of the statement

Counting. Math 301. November 24, Dr. Nahid Sultana

Simplification by Truth Table and without Truth Table

MA Discrete Mathematics

Anna University, Chennai, November/December 2012

Simplification by Truth Table and without Truth Table

Simplification by Truth Table and without Truth Table

Unit I (Logic and Proofs)

Combinatorics. But there are some standard techniques. That s what we ll be studying.

Lecture 4: Counting, Pigeonhole Principle, Permutations, Combinations Lecturer: Lale Özkahya

Discrete Mathematics & Mathematical Reasoning Chapter 6: Counting

Mathematical Induction Assignments

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

1. a. Give the converse and the contrapositive of the implication If it is raining then I get wet.

Math.3336: Discrete Mathematics. Combinatorics: Basics of Counting

Discrete Mathematics. Spring 2017

Generating Functions (Revised Edition)

F 2k 1 = F 2n. for all positive integers n.

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee

Counting. Spock's dilemma (Walls and mirrors) call it C(n,k) Rosen, Chapter 5.1, 5.2, 5.3 Walls and Mirrors, Chapter 3 10/11/12

Problem Set 5 Solutions

n=0 xn /n!. That is almost what we have here; the difference is that the denominator is (n + 1)! in stead of n!. So we have x n+1 n=0

CDM Combinatorial Principles

MATH 3012 N Homework Chapter 9

Foundations of Computer Science Lecture 14 Advanced Counting

Counting Methods. CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

{ 0! = 1 n! = n(n 1)!, n 1. n! =

Some Review Problems for Exam 3: Solutions

Counting. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

1 Basic Combinatorics

Name (please print) Mathematics Final Examination December 14, 2005 I. (4)

Chapter 1. Pigeonhole Principle

Sail into Summer with Math!

Math 283 Spring 2013 Presentation Problems 4 Solutions

CLASS XI Maths : Sample Paper-1

Putnam Pigeonhole Principle October 25, 2005

Introduction to Decision Sciences Lecture 10

Generating Functions

Combinatorics. Problem: How to count without counting.

Introduction to Combinatorial Mathematics

Outline. We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction

Some Review Problems for Exam 3: Solutions

Generating Functions and the Fibonacci Sequence

Total score: /100 points

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60

Introduction to Induction (LAMC, 10/14/07)

UNCORRECTED SAMPLE PAGES. Extension 1. The binomial expansion and. Digital resources for this chapter

Exam 2 Solutions. x 1 x. x 4 The generating function for the problem is the fourth power of this, (1 x). 4

Math 2602 Finite and Linear Math Fall 14. Homework 8: Core solutions

Discrete Structures Homework 1

Divisibility in the Fibonacci Numbers. Stefan Erickson Colorado College January 27, 2006

MATH 10B METHODS OF MATHEMATICS: CALCULUS, STATISTICS AND COMBINATORICS

Discrete Mathematics (CS503)

Binomial Coefficient Identities/Complements

Basic Combinatorics. Math 40210, Section 01 Fall Homework 8 Solutions

Math 463/563 Homework #2 - Solutions

Announcements. CSE 321 Discrete Structures. Counting. Counting Rules. Important cases of the Product Rule. Counting examples.

CSCE 222 Discrete Structures for Computing. Review for Exam 2. Dr. Hyunyoung Lee !!!

1. How many labeled trees are there on n vertices such that all odd numbered vertices are leaves?

are the q-versions of n, n! and . The falling factorial is (x) k = x(x 1)(x 2)... (x k + 1).

201-1A5-MT - Mathematics Summer 2015 HOMEWORK 2 Deadline : Sunday, August 30, 2015 at 12 :30.

Discrete Math, Spring Solutions to Problems V

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

1. Suppose that a, b, c and d are four different integers. Explain why. (a b)(a c)(a d)(b c)(b d)(c d) a 2 + ab b = 2018.

Fall 2017 Test II review problems

Discrete Mathematics & Mathematical Reasoning Induction

Recursive Definitions

First Midterm Examination

What can you prove by induction?

PUTNAM PROBLEMS SEQUENCES, SERIES AND RECURRENCES. Notes

COMP Intro to Logic for Computer Scientists. Lecture 15

CS Foundations of Computing

16.5 Problem Solving with Functions

CS 210 Foundations of Computer Science

Revision Topic 8: Solving Inequalities Inequalities that describe a set of integers or range of values

Slides for a Course Based on the Text Discrete Mathematics & Its Applications (5 th Edition) by Kenneth H. Rosen

2016 EF Exam Texas A&M High School Students Contest Solutions October 22, 2016

1. Determine (with proof) the number of ordered triples (A 1, A 2, A 3 ) of sets which satisfy

Revision Problems for Examination 1 in Algebra 1

REVIEW QUESTIONS. Chapter 1: Foundations: Sets, Logic, and Algorithms

Solutions Manual. Selected odd-numbers problems from. Chapter 3. Proof: Introduction to Higher Mathematics. Seventh Edition

Problem Sheet 1. You may assume that both F and F are σ-fields. (a) Show that F F is not a σ-field. (b) Let X : Ω R be defined by 1 if n = 1

MATH 3012 N Solutions to Review for Midterm 2

Sequences. 1. Number sequences. 2. Arithmetic sequences. Consider the illustrated pattern of circles:

Generating Functions

Math 3U03 Combinatorics

MTH 3318 Solutions to Induction Problems Fall 2009

Mini Lecture 2.1 The Addition Property of Equality

Mathematical Fundamentals

Climbing an Infinite Ladder

Introduction to Decision Sciences Lecture 11

Examples of Finite Sequences (finite terms) Examples of Infinite Sequences (infinite terms)

Function Operations and Composition of Functions. Unit 1 Lesson 6

Notes for Finite Mathematics (WUSTL, Math 220, Summer 2017)

2017 HSC Mathematics Extension 1 Marking Guidelines

CHAPTER 1 POLYNOMIALS

d(x n, x) d(x n, x nk ) + d(x nk, x) where we chose any fixed k > N

Partition of Integers into Distinct Summands with Upper Bounds. Partition of Integers into Even Summands. An Example

CSE 20. Final Review. CSE 20: Final Review

Math Fall Final Exam. Friday, 14 December Show all work for full credit. The problems are worth 6 points each.

Transcription:

Unit Combinatorics State pigeonhole principle. If k pigeons are assigned to n pigeonholes and n < k then there is at least one pigeonhole containing more than one pigeons. Find the recurrence relation satisfying the equation y n A 3 n + B 4 n. y n A 3 n + B 4 n. y n+ A 3 n+ + B 4 n + 3A3 n 4B 4 n y n+ A 3 n+ + B 4 n+ 9A3 n + B 4 n y n+ + y n+ y n 0 Solve a k 3a k, for k, with a 0. Let k0 a k x k a 0 + a x + a x + where is the generating function for the sequence a n. Given a k 3a k 3a k a k 0 Multiplying by x k and summing from to, we have 3 a k x k k 3x k k a k x k a k x k k 0 a k x k 0 3x a 0 + a x + a x + a x + a x + 0 3x a 0 0 [from ] 3x 0 (3x ) 3x k0 a k x k 3 k x k k0 a k Coefficient of x k in G(x) a k 3 n x xn If seven colours are used to paint 50 bicycles, then show that at least 8 bicycles will be the same colour. By Pigeon principle, If there are n pigeons and k holes, then there is at least one hole contains at least k + pigeons. Here k 50, n 7 k + 50 + 49 n 7 7 + 7 + 8 There is at least 8 bicycles will be the same colour. n

Solve the recurrence relation y n 8y n + y n 0 for n, where y and y 3 80. y n 8y n + y n 0 () Let y n r n be the solution of (). r n 8r n + r n 0 r n 8 r + r 0 r n r r 8r + 0 The characteristic equation is r 8r + 0 r 4 0 r 4,4 Hence the solution to this recurrence relation is y n α 4 n + α n4 n y α + α 3 Solving (3) and (4), we get y 3 80 α + 3α 5 4 4 α, α 4 Substituting α, α in (), 4 y n 4n + 4 n4n Find the number of non-negative integer solutions of the equation x + x + x 3. If there are r unknowns and their sum is n, then the number of non-negative integer solution for the problem is n + r C r Here there are 3 unknowns and the sum is 7 The number of non-negative integer solutions of the equation x + x + x 3 is + 3 C 3 3C 78 Find the recurrence relation for the Fibonacci sequence. f n f n + f n, n and f 0 0, f Use Mathematical induction show that Let P n : + + 3 + + n P : + + P() is true. n k k n n + n + n n + n + ()

Let us assume that P(n) is true. Now we have to prove that P(n + ) is true. To prove: P n + : + + 3 + + n + n + n + n + 3 + + 3 + + n + n + n n + n + + n + (from ) n n + n + + n + n + n n + + n + n + n + n + n + n + n + 7n + + + 3 + + n + n + n + n + n + 3 P n + is true. By induction method, P n : + + 3 + + n n n + n + is true for all positive integers. There are 500 students in a college, of these 700 have taken a course in C, 000 have taken a course in Pascal and 550 have taken a course in Networking. Further 750 have taken courses in both C and Pascal. 400 have taken courses in both C and Networking, and 75 have taken courses in both Pascal and Networking. If 00 of these students have taken courses in C, Pascal and Networking. () How many of these 500 students have taken a course in any of these three courses C, Pascal and Networking? () How many of these 500 students have not taken a course in any of these three courses C, Pascal and Networking? Let U denote the number of students in a college. Let A denote the number of students taken a course in C. Let B denote the number of students taken a course in PASCAL. Let C denote the number of students taken a course in Networking. U 500, A 700, B 000, C 550, A B 750, A C 400, B C 75, A B C 00 () The number of students has taken a course in any of these three courses C, Pascal and Networking We know tat A B C A + B + C A B A C B C + A B C 700 + 000 + 550 750 400 75 + 00 A B C 05. () The number of students has not taken a course in any of these three courses C, Pascal and Networking is A B C U A B C 500 05 475 Using generating function solve y n+ 5y n+ + y n 0, n 0 with y o and

y. Let y n x n () where is the generating function for the sequence y n. Given y n+ 5y n+ + y n 0 Multiplying by x n and summing from 0 to, we have y n+ x n 5 x y n+x n + y n+ x n + y n x n 0 5 x n + y n+ x + y n x n 0 x y x y 0 5 x y 0 + 0 [from ] x 5 x + y x y 0 x + 5y 0 x 0 x 5 x + x x + 5 x 0 x 5x + x x 4 x x 5x + x 4x x 4x x 5x + 4x 3x x 4x 3x x A 3x + B x 4x A x + B 3x Put x in () 4 B 3 B B Put x in () 3 4 3 A 3 3 A 3 A y n x n 3x x 3x + x 3 n x n + n x n y n Coefficient of x n in G(x) y n 3 n + n+ A box contains six white balls and five red balls. Find the number of ways four balls can be drawn from the box if () They can be any colour () Two must be white and two red

(3) They must all be the same colour. Total number of balls + 5 () The number of ways four balls can be drawn from the box if they can be any colour is 0 9 8 C 4 330 4! () The number of ways four balls can be drawn from the box if two must be white and two red C 5C 5 5 4 5 0 50!! (3) The number of ways four balls can be drawn from the box if they must all be the same colour. C 4 + 5C 4 C + 5C 5 + 5 5 + 5 0! Prove by the principle of Mathematical induction, for n a positive integer + + 3 + + n n n + n + Let P n : + + 3 + + n n n + n + () P : + + P() is true. Let us assume that P(n) is true. Now we have to prove that P(n + ) is true. To prove: P n + : + + 3 + + n + n + n + n + 3 + + 3 + + n + n + n n + n + + n + (from ) n n + n + + n + n + n n + + n + n + n + n + n + n + n + 7n + + + 3 + + n + n + n + n + n + 3 P n + is true. By induction method, P n : + + 3 + + n n n + n + is true for all positive integers. Find the number of distinct permutations that can be formed from all the letters of each word () RADAR () UNUSUAL.

() The word RADAR contains 5 letters of which A s and R s are there. Te number of possible words 5!!! 30 Number of distinct permutation 30. () The word UNUSUAL contains 7 letters of which 3 U s are there. Te number of possible words 7! 3! 840 Number of distinct permutation 840. Solve the recurrence relation, (n) S(n ) + S(n ), with S(0) 3, S(), by finding its generating function. The given recurrence relation is a n + a n a n 0 with a 0 3, a. Let a n x n a 0 + a x + a x + where is the generating function for the sequence a n. Given a n + a n a n 0 Multiplying by x n and summing from to, we have a n x n + a n x n n x n n n a n x n a n x n + x a n x n n 0 n a n x n 0 x a 0 + a x + a x + + x a x + a x + a x + a 3 x 3 + a 4 x 4 + 0 x + x xa 0 + a 0 + a x 0 [from ] x + x 3x + 3 + x 0 x + x x 3 x 3 x + x x 3 + x x 3 x + x x A + x + B x 3 x A x + B + x Put x in () 3 B + 3 B B 4 3 Put x in () 3 + A + 3A 5 A 5 3 3 x + x x 5 3 + x + 4 3 x

a n x n 5 n x n + 4 3 3 a n Coefficient of x n in G(x) n x n x xn a n 5 3 n + 4 3 n Prove, by mathematical induction, that for all n, n 3 + n is a multiple of 3. Let P n : n, n 3 + n is a multiple of 3. () P : 3 + + 3 is a multiple of 3. P() is true. Let us assume that P(n) is true. Now we have to prove that P(n + ) is true. To prove: P n + : (n + ) 3 + (n + ) is a multiple of 3 (n + ) 3 + n + n 3 + 3n + 3n + + n + n 3 + n + 3n + 3n + 3 n 3 + n + 3 n + n + From () n 3 + n is a multiple of 3 (n + ) 3 + n + is a multiple of 3 P n + is true. By induction method, P n : n, n 3 + n is a multiple of 3, is true for all positive integer n. Using the generating function, solve the difference equation y n+ y n+ y n 0, y, y 0 Let y n x n () where is the generating function for the sequence y n. Given y n+ y n+ y n 0 Multiplying by x n and summing from 0 to, we have y n+ x n x y n+x n + y n+ x n x n + y n+ x y n x n 0 y n x n 0 x y x y 0 x y 0 0 [from ] x x y x y 0 x + y 0 x 0 x x x x + x 0 x x + x x x x x x x x

x x x x 3x + x x 3x + x A 3x + B + x x A x + + B 3x Put x in () B + 3 5 B 5 B Put x in () 3 3 A 3 + 5 3 A 5 3 A 3x + + x 3x + x y n x n 3 n x n + n x n y n Coefficient of x n in G(x) y n 3 n + n x xn How many positive integers n can be formed using the digits 3, 4, 4, 5, 5,, 7 if n has to exceed 5000000? The positive integer n exceeds 5000000 if the first digit is either 5 or or 7. If the first digit is 5 then the remaining six digits are 3,4,4,5,,7. Then the number of positive integers formed by six digits is! 30 [Since 4 appears twice]! If the first digit is then the remaining six digits are 3,4,4,5,5,7. Then the number of positive integers formed by six digits is! 80 [Since 4 & 5 appears twice]!! If the first digit is 7 then the remaining six digits are 3,4,4,5,,5. Then the number of positive integers formed by six digits is! 80 [Since 4 & 5 appears twice]!! The number of positive integers n can be formed using the digits 3,4,4,5,5,,7 if n has to exceed 5000000 is 30 + 80 + 80 70. Find the number of integers between and 50 both inclusive that are divisible by any of the integers,3,5,7. Let A, B, C and D represents the integer from to 50 that are divisible by,3,5 and 7 respectively. A 50 5, B 50 3 83, C 50 5 50, D 50 7 35

A B 50 3 A B D B D 50 3 7 4, A C 50 5 5, A D 50 7 7, B C 50 3 5, C D 50 5 7 7, A B C 50 3 5 8 50 3 7 5, A C D 50 5 7 3, B C D 50 A B C D 50 3 5 7 3 5 7 The number of integers between and 50 both inclusive that are divisible by any of the integers,3,5,7 is A B C D A + B + C + D A B A C A D B C B D C D + A B C + A B D + A C D + B C D A B C D A B C D 5 + 83 + 50 + 35 4 5 7 7 + 8 + 5 + 3 + A B C D 93 Use mathematical induction to prove the inequality n < n for all positive integer n. Proof: Let P n : n < n () P : < < P() is true. Let us assume that P(n) is true. Now we have to prove that P(n + ) is true. To prove: n + P n + : n + < n < n (from ) n + < n + n + < n + n < n P n + is true. By induction method, n + <. n n + n + < P n : n < n is true for all positive integers. What is the maximum number of students required in a discrete mathematics class to be sure that at least six will receive the same grade if there are five possible grades A, B, C, D and F. By Pigeonhole principle, If there are n holes and k pigeons n k then there is at least one hole contains at least k + pigeons. n Here n 5 k + 5 k 5 k 5 k 5 The maximum number of students required in a discrete mathematics class is. Suppose that there are 9 faculty members in the mathematics department and in the computer science department. How many ways are there to select a committee to develop a discrete mathematics course at a school if the committee is to consist of three faculty member from mathematics department and four from the computer science department?

The number of ways to select 3 mathematics faculty members from 9 faculty members is 9C 3 ways. The number of ways to select 4 computer Science faculty members from faculty members is C 4 ways. The number of ways to select a committee to develop a discrete mathematics course at a school if the committee is to consist of three faculty member from mathematics department and four from the computer science department is 9C 3. C 4 ways. 9C 3. C 4 9 8 7. 3! 0 9 8 4! 770 Using method of generating function to solve the recurrence relation a n + 3a n 4a n 0; n, given that a 0 3 and a. Let a n x n a 0 + a x + a x + where is the generating function for the sequence a n. Given a n + 3a n 4a n 0 Multiplying by x n and summing from to, we have n n a n x n + 3 a n x n 4 n n a n x n + 3x a n x n 4x n a n x n 0 n a n x n 0 a x + a 3 x 3 + a 4 x 4 + + 3x a x + a x + 4x a 0 + a x + a x + 0 a 0 a x + 3x 3xa 0 4x 0 [from ] + 3x 4x 3 + x 9x 0 + 3x 4x 3 7x 3 7x + 3x 4x 3 7x + 4x x 3 7x + 4x x A + 4x + B x 3 7x A x + B + 4x Put x in () 4 3 7 4 A + 4 5 4 A 3 + 7 4 A 9 5 Put x in () 3 7 B + 4 5B 4 B 4 5 9 4 5 + 4x 5 x

a n x n 9 5 4 n x n 4 5 a n Coefficient of x n in G(x) x n x xn a n 9 5 4 n 4 5 Prove, by mathematical induction, that for all n, n 3 + n is a multiple of 3. Let P n : n, n 3 + n is a multiple of 3. () P : 3 + + 3 is a multiple of 3. P() is true. Let us assume that P(n) is true. Now we have to prove that P(n + ) is true. To prove: P n + : (n + ) 3 + (n + ) is a multiple of 3 (n + ) 3 + n + n 3 + 3n + 3n + + n + n 3 + n + 3n + 3n + 3 n 3 + n + 3 n + n + From () n 3 + n is a multiple of 3 (n + ) 3 + n + is a multiple of 3 P n + is true. By induction method, P n : n, n 3 + n is a multiple of 3, is true for all positive integer n. Using the generating function, solve the difference equation y n+ y n+ y n 0, y, y 0 Let y n x n () where is the generating function for the sequence y n. Given y n+ y n+ y n 0 Multiplying by x n and summing from 0 to, we have y n+ x n x y n+x n + y n+ x n x n + y n+ x y n x n 0 y n x n 0 x y x y 0 x y 0 0 [from ] x x y x y 0 x + y 0 x 0 x x x x + x 0 x x + x x x x x x x x

x x x x 3x + x x 3x + x A 3x + B + x x A x + + B 3x Put x in () B + 3 5 B 5 B Put x in () 3 3 A 3 + 5 3 A 5 3 A 3x + + x 3x + x y n x n 3 n x n + n x n y n Coefficient of x n in G(x) y n 3 n + n x xn Using mathematical induction to show that + + + + >, n. 3 n Let P n : + + 3 + + > n, n () n P : +.707 >.44. + > P() is true. Let us assume that P(n) is true. Now we have to prove that P(n + ) is true. To prove: P n + : + + 3 + + n + n + > n + + + 3 + + n + n + n + from () n + n n + + n + n + n + n + > n + n + > n + n +

P n + is true. By induction method, + + 3 + + n + n + > n + P n : + + + + > n, is true for all positive integer n. 3 n Using method of generating function to solve the recurrence relation a n 4a n 4a n + 4 n ; n, given that a 0 and a 8. Let a n x n a 0 + a x + a x + where is the generating function for the sequence a n. Given a n 4a n 4a n + 4 n 4a n 4a n + a n 4 n Multiplying by x n and summing from to, we have 4 a n x n 4 n 4x n n a n x n 4x a n x n + a n x n 4 n n n n n x n a n x n + a n x n 4 n 4x a 0 + a x + a x + 4x a x + a x + + a x + a 3 x 3 + a 4 x 4 + 4x + 4x 3 + 4x a 0 + a x + a x + 4x a 0 + a x + a x + + 4xa 0 + a x + a 3 x 3 + a 4 x 4 + 4x + 4x 3 + 4x 4x + 4xa 0 + a 0 a x x + 4x + 4x + [from ] 4x 4x + + 8x 8x x 4x 4x 4x + x 4x + x x + 4x 4x x x + 8x 4x x + 8x 4x x n x + 8x 4x x A 4x + B x + C x x + 8x A x + B x 4x + C 4x Put x in () x n 4 + 8 C C C Put x in () 4

+ 8 4 A A A 4 4 Put x 0 in () A + B + C 4 + B B 0 4 4x + 0 x x a n x n 4 4 n x n x xn & a n Coefficient of x n in G(x) a n 4 n + n + n + x n + n x n n + xn