0% found this document useful (0 votes)
6 views2 pages

Discrete Mathematics Homework 9

Uploaded by

aykkeork
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)
6 views2 pages

Discrete Mathematics Homework 9

Uploaded by

aykkeork
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

AUA CS 111 – Discrete Mathematics E Fall 2024

Homework 9
Due: To be physically handed in as a paper copy (A4 format and stapled) at the
beginning of the class on November 11.

Exercise 1: (10 points) Compute the number of length 10 strings of the numbers 0, 1, 2 that
do not contain seven consecutive 2-s.

Exercise 2: (10 points) Find the number of permutations of the letters A, B, B, B, C, D, E, F, F, G


that begin with BBB or contain the substring BE in the 3rd and 4th positions or
end with the substring BF F .

Exercise 3: (20 points) Find the number of ways one can choose 6 numbers (not necessarily
distinct) from the set of the first 10 positive integers such that:

a. all numbers are the same.


b. there are equal number of even and odd numbers.
c. there is at least one 1, at least two 3-s and no 7-s.
d. there are at most two 2-s and exactly two 8-s.

Exercise 4: (10 points) Solve the given system of congruences for all integers x, and find the
x ≡ 926 (mod 7)
smallest positive solution: .
9x + 2 ≡ 4 (mod 11)

Exercise 5: (10 points) Let X be a student at AUA enrolled in the course of Discrete Mathe-
matics – section A. Consider the following propositions:

p: X leaves the entire material to learn during the exam week.


q: X practices with exercises besides homeworks.
r: X gains lasting knowledge.

a. Express the proposition (p ∨ ¬q) → ¬r as an English sentence.


b. Write the proposition “If X practices with exercises besides homeworks and X
doesn’t leave the entire material to learn during the exam week, then X gains
lasting knowledge.” using p, q, r and the logical connectives ∨, ∧, → and ¬
only.

Exercise 6: (10 points) Construct the truth table of the compound proposition

(p ∨ ¬r) ∧ (¬q → r).

Explain why or why not it is a tautology or a contradiction.

Exercise 7: (30 points) Simplify the following expressions (name the laws/identities you use):
   
a. p → p ∧ (¬q ∧ p) ∨ (¬p → p) .
   
b. (p ∨ ¬q) ∧ (q ∨ ¬r) ∧ (p ∨ q) → ¬ q ∨ (q → r) .
AUA CS 111 – Discrete Mathematics E Fall 2024

Non-gradable
Exercise 8: Find the number of positive integers not exceeding 800 that are divisible by 20 or
by 15. (Warning: How can you describe the numbers that are divisible by both 20
and 15?)

Exercise 9: There are given 3 distinct/distinguishable boxes and 20 tickets. Find the number
of ways one can distribute the tickets into the boxes if:

a. the tickets are distinct/distinguishable.


b. the tickets are distinct/distinguishable, and the boxes contain 5, 7 and 8 tickets,
respectively.
c. the tickets are identical/indistinguishable.
d. the tickets are identical/indistinguishable, and each box contains at least 2
tickets.
e. the tickets are distinct/distinguishable, and each boxes contains at least one
ticket.

Exercise 10: An island has three kinds of inhabitants: knights who always tell the truth, knaves
who always lie, and spies who can either lie or tell the truth. You encounter three
people: A, B and C. You know one of these people is a knight, one is a knave, and
one is a spy, and each of them knows the types of the other two people. What are
A, B and C if A says “I am the knight”, B says “A is not the knave” and C says
“B is not the knave”. Explain your answer, and if there is no unique solution, list
all possible solutions or state that there are no solutions.

Exercise 11: Simplify the following expressions (name the laws/identities you use):

a. (p ∨ ¬q) ∧ (¬p ∨ q) ∧ (¬p ∨ ¬q).


b. (p → q) ∧ (¬p → r) ∧ (r → q).
c. (X ∨ A) ∧ (X ∨ B) ∧ (X ∨ C) ∧ · · · ∧ (X ∨ Z).

Common questions

Powered by AI

Use different combinatorial techniques based on constraints: permutations without restrictions for distinct tickets, permutations with specific distributions for constraints like box capacities, use the stars and bars method for indistinct tickets, and apply restrictions for requiring certain numbers of tickets per box. Each scenario will require a specific enumeration method to handle the constraints effectively .

Evaluate each statement based on the individual's character: A claims to be the knight—only possible if true, B and C provide character verification that supports or negates A's claim. Create scenarios based on A being either truth-teller or liar and contradict those assertions using statements from the others to find a consistent scenario or confirm multiple solutions .

Use the inclusion-exclusion principle for calculating permutations that satisfy: starting with BBB, containing BE in the 3rd and 4th positions, or ending with BFF. Calculate each arrangement separately and then adjust for overcounts where more than one condition is satisfied simultaneously .

To solve this problem, consider the total number of length-10 strings composed of 0, 1, and 2, and then subtract the number of strings that do contain seven consecutive 2's. Start by calculating all possible strings of length 10, which is 3^10. Then, use combinatorial arguments or generating functions to count the sequences where seven consecutive '2's appear, and subtract these from the total. This ensures none of the remaining sequences contain the unwanted pattern .

Use laws such as distribution, De Morgan's, and absorption to simplify. Apply them sequentially to breakdown complex conjunctions and disjunctions, ultimately seek principal disjunctive or conjunctive forms. The result simplifies complex forms to simpler logical expressions or values .

Use the principle of inclusion-exclusion: count integers divisible by 20, integers divisible by 15, then subtract those divisible by their least common multiple (LCM of 20 and 15 = 60). This ensures no integers are double-counted .

Construct the truth table by evaluating each component individually and combining them. Check each row whether it satisfies the proposition or not. Confirm if all entries are true (tautology) or false (contradiction). Here, the assessment leads to understanding conditions under which the proposition holds .

The proposition (p ∨¬q) →¬r translates to: "If the student either leaves the entire material to learn during exam week or does not practice with exercises besides homework, then the student will not gain lasting knowledge." This translation aligns logical connectives with implications about student study behaviors and outcomes .

Apply the method of successive substitutions with the given congruences: x ≡ 926 (mod 7) and 9x + 2 ≡ 4 (mod 11). First, reduce 926 modulo 7, then solve the second congruence for x using modular arithmetic adjustments to find the solution that satisfies both congruences. The smallest positive solution requires additional verification in both modulus settings .

Apply the stars and bars theorem for basic distribution without constraints, and integer partitioning for minimum constraints. Adjust solutions with additional partition constraints per box if necessary. This helps in meeting both the count and structural constraints effectively .

You might also like