0% found this document useful (0 votes)
41 views3 pages

Inclusion-Exclusion Exercises in Discrete Math

The document contains a series of exercises focused on the Inclusion-Exclusion principle in Discrete Mathematics for the 2024/2025 academic year. Each exercise presents a unique problem requiring proof or demonstration of a mathematical concept related to combinatorics, geometry, or number theory. The exercises range from basic applications of the principle to more complex scenarios involving permutations and arrangements.

Uploaded by

yxqbkhhpbh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views3 pages

Inclusion-Exclusion Exercises in Discrete Math

The document contains a series of exercises focused on the Inclusion-Exclusion principle in Discrete Mathematics for the 2024/2025 academic year. Each exercise presents a unique problem requiring proof or demonstration of a mathematical concept related to combinatorics, geometry, or number theory. The exercises range from basic applications of the principle to more complex scenarios involving permutations and arrangements.

Uploaded by

yxqbkhhpbh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1st year

Discrete Mathematics I
2024/2025

Exercises sheet 2: Inclusion-Exclusion principle

Exercise 1. 51 numbers are chosen from the integers between 1 and 100 inclusively. Prove that 2 of the chosen
integers are consecutive.

Exercise 2. There are 5 points in a square of side length 2 units. Prove that there exists 2 of them having a

distance at most 2.

Exercise 3. Show that for any set of 10 points chosen within a square whose sides are of length 3 units, there

are two points in the set whose distance a part at most 2.

Exercise 4. Sixty five points are giving inside a square of side length one unit. Prove that there are three of
them that span a triangle of area at most 1/32.

Exercise 5. Let S = {1, . . . , 20}, if we pick eleven numbers, we are guaranteed that the sum of two picked
numbers is 21.

Exercise 6. Show that among any group of n people, where n ≥ 2, there are at least two people who know
exactly the same number of people in the group.

Exercise 7. Show that any set of 7 distinct integers includes 2 integers x and y such that either x + y or x − y
is divisible by 10 .

Exercise 8. The total number of games played by a team in a 15-day season was 20 . The rules required the
team to play at least 1 game daily. Show that there was a period of consecutive days during which exactly 9
games were played.

Exercise 9. Let us arbitrarily select n + 1 distinct integers from the set [2n] = {1, 2, . . . , 2n}. Then there is at
least one pair of selected integers whose sum is 2n + 1, and there is at least one pair of selected integers whose
difference is n.

Exercise 10. Show that any set of n integers has a subset such that the sum of integers in the subset is divisible
by n.

Exercise 11. Let A be n × n matrix with 0 and 1 entries only. Let us assume that n ⩾ 2, and that at least
2n entries are equal to 1. Prove that A contains two entries equal to 1 so that one of them is strictly above and
strictly at the right of the other.

Exercise 12. Let A = {a1 , a2 , a3 , a4 , a5 } be a set of 5 integers. Show that for any permutation ai1 ai2 ai3 ai4 ai5
of A, the product (ai1 − a1 )(ai2 − a2 ) · · · (ai5 − a5 ) is always even.

Page 1
Exercise 13. There are 15 subjects in a school, every student takes 4 subjects out of them. Given that the
school have 18 students, prove that 2 of the students have two common subjects.

Exercise 14. Let S ∈ {1, 2, . . . , 2n} such that |S| = n + 1, where n ∈ N. Show that there exist a, b ∈ S, with
a ̸= b such that a|b.

Exercise 15. 41 rooks are placed on a 10 × 10-chessboard. Prove that there are five rooks among these 41 that
do not attack each other (i.e., no two of them are in the same horizontal or vertical line).

Exercise 16. Five lattice points are chosen on an n × n square lattice. Line segments are drawn between every
pair of these points. Prove that one of the midpoints of these line segments is also a lattice point.

Exercise 17. Every point in a plane is either red, green, or blue. Prove that there exists a rectangle in the plane
such that all of its vertices are the same color.

Exercise 18. What is the number of integral solutions of the equation

x1 + x2 + x3 + x4 = 18,

that satisfy
1 ≤ x1 ≤ 5, −2 ≤ x2 ≤ 4, 0 ≤ x3 ≤ 5, 3 ≤ x4 ≤ 9.

Exercise 19. Let S(n, k), n, k ∈ N, denote the number of surjective mappings from Nn to Nk . Show that
k  
X k
i
S(n, k) = (−1) (k − i)n .
i=0
i

Exercise 20. How many permutations of the 26 letters do not contain any of the following sequences: MATH,
EXA, DISCR, NHSM.

Exercise 21. Let D(n) be the number of derangements for n different objects, using the inclusion-exclusion
principle, show that
n
X (−1)k
D(n) = n! .
k=0
k!

Exercise 22. How many permutations of the word "discretemaths" does not contain consecutive pairs?

Exercise 23. Let k, n, r ∈ N. Find the number of integer solutions to the equation

x1 + x2 + · · · + xn = r,

such that 0 ≤ xi ≤ k, for each i = 1, 2, . . . , n.

Page 2
Exercise 24.

(1) Let B be a subset of A with |A| = n and |B| = m. Find the number of r-element subsets of A which
contain B as a subset, where m ≤ r ≤ n.

(2) Show that for m, r, n ∈ N with m ≤ r ≤ n,


  X m   
n−m i m n−i
= (−1)
n−r i=0
i r

