1. An island is populated by knights who always tell the truth, knaves who always lie,
and normals who can either lie or tell the truth. You encounter three people, A, B, and
C. You know one of these
HOMEWORK SET 3. PREDICATES AND QUANTIFIERS (BOOK: CHAPTER 4)
1. Let P (x) be the statement x spends more than five hours every weekday in class,
where the domain for x consists of all students. Expres
HOMEWORK SET 5. FUNCTIONS AND CARDINALITY
1. Consider these functions from the set of students in a discrete mathematics class. Under what
conditions is the function injective if it assigns to a stude
HOMEWORK SET 1. PROPOSITIONAL CALCULUS
1. Let p and q be the propositions The election is decided and The votes have been
counted, respectively. Express each of the following compound propositions as
HOMEWORK SET 1. SOLUTIONS OF SELECTED PROBLEMS.
1. Let p and q be the propositions The election is decided and The votes have been
counted, respectively. Express each of the following compound proposi
HOMEWORK SET 5. INTRODUCTION TO NUMBER THEORY
1.
a)
b)
c)
d)
Let a, b, c, d be integers. Prove the following statements.
If a | b and b | c then a | c
If a | b and b | a then a = b or a = b.
If a | c
HOMEWORK SET 4. MATHEMATICAL INDUCTION. SETS AND SET OPERATIONS
1
, n 1 (so, f1 = 2, f2 = 32 , f3 = 35 etc.)
Define a sequence fn , n 0 by f0 = 1 and fn = 1 + fn1
Fn+2
Prove that f (n) =
for all n N w
HOMEWORK SET 2. EQUIVALENCES AND ARGUMENTS
1.
Use truth tables to verify that p (q r) (p q) r and p (q r) (p q) (p r).
2. Show that each of the following propositions is a tautology. You can use truth
HOMEWORK SET 3. PREDICATES AND QUANTIFIERS
1. Let P (x) be the statement x spends more than five hours every weekday in class,
where the domain for x consists of all students. Express each of these qu
HOMEWORK SET 5. INTRODUCTION TO NUMBER THEORY
1.
a)
b)
c)
d)
Let a, b, c, d be integers. Prove the following statements.
If a | b and b | c then a | c
If a | b and b | a then a = b or a = b.
If a | c
HOMEWORK SET 4. MATHEMATICAL INDUCTION. SETS AND SET OPERATIONS
Fn+2
for all
Fn+1
n N where Fn is the nth Fibonacci number (F0 = 0, F1 = 1 etc)
Remark. The sequence fn provides approximations for the
HOMEWORK SET 6. CARTESIAN PRODUCTS AND MAPS
1. A database is storing information about flights. For each flight it stores the airline code, the
flight number, the origin, the destination, the departur
HOMEWORK SET 6. CARTESIAN PRODUCTS AND MAPS
1. A database is storing information about flights. For each flight it stores the airline code, the
flight number, the origin, the destination, the departur
Introduction to set theory
What is a set?
Definition (Intuitive)
A set is an unordered collection of objects (called its elements or
members).
A set is said to contain its elements.
If S is a set then
MATH11/CS11. FINAL. VERSION 2.
1. The police have three suspects for the murder of Mr. Cooper: Mr. Smith, Mr. Jones,
and Mr. Williams. All suspects declare that they did not kill Cooper. Smith also st
MATH11/CS11. MIDTERM II
1. A particular brand of shirt has a male version and a female version. The male version
comes in four sizes and 5 colors. The female version comes in six sizes and 8 colors. H
MATH11/CS11. FINAL
L.1 An island is populated by knights who always tell the truth, knaves who always
lie, and normals who can either lie or tell the truth. You encounter three people, A, B, and
C. Yo
HOMEWORK SET 1. SOLUTIONS OF SELECTED PROBLEMS.
8. Are these system specifications consistent? If the file system is not locked, then new
messages will be queued. If the file system is not locked, the
HOMEWORK SET 4. SETS AND SET OPERATIONS (BOOK: CHAPTER 1)
1.
For each of the following sets, determine whether 2 is its element. Do the same for cfw_2.
a) cfw_x Z : x > 1
b) cfw_x Z | x = y 2 for some
HOMEWORK SET 2. EQUIVALENCES AND ARGUMENTS (BOOK: CHAPTER 4)
1. Show that each of the following propositions is a tautology. You can use truth tables
or properties of logical operators.
a) (p q) p
b)
HOMEWORK SET 5. FUNCTIONS AND CARDINALITY
1. Consider these functions from the set of students in a discrete mathematics class. Under what
conditions is the function injective if it assigns to a stude
HOMEWORK SET 7. CARDINALITY AND COUNTING
1. Assuming that no person has more than 1,000,000 hairs on their head and that the population
of Los Angeles is 4,030,904, show that there are at least five p
HOMEWORK SET 8. COUNTING PERMUTATIONS AND SUBSETS
1. How many ways are there for eight men and five women to stand in a line so that no two
women stand next to each other?
2.
a)
b)
c)
d)
How many bit
HOMEWORK SET 6. CARDINALITY AND COUNTING
1. A particular brand of shirt comes in 8 colors, has a male version and a female version, and
comes in four sizes for each sex. How many different types of th
HOMEWORK SET 8. COUNTING PERMUTATIONS AND SUBSETS
1. How many ways are there for eight men and five women to stand in a line so that no two
women stand next to each other?
Solution. There are 8! way t
HOMEWORK SET 7. CARDINALITY AND COUNTING
1. Assuming that no person has more than 1,000,000 hairs on their head and that the population
of Los Angeles is 4,030,904, show that there are at least five p
MATH11/CS11. QUIZ 2
1. Give an example of a function f : N N which is bijective but not equal to the
identity function. Explain why your example works.
Solution. We can take f : N N defined by f (0) =
HOMEWORK SET 6. CARDINALITY AND COUNTING
1. A particular brand of shirt comes in 8 colors, has a male version and a female version, and
comes in four sizes for each sex. How many different types of th
MATH11/CS11. QUIZ 2
1. Give an example of a function f : N N which is injective but not surjective. Explain
why your example works.
Solution. Define f : N N by f (n) = n + 1. It is injective since if
HOMEWORK SET 8. COUNTING PERMUTATIONS AND SUBSETS
1. How many ways are there for eight men and five women to stand in a line so that no two
women stand next to each other?
Solution. There are 8! way t