Download test3InClass

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
MATH 201
Solutions: TEST 3-A
(in class)
(revised)
God created infinity, and man, unable to understand infinity, had to invent finite sets.
- Gian Carlo Rota
Part I [5 pts each]
1.
Let X be a set. Define P(X), the power set of X.
P(X) is the set of all subsets of X.
2. Let F: X โ†’Y be a mapping. Define: F is injective.
F: X โ†’Y is injective if:
โˆ€๐‘Ž, ๐‘ โˆˆ ๐‘‹ ๐น(๐‘Ž) = ๐น(๐‘) โ‡’ ๐‘Ž = ๐‘
3. Let G: X โ†’Y be a mapping. Define: G is surjective.
G: X โ†’Y is surjective if:
4.
โˆ€๐‘ โˆˆ ๐‘Œ โˆƒ๐‘Ž โˆˆ ๐‘‹ ๐บ(๐‘Ž) = ๐‘
๏ƒฆn๏ƒถ
Give the combinatorial definition of ๏ƒง๏ƒง ๏ƒท๏ƒท --- not the means of calculating this number or any other interpretation
r
๏ƒจ ๏ƒธ
using factorials.
๏ƒฆn๏ƒถ
๏ƒง๏ƒง ๏ƒท๏ƒท is the number of ways that an (unordered) subset can be chosen from a set of n items.
๏ƒจr ๏ƒธ
5. Let S be a set. Define: S is countably infinite.
S is countably infinite if there exists a bijection from the set of natural numbers to S.
6. Let R and S be sets. What does it mean to assert that R and S are of the same cardinality?
Two sets, R and S, are of the same cardinality if there exists a bijection from R to S
2
7.
If |A| = 9876, then |P(A)| =
If |A| = 9876, then |P(A)| = 29876
8. Let X and Y be sets and let G: Xโ†’Y be a bijection. Define G-1: Y โ†’ X
Let ๐‘ฆ โˆˆ ๐‘Œ. ๐‘†๐‘–๐‘›๐‘๐‘’ ๐บ: ๐‘‹ โ†’ ๐‘Œ is a bijection, there exists one and only one element x โˆˆ ๐‘‹ for which G(x) = y.
We define G(y) = x.
Part II [10 pts each] Answer any 11 of the following 14. You may solve more for extra credit.
1.
Here is a partial proof of Cantorโ€™s theorem. Your job is to complete it.
Theorem: For any set X, P(X) and X are not of the same cardinality.
Proof: Let X be a set and P(X) be the power set of X.
Strategy: proof by contradiction.
Assume that ๏€ค bijection F: X โ†’P(X).
Define ๐ทโˆ— = {๐‘ž โˆˆ ๐‘‹ |๐‘ž โˆ‰ ๐น(๐‘ž)}
๐‘ต๐’๐’˜, ๐’”๐’Š๐’๐’„๐’† ๐‘ญ ๐’Š๐’” ๐’”๐’–๐’“๐’‹๐’†๐’„๐’•๐’Š๐’—๐’†, โˆƒ ๐’™โˆ— โˆˆ ๐‘ฟ for which F(๐’™โˆ— ) = ๐‘ซโˆ— .
Next, suppose that ๐’™โˆ— โˆˆ ๐‘ซโˆ— . Then, by definition of ๐‘ซโˆ— , ๐’™โˆ— โˆ‰ ๐‘ญ(๐’™โˆ— ) = ๐‘ซโˆ— .
This is impossible.
Thus ๐’™โˆ— โˆ‰ ๐‘ซโˆ— . But, ๐‘ซโˆ— = ๐‘ญ(๐’™โˆ— ); ๐’”๐’ ๐’™โˆ— โˆ‰ ๐‘ญ(๐’™โˆ— ).
๐‘ป๐’‰๐’Š๐’” ๐’Ž๐’†๐’‚๐’๐’” ๐’•๐’‰๐’‚๐’• ๐’™โˆ— โˆˆ ๐‘ซโˆ— . ๐‘ฉ๐’–๐’• ๐’•๐’‰๐’Š๐’” ๐’•๐’๐’ ๐’Š๐’” ๐’Š๐’Ž๐’‘๐’๐’”๐’”๐’Š๐’ƒ๐’๐’†.
Hence our assumption that F is a bijection is false.
2. Using the Euclidean algorithm, find gcd(210, 45)
210 = 45*4 + 30
45 = 30*1 + 15
30 = 15*2 + 0
3
gcd = 15
3. Using the extended Euclidian algorithm, find integers x and y such that
56x + 22y = gcd(56, 22).
56 = 22*2 + 12
22 = 12*1 + 10
12 = 10*1 + 2
10 = 5*2 โ€“ 0
Hence gcd(56, 22) = 2
So 2 = 1256 โ€“ 10
= 12 โ€“ (22 โ€“ 12*1)
= 2*12 โ€“ 22
= 2(56 โ€“ 2*22) โ€“ 22
= 2*56 โ€“ 4*22 โ€“ 22
= 2*56 โ€“ 5*22
Hence 56(2) โ€“ 22(-5) = 2
4. Odette believes that the set of all finite sequences using the alphabet {a, b, c} is countably infinite. Give proof or
counterexample. (For example: aab, cabcab, ccccccccccccccc are all finite sequences.)
Solution:
Odette is correct: Begin by listing all strings of length 1:
Then all 9 strings of length 2:
a, b, c
aa, ab, ac, ba, bb, bc, ca, cb, cc
Then all 27 strings of length 3, etc.
5. Swann believes that the set of all infinite sequences using the alphabet {a, b, c} is countably infinite. Give proof
or counterexample. (For example:
Solution:
ababababโ€ฆ , abcabccccbbaabbbbbโ€ฆ are infinite strings.)
Swann is mistaken. Just use Cantorโ€™s diagonal argument on the set of infinite strings:
First string:
E11, E12, E13, E14, โ€ฆ
Second string: E21, E22, E23, E24,
Third string:
E31, E32, E33, E34,
Etc.โ€ฆโ€ฆ
Define the string e* as follows:
4
๐‘Ž ๐‘–๐‘“ ๐ธ๐‘– ๐‘– = ๐‘ ๐‘œ๐‘Ÿ ๐‘
e*i = {
๐‘ ๐‘–๐‘“ ๐ธ๐‘– ๐‘– = ๐‘Ž
Now notice that e*i cannot appear in our infinite list of strings
6. Explain briefly, using only a combinatorial interpretation, why
๏ƒฆ1776 ๏ƒถ ๏ƒฆ1776 ๏ƒถ
๏ƒง๏ƒง
๏ƒท๏ƒท ๏€ฝ ๏ƒง๏ƒง
๏ƒท๏ƒท
๏ƒจ 99 ๏ƒธ ๏ƒจ1677 ๏ƒธ
(Use complete sentences. Do not use any formulas. Do not use more general results
about combinations.)
Solution:
Let S be a set of 1776 objects.
Then there is a bijection between the set of all subsets of S of
size 99 and the set of all subsets of S of size 1677. This is true since selecting a subset of size 99 corresponds to
selecting a subset of size 1776 โ€“ 99 = 1677. It is not difficult to see that this correspondence is a bijection.
7.
Explain briefly, using only a combinatorial interpretation, why
๏ƒฆ1789 ๏ƒถ ๏ƒฆ1788 ๏ƒถ ๏ƒฆ1788 ๏ƒถ
๏ƒง๏ƒง
๏ƒท๏ƒท ๏€ฝ ๏ƒง๏ƒง
๏ƒท๏ƒท ๏€ซ ๏ƒง๏ƒง
๏ƒท๏ƒท
25
25
24
๏ƒจ
๏ƒธ ๏ƒจ
๏ƒธ ๏ƒจ
๏ƒธ
(Use complete sentences. Do not use any formulas. Do not use more general
results about combinations.)
Solution:
Let S be a set of 1789 items. Call one of them a*. Then S = (S ~ {a*}) ๏ƒˆ {a*}. Note that
(S ~ {a*}) has 1788 items. Two cases (mutually exclusive):
Case I: Choose 25 items from S ~ {a*}. Next, if we include {a*}). then we must choose the
remaining 24 items from S.
Case II: Choose all 25 items from (S ~ {a*})
Hence
๏ƒฆ1789 ๏ƒถ ๏ƒฆ1788 ๏ƒถ ๏ƒฆ1788 ๏ƒถ
๏ƒง๏ƒง
๏ƒท๏ƒท ๏€ฝ ๏ƒง๏ƒง
๏ƒท๏ƒท ๏€ซ ๏ƒง๏ƒง
๏ƒท๏ƒท
๏ƒจ 25 ๏ƒธ ๏ƒจ 25 ๏ƒธ ๏ƒจ 24 ๏ƒธ
8. Given a group of 13 married couples. The number of ways we can choose a subset of 5 individuals from this
group which contains no married couple is
Solution:
๏ƒฆ13 ๏ƒถ
choose 5 couples: ๏ƒง๏ƒง ๏ƒท๏ƒท
๏ƒจ5 ๏ƒธ
๏ƒฆ13 ๏ƒถ
๏ƒท๏ƒท
๏ƒจ5 ๏ƒธ
From each of the 5 chosen couples, choose 1 of the 2 partners. Hence the number of ways = 25 ๏ƒง๏ƒง
5
9. Let A, B be non-empty finite sets. Suppose that |A|=1789 and |B| = 2016. Then
(a) The number of surjections from A into B is __zero_____. Why?
The range of any mapping from A into B cannot contain more than 1789 elements.
(b) The number of injections from A into B is P(2016, 1789). Why?
Each element of A can โ€œchooseโ€ one of the remaining elements of B. In particular, the first element of A can select from
1789 elements; the second element of A can choose from 1788 elements; etc.
10. Let Q be the set of all rational numbers. Define f: Q ๏‚ฎ Q as follows:
๏ƒฌ3
๏ƒฏ x if x ๏‚น 0
๏ƒฏ
f ( x) ๏€ฝ ๏ƒญ
๏ƒฏ0 if x ๏€ฝ 0
๏ƒฏ
๏ƒฎ
(a) Is f well-defined? Justify your answer.
Solution: Yes.
For any non-zero rational number, x = p/q, we have f(x) = 3/x = 3q/p which is also rational.
And, if x = 0, f(0) = 0 is also rational.
(b)
Is f injective? Why?
Solution:
Yes. Let x and y be non-zero rational numbers. Now assume that f(x) = f(y). Then 3/x = 3/y, which implies
that x = y.
(c) Is f surjective? Why?
Solution: Yes: Let y be any non-zero rational number. Then 1/(3y) is also rational and f(1/(3y)) = y.
11. For any real numbers, c and d, let us define the binary operation ๏Š as follows:
c ๏Š d = c 2 + d2 โ€“ 1
Give either a brief justification or counterexample for each of the following assertions:
(a) The set of integers is closed under the operation ๏Š .
Solution: Yes. Integers are closed under taking squares as well as under addition and subtraction.
6
(b) The set of even integers is closed under the operation ๏Š.
Solution:
No. For a counter-example, let c = 2 amd d = 4. Then c ๏Š d = c2 + d2 โ€“ 1 = 4 + 16 โ€“ 1 = 19, an odd
number.
(c) The set of odd integers is closed under ๏Š.
Solution: Yes
If c and d are odd, then c2 and d2 are also odd (proven earlier in class). Since the sum of two odd numbers
is even, we have c2 + d2 is even.
Now c2 + d2 โ€“ 1 is odd.
(d) The set of positive integers is closed under ๏Š.
Solution: Yes.
If c and d are positive integers, then c2 + d2 must be at least 2. Thus c ๏Š d = c2 + d2 โ€“ 1 is at
least 1.
(e) The set of rational numbers is closed under ๏Š.
Solution: Yes. If c and d are rational, then each of c2 and d2 must be rational. Since the sum and difference
of two rationals is rational, it follows that c ๏Š d = c2 + d2 โ€“ 1 is also rational.
(f) The set of irrational numbers is closed under ๏Š.
Solution:
No. Let c = d = โˆš2. Then c and d are irrational (as proven in class). But c ๏Š d = c2 + d2 โ€“ 1 = 5,
which clearly is rational.
12. Let X = {0, 2, 5, 8, 13, 15} and Y = P(X). Define T: X โ†’P(X) as follows:
๏ƒฌ{ j} if j is prime
๏€ขj ๏ƒŽ X T ( j ) ๏€ฝ ๏ƒญ
๏ƒฎ{0, 8, 13} if j is not prime
Find D* (as defined in Part II, problem 1)
Answer: D* = {15}
13. Give an example of three sets, X, Y, S, and two mappings, F: X โ†’Y, G: Y โ†’S such that ๐บ is not injective yet ๐บ โˆ˜ ๐น
is injective.
Solution:
Let X = {a}, Y = {b, c} and S = {d}.
7
F: X โ†’ Y by: F(a) = c and
Define
G: Y โ†’ S by G(b) = G(c) = d.
Then G is clearly not injective, yet ๐บ โˆ˜ ๐น is injective since the domain of ๐บ โˆ˜ ๐น consists of a single point.
14.
Let S be the set of all polynomials for which odd powers of x (i.e., 1, 3, 5, 7,โ€ฆ) do not appear.
5
For example, 4 + ½ x2 โ€“ ๏ฐ x8 โˆˆ ๐‘†, ๐‘๐‘ข๐‘ก ๐‘ฅ 2 โˆ’ 4 ๐‘ฅ 81 โˆ‰ ๐‘†.
(a) Is S closed under differentiation? Why?
Solution: No. Counter-example.
Let p(x) = x4 ; this is a member of S but dp/dx = 3x3 is not a member of S.
(b) Is S closed under the operation of taking the second derivative?
Solution: Yes.
even integer โ‰ฅ 2
Let p be a finite sum of terms of the form k xn. where k is any real number and n is any
Now d2/dx2 p = kn(n-1) xn-2. But since n is even, n โ€“ 2 must be even as well.
(c) Is S closed under multiplication by x3?
Solution:
No. Counter-example:
Let p(x) = x4. Then x4 p(x) = x7 โˆ‰ ๐‘†.
(d) Is S closed under multiplication by x4 ?
Solution: Yes, x4p(x) consists of a finite sum of terms of the form xn+4. Since n is even, so is n+4.
(e) Is S closed under the following operation *?
For all ๐‘ โˆˆ ๐‘† ๐‘ โˆ— = p(1 + ๐‘ฅ 4 )
Solution: Yes. Let n be a non-negative even integer. Then one must verify that (1 + x4)n consists only of even
powers of x. This follows directly from the binomial theorem.
(f) Is S closed under the following operation ๏Œ:
For all ๐‘ โˆˆ ๐‘† ๐‘๏Œ = p(1 + ๐‘ฅ)
Solution:
No. Counter-example.
Let p(x) = x2. Then p(1 + x) = (1 + x)2 = 1 + 2x + x2 โˆ‰ S.
8
Extra Credit: When 200! Is expanded, how many consecutive trailing zeroes appear at the end of the number?
Solution:
200! may be written (uniquely) as the product abc where a is a power of 2, b is a power of 5 and c
is neither divisible by 5 nor by 2. Now the number of occurrences of 10 is equal to the number of 5s in 2001!
since the 2s are more abundant than the 5s.
Now we must count:
There are 40 numbers in the product divisible by 5
8 numbers divisible by 25
1 number divisible by 125
Hence the number of 5s (and thus the number of terminating 0s) in 200! Is 40 + 8 + 1 = 49.
Related documents