Exercise 25. Show that


  ⌊k/2⌋   
n X
m n n + k − 2m − 1
= (−1)
k m=0
m n−1
by a suitable combinatorial interpretation of the binomial coefficients and application of the inclusion-exclusion
principle.

Exercise 26. Let Hn be the number of ways of seating n married couples around a circular table so that no
man is next to his wife. Show that
n  
k n
X
Hn = (−1) 2k (2n − k − 1)!
k=0
k

Exercise 27. Let Wn be the number of ways of seating n married couples at a straight table so that no woman
is next to her husband. Show that
n  
X n k
k
Wn = (−1) 2 (2n − k)!.
k=0
k

Exercise 28. Let Tr,s (n, k) be the number of k-combinations of n with repetition and the restriction that each
element appears at least r and at most s times. Show that
n   
X
j n n + k − rn − j(s − r + 1) − 1
Tr,s (n, k) = (−1) .
j=0
j n − 1

Exercise 29. Consider 2n elements that belong to n different kinds, with two like elements of each kind, and
let Vn be the number of permutations of these elements in which no two like elements are consecutive. Show
that n  
k n
X
−n
Vn = 2 (−1) 2k (2n − k)!
k=0
k

Page 3

Common questions

Powered by AI

Derangements of n objects require permutations where no object remains in its initial position. Inclusion-exclusion adjusts for over-counting the permutations with at least one fixed point. The principle includes alternating sum-subtraction of permutation selections: D(n) = n! * Σ(-1)^k/k! for k from 0 to n, where k is numbers of fixed elements. This subtractive premise, reflecting in binomial coefficient adjustments, corrects counts for valid derangement .

Consider the square as a grid where each point is colored red, green, or blue. Applying the pigeonhole principle in rows, if every vertex in a row was different, each row would need at least two colored points of the same color since we cannot use more than three colors for more than three points. Extending this with multiple rows from the grid ensures at least one rectangle with same-colored corners, because consistent row color repeat guarantees column intersection .

For 2n elements from n pairs, permutations need gaps between like elements. Inclusion-exclusion principle addresses overlap: Σ(-1)^k( n choose k)(2n-k)!/2^n, with subtraction accounting for consecutive placements. Each recursive exclusion step tracks pairwise restrictions adding boundary increments, ensuring gaps: inclusion-adds, exclusion-corrects excess—reflecting adjusted positions. Terms subtract permutations with increasing numbers of constraints factoring, systematically deleting consecutive overlap .

The solution involves finding the number of non-negative integer solutions using generating functions or traditional counting methods. Transform variables to accommodate constraints: x₁' = x₁ -1, x₂' = x₂ + 2, x₃' = x₃, x₄' = x₄ - 3. Now x₁' + x₂' + x₃' + x₄' = 18 - 1 - 3 = 14, with ranges 0 ≤ x₁' ≤ 4, 0 ≤ x₂' ≤ 6, 0 ≤ x₃' ≤ 5, 0 ≤ x₄' ≤ 6. Using generating function approaches, setup would handle constraint through structured combinations and subtraction .

Divide the square into four smaller squares of side length 1, giving each a diagonal of length √2. By the pigeonhole principle, placing five points in the four smaller squares means at least one square contains at least two points. Since any two points in such a square can be at most a diagonal distance of √2 apart, at least two points must have a distance of at most √2 .

Place each rook in distinct rows; 10 needed for coverage. With 41 rooks, some rows must have multiple rooks doubling rows. If no column-space adjusts, pigeonhole implies disjoints necessarily, yet given spatial divide across groups—4 disjoint non-attacking formations always exist within cumulative excess addressing. Ensure collections avoid attack continuity across columns .

Label n integers as a_1, a_2,..., a_n. Let S_k denote the sum a_1 + a_2 + ... + a_k, indexed by k = 1, 2,..., n. There are n sums in total. By the pigeonhole principle, since there are n sums, at least two of these sums must be congruent modulo n. If one of these sums is congruent to 0 mod n, it directly provides a desired subset. Otherwise, for sums S_i and S_j where S_i ≡ S_j (mod n) and i < j, the set {a_(i+1),...,a_j} creates a subset with sum divisible by n .

Let each person be a vertex and each acquaintance a connecting edge to another vertex. In a fully connected graph of n vertices, each can have at most n-1 acquaintances. Thus, if each knows a different number of people, the possible numbers known are from 0 to n-1, needing n distinct numbers. But if one knows 0, another must know n-1, causing a contradiction as one cannot know everyone unless at least one acquaintance exists for all. Hence, at least one repeated degree number must exist among them .

The pigeonhole principle states that if you have more pigeons than pigeonholes, at least one pigeonhole must contain more than one pigeon. Here, consider 100 integers as 50 pairs of consecutive numbers: (1,2), (3,4), ..., (99,100). When you pick 51 integers, at least one pair will be chosen since you have only 50 pairs. Hence, two of the chosen integers must be consecutive .

Consider integers modulo 10; they have residues ranging from 0 to 9. If you pick 7 integers, by the pigeonhole principle, at least two will share a residue. If x ≡ y (mod 10), x - y is divisible by 10. Moreover, for x + y to be divisible by 10, x ≡ -y (mod 10) must hold, which occurs when two integers have residues adding up to 10. The structure of modular residues and combination leads to at least one pair satisfying the condition .

You might also like