Appendix B Selected Solutions
0 Introduction and Preliminaries
0 Introduction and Preliminaries
0.2 Mathematical Statements
Exercises
0.2.5.
Solution.
The main thing to realize is that we do not know the colors of these two shapes, but we do know that we are in one of three cases: We could have a yellow square and purple circle. We could have a square that was not yellow but a purple circle. Or we could have a square that was not yellow and a circle that was not purple. The case in which the square is yellow but the circle is not purple cannot occur, as that would make the statement false.
0.2.6.
0.2.7.
0.2.10.
Solution.
-
If you have lost weight, then you exercised.
-
If you exercise, then you will lose weight.
-
If you are American, then you are patriotic.
-
If you are patriotic, then you are American.
-
If a number is rational, then it is real.
-
If a number is not even, then it is prime. (Or the contrapositive: if a number is not prime, then it is even.)
-
If the Broncos don’t win the Super Bowl, then they didn’t play in the Super Bowl. Alternatively, if the Broncos play in the Super Bowl, then they will win the Super Bowl.
0.2.12.
Solution.
0.2.13.
Solution.
0.2.14.
Solution.
-
The claim that
means that is true no matter what you consider in the domain of discourse. Thus the only way to prove that is true is to check or otherwise argue that is true for all in the domain. -
To prove
is false all you need is one example of an element in the domain for which is false. This is often called a counterexample. -
We are simply claiming that there is some element
in the domain of discourse for which is true. If you can find one such element, you have verified the claim. -
Here we are claiming that no element we find will make
true. The only way to be sure of this is to verify that every element of the domain makes false. Note that the level of proof needed for this statement is the same as to prove that is true.
0.2.16.
0.2.17.
Solution.
-
Any even number plus 2 is an even number.
-
For every
there is an such that In other words, every number is in the range of sine (which is false). -
For any numbers, if the cubes of two numbers are equal, then the numbers are equal.
0.3 Sets
Exercises
0.3.1.
Solution.
-
It contains everything that is in except anything that is also in We could also have written this set as
0.3.2.
Solution.
-
This is the set
since we need each element to be a natural number whose square is at least 4 more than 5. Since but we see that the first such natural number is 3. -
We get the same set as we did in the previous part, and the smallest non-negative number for which
is a natural number is 3.Note that if we didn’t specify by saying that then any integer less than would also be in the set, so there would not be a least element. -
This is the set
namely the set of numbers that are the result of squaring and adding 1 to a natural number. ( and so on.) Thus the least element of the set is 1. -
Now we are looking for natural numbers that are equal to taking some natural number, squaring it, and adding 1. That is,
the same set as the previous part. So again, the least element is 1.
0.3.3.
0.3.4.
0.3.6.
0.3.7.
0.3.8.
0.3.9.
0.3.11.
0.3.12.
0.3.13.
0.3.15.
0.3.17.
0.3.18.
Solution.
Each of the 11 elements can be in a singleton set, so there are 11 of these.
To count the number of doubletons, not that there are 10 sets that include 1, and then 9 sets that include 2 and not 1, and then 8 that include 3 and not 1 or 2, and so on. So you can find 55 by summing the numbers from 1 to 10.
0.3.20.
0.3.28.
Solution.
We need to be a little careful here. If contains 3 elements, then contains just the number 3 (listed twice). So that would make which would make which only has 2 elements. Thus This means that so contains at least the elements 1 and 2. Since we must have which agrees with the definition of
0.4 Functions
Exercises
0.4.1.
Solution.
-
since 5 is the number below 2 in the two-line notation. -
Such an element is 4 (in fact, that is the only element in the codomain that is not in the range). In other words, 4 is not the image of any element under
nothing is sent to 4.
0.4.5.
0.4.6.
0.4.7.
0.4.9.
0.4.10.
0.4.12.
Solution.
-
is injective, but not surjective (since 0, for example, is never an output). -
is injective and surjective. Unlike in the previous question, every integers is an output (of the integer 4 less than it). -
is injective, but not surjective (10 is not 8 less than a multiple of 5, for example). -
is not injective, but is surjective. Every integer is an output (of twice itself, for example) but some integers are outputs of more than one input:
0.4.13.
Solution.
-
is not injective. To prove this, we must simply find two different elements of the domain which map to the same element of the codomain. Since and we see that is not injective. -
is not surjective. The largest subset of is itself, and So no natural number greater than 10 will ever be an output. -
Note, it would be wrong to write - that would claim that there is no input which has 0 as an output.
0.4.16.
Solution.
-
In other words, either is the empty set or is a set containing exactly one element. Injective functions cannot have two elements from the domain both map to 3. -
In other words, is a set containing at least one elements, possibly more. Surjective functions must have something map to 3. -
There is exactly one element from which gets mapped to 3, so is the set containing that one element.
0.4.17.
0.4.21.
Solution.
-
is injective.Proof.
Let and be elements of the domain Assume If and are both even, then and Since we have which implies that Similarly, if and are both odd, then so again The only other possibility is that is even an is odd (or visa-versa). But then would be odd and would be even, so it cannot be that Therefore if we then have which proves that is injective. -
is surjective.Proof.
Let be an element of the codomain We will show there is an element of the domain ( ) such that There are two cases: First, if is even, then let Since is even, is odd, so as desired. Second, if is odd, then let Since is odd, is even, so as needed. Therefore is surjective.
0.4.22.
Solution.
Yes, this is a function, if you choose the domain and codomain correctly. The domain will be the set of students, and the codomain will be the set of possible grades. The function is almost certainly not injective, because it is likely that two students will get the same grade. The function might be surjective – it will be if there is at least one student who gets each grade.
0.4.24.
0.4.25.
0.4.26.
Solution.
In general, since you cannot get more outputs than you have inputs (each input goes to exactly one output), but you could have fewer outputs if the function is not injective. If the function is injective, then although you can have equality even if is not injective (it must be injective restricted to ).
0.4.27.
Solution.
In general, there is no relationship between and This is because might contain elements that are not in the range of so we might even have On the other hand, there might be lots of elements from the domain that all get sent to a few elements in making larger than
More specifically, if is injective, then (since every element in must come from at most one element from the domain). If is surjective, then (since every element in must come from at least one element of the domain). Thus if is bijective then
1 Counting
1 Counting
1.1 Additive and Multiplicative Principles
Exercises
1.1.1.
1.1.2.
1.1.3.
1.1.4.
Solution.
-
There are 1048576 6-digit hexadecimals in which the first digit is an E (one for each choice of the remaining digits). Similarly, there are 1048576 hexadecimals in which the first digit is an F. We want the union of these two disjoint sets, so there are
6-digit hexadecimals in which the first digit is either an E or an F. -
We can select the first digit in 6 ways, digits 2-4 in 16 ways each, and the final digit in 10 ways. Thus there are
hexadecimals given these restrictions. -
The number of 3-digit hexadecimals that start with a letter is
The number of 3-hexadecimals that end with a numeral is We want all the elements from both these sets. However, both sets include those 3-digit hexadecimals which both start with a letter and end with a numeral( ), so we must subtract these (once). Thus the number of 3-digit hexadecimals starting with a letter or ending with a numeral is:
1.1.5.
1.1.6.
1.1.7.
1.1.8.
1.1.9.
1.1.10.
Solution.
To find out how many numbers strictly less than 1250 are multiples of 6, we can divide 1250 by 6 and round down. There are 208 of these. Similarly, there are 178 multiples of 7 and 249 multiples of 5 less than 1250.
We also need the combinations of these. To be a multiple of 6 and 7 means you are a multiple of 42 , and there are 29 multiples of 6 and 7. There will be 41 multiples of 6 and 5. There will be 35 multiples of 7 and 5. Finally, there will be 5 multiples of all three.
Using PIE, we get
multiples of 6, 7, or 5 less than 1250.
1.1.12.
Solution.
-
words, since you select from 11 letters 6 times. -
words. After selecting a letter, you have fewer letters to select for the next one. -
words: You need to select the letters that follow the “ade.” -
words. There are words which start with “ade” and another words that end with “be.” Then we need to subtract the words that have both, which we have overcounted. -
words. All possible words without repeats minus the bad ones. The taboo word “bed” can be in any of 4 positions, and for each position we must choose the remaining 3 letters from the remaining 8 letters in our alphabet.
1.2 Binomial Coefficients
Exercises
1.2.1.
Solution.
-
subsets. We need to select yes/no for each of the 15 elements. -
subsets. We need to select yes/no for each of the remaining 12 elements. -
subsets. We subtract the number of subsets which do not contain any odd numbers ( -select yes or no for each even element) from the total number of possible subsets. -
subsets. First pick the even number. Then say yes or no to each of the odd numbers.
1.2.2.
1.2.3.
Solution.
-
There are
subsets. This is which makes sense because we are deciding yes or no on whether to include each element of in the subset. -
For each of the 4 elements from
we must decide yes or no on whether to include them in the subset. However, for the odd numbers, we only have one choice: no. So there are only 2 elements we have two choices for, so the answer is (Note, if you wish to exclude the empty set - it does not contain odd numbers, but no evens either - then you could subtract 1). -
Count the number of subsets with each possible even cardinality:
1.2.4.
Solution.
-
You have 2 choices for each of the remaining 11 bits. -
You need to choose 3 of the remaining 11 bits to be 1’s. -
5632. There are
strings that start with 011, and another which end with 01 (we choose 1 or 0 for 12 bits). However, we count the strings that start with 011 and end with 01 twice; there are such strings. So using PIE, we have -
624. There are
strings of weight 5 which start with 011, and another which end with 01. We have over counted again: There are weight 5 strings which both start with 011 and end with 01, in fact of them. So all together we have strings.
1.2.5.
Solution.
-
We can think of each row as a 8-bit string of weight 4 (since of the 8 coins, we require 4 to be pennies). Thus there are
rows possible. Each row requires 8 coins, so if we want to make all the rows at the same time, we will need 560 coins, half of them nickels and half of them pennies. -
Now there are
rows possible, which is also if you break them up into rows containing 0, 1, 2, etc. pennies. Thus, since there are 8 coins in each row, we need total coins.
1.2.6.
1.2.7.
1.2.8.
1.2.9.
Solution.
To get an from the first term, we must pick 6 of the 18 factors to contribute an leaving the other 12 to contribute a 2. There are ways to select these 6 factors, so the coefficient will be Now we must choose 2 of the factors in the second term to contribute an leaving the other 19 terms to contribute a 3. This gives us for the coefficient resulting from this term. In total, the term containing an will be
1.2.10.
1.2.12.
Solution.
-
choices, since you have to select a 5-element subset of the set of 8 toppings. -
choices, since you must select 5 of the 7 non-green pepper toppings. -
choices, since you must select 4 of the remaining 7 non-green pepper toppings to have in addition to the green pepper.
Note that choices, which makes sense because every 5-topping pizza either has green pepper or does not have green pepper as a topping.
1.3 Combinations and Permutations
Exercises
1.3.1.
1.3.2.
1.3.3.
Solution.
-
This is just the multiplicative principle. There are 8 digits which we can select for each of the 5 positions, so we have
such numbers. -
Now we have 8 choices for the first number, 7 for the second, etc. So there are
such numbers. -
To build such a number we simply must select 5 different digits. After doing so, there will only be one way to arrange them into increasing order. Thus there are
such numbers.
1.3.4.
Solution.
-
We can write the answer as
, which is the same as . Or, if you think of picking the 16 books and then arranging those 16, you can write this as . Note, that since any order is acceptable, we are distinguishing between different orders, so a permutation is appropriate here. -
Here we just need to select the books, and have no choice as how to arrange them. So the answer is just
1.3.5.
1.3.6.
1.3.7.
1.3.8.
1.3.9.
Solution.
First, decide where to put the “i”s. There are 12 positions, and we must choose 3 of them to fill with an “i”. This can be done in ways. The remaining 9 spots all get a different letter, so there are ways to finish off the anagram. This gives a total of anagrams. Strangely enough, this is 7.98336E+07, which is also equal to To get the answer that way, start by picking one of the 12 positions to be filled by the first non-”i” letter, one of the remaining 7 positions to be filled by the next, and so on. Then put “i”s in the remaining 3 positions.
1.3.10.
Solution.
-
ways. Pick 4 out of 36 people to be in the first foursome, then 4 of the remaining 32 for the second foursome, and so on (use the multiplicative principle to combine). -
ways. First determine the tee time of the 9 board members, then select 3 of the 27 non-board members to golf with the first board member, then 3 of the remaining 24 to golf with the second, and so on.
1.3.11.
1.3.12.
1.3.13.
Solution.
-
functions, since there are 8 choices of where to send each of the 6 elements of the domain. -
functions, since outputs cannot be repeated. -
functions. Since the function must be injective and increasing, we just need to select the 6 distinct elements of the range from the 8 elements of the codomain. Once these have been selected, we must put the smallest as the image of 1, the next smallest as the image of 2, and so on (doing this does not increase the number of functions, since there is one choice for how this event can occur).
1.4 Combinatorial Proofs
Exercises
1.4.1.
Solution.
Proof.
Question: How many 2-letter words start with a, b, or c and end with either y or z?
Answer 1: There are two words that start with a, two that start with b, two that start with c, for a total of
Answer 2: There are three choices for the first letter and two choices for the second letter, for a total of
Since the two answers are both answers to the same question, they are equal. Thus
1.4.5.
Solution.
-
She has
ways to select the 6 bridesmaids, and then for each way, has 6 choices for the maid of honor. Thus she has choices. -
She has 15 choices for who will be her maid of honor. Then she needs to select 5 of the remaining 14 friends to be bridesmaids, which she can do in
ways. Thus she has choices. -
We have answered the question (how many wedding parties can the bride choose from) in two ways. The first way gives the left-hand side of the identity and the second way gives the right-hand side of the identity. Therefore the identity holds.
1.4.7.
Solution.
Proof.
Question: You have a large container filled with ping-pong balls, all with a different number on them. You must select of the balls, putting two of them in a jar and the others in a box. How many ways can you do this?
Answer 1: First select 2 of the balls to put in the jar. Then select of the remaining balls to put in the box. The first task can be completed in different ways, the second task in ways. Thus there are ways to select the balls.
Answer 2: First select balls from the in the container. Then pick 2 of the balls you picked to put in the jar, placing the remaining in the box. The first task can be completed in ways, the second task in ways. Thus there are ways to select the balls.
Since both answers count the same thing, they must be equal and the identity is established.
1.5 Stars and Bars
Exercises
1.5.1.
1.5.2.
Solution.
-
There are
numbers. We simply choose 4 of the 7 digits and, once the choice is made, put them in increasing order. -
This uses sticks and stones. Use a stone to represent each of the 4 digits in the number, and use their position relative to the sticks to say what numeral fills that spot. So we will have 4 stones and 6 sticks, giving
numbers.
1.5.3.
Solution.
-
You take 3 strawberry, 1 lime, 0 licorice, 2 blueberry and 0 bubblegum.
-
This is backwards. We don’t want the stars to represent the kids because the kids are not identical, but the stars are. Instead we should use 5 stars (for the lollipops) and use 5 bars to switch between the 6 kids. For example,would represent the outcome with the first kid getting 2 lollipops, the third kid getting 3, and the rest of the kids getting none.
-
This is the word AAAEOO.
-
This doesn’t represent a solution. Each star should represent one of the 6 units that add up to 6, and the bars should switch between the different variables. We have one too many bars. An example of a correct diagram would berepresenting that
and
1.5.4.
1.5.5.
Solution.
-
solutions. After each variable gets 1 stone for free, we are left with 11 stones and 2 sticks. -
solutions. We have 14 stones and 2 sticks. -
solutions. This problem is equivalent to finding the number of solutions to where and are non-negative. (In fact, we really just do a substitution. Let and ).
1.5.6.
1.5.7.
Solution.
We must figure out how many different combinations of 5 coins are possible. Let a stone represent each coin, and a stick represent switching between type of coin. For example, if we have 7 coins, represents 2 pennies, one nickel, no dimes and 4 quarters. The number of such stone and stick diagrams for 8 total stones and sticks (with 5 stones and 3 sticks) is Thus you have a 1 in 0.0178571 chance of guessing correctly.
1.5.8.
1.5.10.
Solution.
-
Note that a strictly increasing function is automatically injective. So the 4 outputs must all be different. So let’s first pick which 4 outputs we will use: there are ways to do this. Now how many ways are there to assign those outputs to the inputs through 4? Only one way, since there is only one way to arrange numbers in increasing order. -
This is in fact a sticks and stones problem. The stones are the 4 inputs, and the sticks are the 7 spots between the 8 possible outputs. Think of it this way: We will specify then then and so on in that order. Start with the possible output 0. We can use it as the output of or we can switch to 1 as a potential output. Say we put Now we are at 1 (can’t go back to 0). Should If yes, then we are putting down another stone. If no, put down a bar and switch to 2. Maybe you switch to 3, then assign and (two more stones) before switching to 4 as a possible output. And so on.
1.5.11.
1.6 Advanced Counting Using PIE
Exercises
1.6.1.
1.6.2.
1.6.3.
1.6.4.
Solution.
The easiest way to solve this is to first distribute the minimum number of units to each variable (3), and then count the solutions to with By taking each solution to this new equation corresponds to exactly one solution to the original equation.
Now all the ways to distribute the 4 units to the four variables can be found using stars and bars, specifically 4 stars and 3 bars, so ways. But this includes the ways that one or more variables can be assigned more than 3 units. So subtract using PIE to get
The counts the number of ways to pick one variable to be over-assigned; the is the number of ways to assign the remaining units to the 4 variables, etc.
1.6.5.
Solution.
-
This makes sense because if each student can receive at most one star, you must pick which 15 of the 23 kids will get one. -
Without any restriction, there would be
ways to distribute the stars. Now we must use PIE to eliminate all distributions in which one or more students get more than one star:
1.6.7.
1.6.8.
1.6.9.
1.6.10.
1.6.11.
1.6.12.
Solution.
1.6.13.
1.7 Chapter Summary
Chapter Review
1.7.1.
Solution.
-
ways. After giving one present to each kid, you are left with 9 presents (stones) which need to be divided among the 5 kids (giving 4 sticks). -
ways. You have 14 stones and 4 sticks. -
You have 5 choices for whom to give each present. This is like making a function from the set of presents to the set of kids. -
ways. Now the function from the set of presents to the set of kids must be surjective.
1.7.2.
Solution.
-
Neither.
paths. -
bow ties. -
since order is important. -
Neither. Assuming you will wear each of the 4 ties on just 4 of the 7 days, without repeats:
-
-
-
Neither. Actually, “k” is the 11th letter of the alphabet, so the answer is 0. If “k” was among the first 10 letters, there would only be 1 way - write it down.
-
Neither. Note that this could not be
since the 10 things and 4 things are from different groups. assuming each kid eats one type of cerial. -
- don’t be fooled by the “arrange” in there - you are picking 4 out of 10 spots to put the 1’s. -
(assuming order is irrelevant). -
Neither.
(each kid chooses yes or no to 4 varieties). -
Neither. 0.
-
Neither.
-
Neither.
-
Neither.
-
(which is the same as ). -
Neither. If all the kids were identical, and you wanted no empty teams, it would be
Instead, this will be the same as the number of surjective functions from a set of size 11 to a set of size 5. -
-
-
Neither.
-
Neither. It’s
if you won’t repeat any choices. If repetition is allowed, then this becomes which has solutions in non-negative integers. -
Neither. Since repetition of cookie type is allowed, the answer is
Without repetition, you would have -
since that is equal to -
Neither. It will be a complicated (possibly PIE) counting problem.
1.7.3.
Solution.
-
choices. You have two choices for each tie: wear it or don’t. -
You have 511 choices for regular ties (the
choices less the “no regular tie” option) and 31 choices for bow ties ( total minus the “no bow tie” option). Thus you have total choices. -
choices. -
Select one of the 2 bow ties to go on top. There are then 4 choices for the next tie, 4-1 for the tie after that, and so on. Thus
choices.
1.7.4.
1.7.5.
Solution.
1.7.6.
1.7.7.
1.7.8.
1.7.9.
Solution.
With repeated letters allowed, we select which 3 of the 9 letters will be vowels, then pick one of the 5 vowels for each spot, and finally pick one of the other 21 letters for each of the remaining 6 spots. Thus, words.
Without repeats, we still pick the positions of the vowels, but now each time we place a vowel there, we have one fewer choice for the next one. Similarly, we cannot repeat the consonants. We get words.
1.7.10.
1.7.11.
1.7.12.
1.7.13.
1.7.14.
Solution.
There are 9 spots to start the word, and then there are ways to arrange the other letters in the remaining three spots. Thus the number of words avoiding the sub-word “bad” in consecutive letters is
If we now need to avoid words that put “b” before “a” before “d”, we must choose which spots those letters go (in that order) and then arrange the remaining 8 letters. Thus, words.
1.7.15.
Solution.
1.7.16.
1.7.17.
Solution.
-
functions. -
functions. -
functions. Note that we use factorials instead of powers because we are looking for injective functions. -
Note that being surjective here is the same as being injective, so we can start with all
injective functions and subtract those which have one or more “fixed point”. We get functions.
1.7.18.
1.7.19.
Solution.
-
combinations. You need to choose 7 of the 12 cookie types. Order doesn’t matter. -
ways. You are choosing and arranging 7 out of 12 cookies. Order matters now. -
choices. You must switch between cookie type 11 times as you make your 20 cookies. The cookies are the stones; the switches between cookie types are the sticks. -
choices. You have 12 choices for the “1” cookie, 12 choices for the “2” cookie, and so on. -
choices. We must use PIE to remove all the ways in which one or more cookie type is not selected.
1.7.20.
Solution.
-
You are giving your professor 4 types of cookies coming from 10 different types of cookies. This does not lend itself well to a function interpretation. We could say that the domain contains the 4 types you will give your professor and the codomain contains the 10 you can choose from, but then counting injections would be too much (it doesn’t matter if you pick type 3 first and type 2 second, or the other way around, just that you pick those two types).
-
We want to consider injective functions from the set
most, second most, second least, least to the set of 10 cookie types. We want injections because we cannot pick the same type of cookie to give most and least of (for example). -
This is not a good problem to interpret as a function. The problem is that the domain would have to be the 12 cookies you bake, but these elements are indistinguishable (there is not a first cookie, second cookie, etc.).
-
The domain should be the 12 shapes, the codomain the 10 types of cookies. Since we can use the same type for different shapes, we are interested in counting all functions here.
-
Here we insist that each type of cookie be given at least once, so now we are asking for the number of surjections of those functions counted in the previous part.
2 Sequences
2 Sequences
2.1 Describing Sequences
Exercises
2.1.3.
2.1.4.
2.1.5.
2.1.6.
2.1.7.
2.1.8.
2.1.12.
2.1.13.
2.2 Arithmetic and Geometric Sequences
Exercises
2.2.1.
2.2.2.
2.2.3.
2.2.4.
2.2.5.
2.2.6.
2.2.7.
2.2.8.
2.2.9.
2.2.11.
2.3 Polynomial Fitting
Exercises
2.3.1.
2.3.2.
2.3.3.
2.3.4.
2.3.6.
2.3.7.
2.3.8.
2.3.9.
2.3.10.
2.3.11.
2.3.13.
2.4 Solving Recurrence Relations
Exercises
2.4.1.
2.4.3.
2.4.4.
2.4.5.
2.4.6.
2.4.7.
2.4.10.
2.4.12.
2.5 Induction
Exercises
2.5.1.
Solution.
-
If we have a number of beans ending in a 5 and we double it, we will get a number of beans ending in a 0 (since
). Then if we subtract 5, we will once again get a number of beans ending in a 5. Thus if on any day we have a number ending in a 5, the next day will also have a number ending in a 5. -
If you don’t start with a number of beans ending in a 5 (on day 1), the above reasoning is still correct but not helpful. For example, if you start with a number ending in a 3, the next day you will have a number ending in a 1.
-
Part (b) is the base case and part (a) is the inductive case. If on day 1 we have a number ending in a 5 (by part (b)), then on day 2 we will also have a number ending in a 5 (by part (a)). Then by part (a) again, we will have a number ending in a 5 on day 3. By part (a) again, this means we will have a number ending in a 5 on day 4The proof by induction would say that on every day we will have a number ending in a 5, and this works because we can start with the base case, then use the inductive case over and over until we get up to our desired
2.5.2.
Solution.
Proof.
We must prove that for all Thus let be the statement We will prove that is true for all First we establish the base case, which claims that Since we see that is true. Now for the inductive case. Assume that is true for an arbitrary That is, We must show that is true (i.e., that ). To do this, we start with the left-hand side of and work to the right-hand side:
2.5.3.
Solution.
Proof.
Let be the statement “ is a multiple of 6.” We will show is true for all First we establish the base case, Since and is a multiple of 6, is true. Now for the inductive case. Assume holds for an arbitrary That is, is a multiple of 6, or in other words, for some integer Now consider
Therefore is a multiple of 6, or in other words, is true. Therefore by the principle of mathematical induction, is true for all
2.5.4.
Solution.
Proof.
Let be the statement We will prove that is true for all First the base case, We have which is true, so is established. Now the inductive case. Assume that is true for some fixed arbitrary That is, We will now prove that is also true (i.e., that ). We start with the left-hand side of and work to the right-hand side:
2.5.5.
Solution.
Proof.
Let be the statement We will show that is true for all First the base case is easy because and so Now consider the inductive case. Assume is true, that is, assume To establish we work from left to right:
Therefore which is to say holds. Therefore by the principle of mathematical induction, is true for all
2.5.6.
Solution.
Proof.
Let be the statement We will show is true for all First, we check the base case and see that yes, (as ) so is true. Now for the inductive case. Assume is true for an arbitrary That is, Now consider To prove this, we start with the left side and work to the right side.
2.5.12.
2.5.13.
Solution.
Proof.
Let be the statement that We will prove that is true for all First, note that the base case holds: Now assume for induction that is true. That is, We must show that is true. Now since add 1 to both sides. This gives Regrouping But this is simply Thus by the principle of mathematical induction is true for all
2.5.14.
2.5.16.
2.5.19.
Solution.
The proof will be by strong induction.
Proof.
Let be the statement “ is either a power of 2 or can be written as the sum of distinct powers of 2.” We will show that is true for all
Inductive case: Suppose is true for all Now if is a power of 2, we are done. If not, let be the largest power of 2 strictly less than Consider which is a smaller number, in fact smaller than both and Thus is either a power of 2 or can be written as the sum of distinct powers of 2, but none of them are going to be so the together with we have written as the sum of distinct powers of 2.
2.5.25.
Solution.
The idea here is that if we take the logarithm of we can increase by 1 if we multiply by another (inside the logarithm). This results in adding 1 more to the total.
Proof.
Let be the statement The base case, is true, because by the product rule for logarithms. Now assume, for induction, that is true. That is, Consider We have
with the last equality due to the inductive hypothesis. But this simplifies to establishing Therefore by the principle of mathematical induction, is true for all
2.6 Chapter Summary
Chapter Review
2.6.1.
2.6.2.
2.6.3.
2.6.5.
2.6.6.
2.6.7.
2.6.8.
2.6.10.
2.6.11.
2.6.12.
Solution.
-
On the first day, your 2 mini bunnies become 2 large bunnies. On day 2, your two large bunnies produce 4 mini bunnies. On day 3, you have 4 mini bunnies (produced by your 2 large bunnies) plus 6 large bunnies (your original 2 plus the 4 newly matured bunnies). On day 4, you will have
mini bunnies (2 for each of the 6 large bunnies) plus 10 large bunnies (your previous 6 plus the 4 newly matured). The sequence of total bunnies is starting with and -
This is because the number of bunnies is equal to the number of bunnies you had the previous day (both mini and large) plus 2 times the number you had the day before that (since all bunnies you had 2 days ago are now large and producing 2 new bunnies each).
2.6.17.
Solution.
Let be the statement, “every set containing elements has different subsets.” We will show is true for all Base case: Any set with 1 element has exactly 2 subsets: the empty set and the set itself. Thus the number of subsets is Thus is true. Inductive case: Suppose is true for some arbitrary Thus every set containing exactly elements has different subsets. Now consider a set containing elements: Any subset of must either contain or not. In other words, a subset of is just a subset of with or without Thus there are subsets of which contain and another subsets of which do not contain This gives a total of subsets of But our choice of was arbitrary, so this works for any subset containing elements, so is true. Therefore, by the principle of mathematical induction, is true for all
3 Symbolic Logic and Proofs
3 Symbolic Logic and Proofs
3.1 Propositional Logic
Exercises
3.1.1.
3.1.2.
3.1.3.
3.1.4.
3.1.6.
3.1.7.
3.1.8.
3.1.12.
3.1.13.
3.1.14.
3.1.16.
3.1.21.
Solution.
The complete truth table is:
T | T | T | T | F |
T | T | F | T | F |
T | F | T | F | T |
T | F | F | F | T |
F | T | T | T | F |
F | T | F | T | F |
F | F | T | T | F |
F | F | F | T | F |
There is no row in which both premises are true (indeed, these are contradictory premises; the second is the negation of the first). Thus for every row in which both premises are true (i.e., no row), the conclusion is also true. Therefore the deduction rule is valid. (This is an example of how everything follows from a contradiction.)
3.2 Proofs
Exercises
3.2.1.
Solution.
-
False, since it is equivalent to the original statement.
-
True. Let
and be integers. Assume both are even. Then and for some integers and But then which is even. -
True, since the statement is false.
3.2.2.
Solution.
-
Proof by contradiction. Start of proof: Assume, for the sake of contradiction, that there are integers
and such that is a prime greater than 5 and End of proof: … this is a contradiction, so there are no such integers. -
Direct proof. Start of proof: Let
be an integer. Assume is a multiple of 3. End of proof: Therefore can be written as the sum of consecutive integers. -
Proof by contrapositive. Start of proof: Let
and be integers. Assume that and are even. End of proof: Therefore is even.
3.2.3.
3.2.4.
Solution.
-
This is an example of the pigeonhole principle. We can prove it by contrapositive.
Proof.
Suppose that each number only came up 6 or fewer times. So there are at most six 1’s, six 2’s, and so on. That’s a total of 36 dice, so you must not have rolled all 40 dice. -
We can have 9 dice without any four matching or any four being all different: three 1’s, three 2’s, three 3’s. We will prove that whenever you roll 10 dice, you will always get four matching or all being different.
Proof.
Suppose you roll 10 dice, but that there are NOT four matching rolls. This means at most, there are three of any given value. If we only had three different values, that would be only 9 dice, so there must be 4 different values, giving 4 dice that are all different.
3.3 Chapter Summary
Chapter Review
3.3.1.
Solution.
T | T | T | T |
T | T | F | T |
T | F | T | T |
T | F | F | T |
F | T | T | T |
F | T | F | F |
F | F | T | F |
F | F | F | F |
3.3.2.
3.3.3.
3.3.4.
Solution.
Make a truth table that includes all three statements in the argument:
T | T | T | T | T | T |
T | T | F | T | F | F |
T | F | T | F | T | F |
T | F | F | F | F | F |
F | T | T | T | T | T |
F | T | F | T | T | T |
F | F | T | T | T | T |
F | F | F | T | T | T |
Notice that in every row for which both and is true, so is Therefore, whenever the premises of the argument are true, so is the conclusion. In other words, the deduction rule is valid.
3.3.5.
Solution.
-
Negation: The power goes off and the food does not spoil.Converse: If the food spoils, then the power went off.Contrapositive: If the food does not spoil, then the power did not go off.
-
Negation: The door is closed and the light is on.Converse: If the light is off then the door is closed.Contrapositive: If the light is on then the door is open.
-
Negation:Converse:Contrapositive:
-
Negation: There is a natural number
which is prime but not solitary. -
Negation: There is a function which is differentiable and not continuous.
-
Negation: There is at least one student in Math 228 who does not understand implications but will still pass the exam.Converse: For every student in Math 228, if they fail the exam, then they did not understand implications.Contrapositive: For every student in Math 228, if they pass the exam, then they understood implications.
3.3.6.
Solution.
-
The statement is true. If
is an even integer less than or equal to 7, then the only way it could not be negative is if was equal to 0, 2, 4, or 6. -
There is an integer
such that is even and but is not negative and This is false, since the original statement is true. -
For all integers
if is not negative and then is odd or This is true, since the contrapositive is equivalent to the original statement (which is true).
3.3.7.
Solution.
-
For any number
if it is the case that adding any number to gives that number back, then multiplying any number by will give 0. This is true (of the integers or the reals). The “if” part only holds if and in that case, anything times will be 0. -
The converse in words is this: for any number
if everything times is zero, then everything added to gives itself. Or in symbols: The converse is true: the only number which when multiplied by any other number gives 0 is And if then -
The contrapositive in words is: for any number
if there is some number which when multiplied by does not give zero, then there is some number which when added to does not give that number. In symbols: We know the contrapositive must be true because the original implication is true. -
The negation: there is a number
such that any number added to gives the number back again, but there is a number you can multiply by and not get 0. In symbols: Of course since the original implication is true, the negation is false.
3.3.8.
3.3.9.
Solution.
-
Direct proof.
Proof.
-
The converse is: for all integers
if is odd, then is odd. We will prove this by contrapositive.Proof.
Let be an integer. Assume is not odd. Then for some integer So which is to say is even. Therefore is not odd.
3.3.10.
Solution.
-
Suppose you only had 5 coins of each denomination. This means you have 5 pennies, 5 nickels, 5 dimes and 5 quarters. This is a total of 20 coins. But you have more than 20 coins, so you must have more than 5 of at least one type.
-
Suppose you have 22 coins, including
nickels, dimes, and quarters (so an even number of each of these three types of coins). The number of pennies you have will then beBut this says that the number of pennies is also even (it is 2 times an integer). Thus we have established the contrapositive of the statement, “If you have an odd number of pennies then you have an odd number of at least one other coin type.” -
You need 10 coins. You could have 3 pennies, 3 nickels, and 3 dimes. The 10th coin must either be a quarter, giving you 4 coins that are all different, or else a 4th penny, nickel or dime. To prove this, assume you don’t have 4 coins that are all the same or all different. In particular, this says that you only have 3 coin types, and each of those types can only contain 3 coins, for a total of 9 coins, which is less than 10.
4 Graph Theory
4 Graph Theory
4.1 Definitions
Exercises
4.1.1.
4.1.2.
Solution.
It is possible for everyone to be friends with exactly 2 people. You could arrange the 5 people in a circle and say that everyone is friends with the two people on either side of them (so you get the graph ). However, it is not possible for everyone to be friends with 3 people. That would lead to a graph with an odd number of odd degree vertices which is impossible since the sum of the degrees must be even.
4.1.4.
4.1.9.
Solution.
-
For example:
-
This is not possible if we require the graphs to be connected. If not, we could take
as one graph and two copies of as the other. -
Not possible. If you have a graph with 5 vertices all of degree 4, then every vertex must be adjacent to every other vertex. This is the graph
-
This is not possible. In fact, there is not even one graph with this property (such a graph would have
edges).
4.1.10.
4.2 Trees
Exercises
4.2.1.
Solution.
-
This is not a tree since it contains a cycle. Note also that there are too many edges to be a tree, since we know that all trees with
vertices have edges. -
This is a tree since it is connected and contains no cycles (which you can see by drawing the graph). All paths are trees.
-
This is a tree since it is connected and contains no cycles (draw the graph). All stars are trees.
-
This is a not a tree since it is not connected. Note that there are not enough edges to be a tree.
4.2.2.
Solution.
-
This must be the degree sequence for a tree. This is because the vertex of degree 4 must be adjacent to the four vertices of degree 1 (there are no other vertices for it to be adjacent to), and thus we get a star.
-
This cannot be a tree. Each degree 3 vertex is adjacent to all but one of the vertices in the graph. Thus each must be adjacent to one of the degree 1 vertices (and not the other). That means both degree 3 vertices are adjacent to the degree 2 vertex, and to each other, so that means there is a cycle.Alternatively, count how many edges there are!
-
This might or might not be a tree. The length 4 path has this degree sequence (this is a tree), but so does the union of a 3-cycle and a length 1 path (which is not connected, so not a tree).
-
This cannot be a tree. The sum of the degrees is 28, so there are 14 edges. But there are 14 vertices as well, so we don’t have
meaning this cannot be a tree.
4.2.6.
4.2.12.
Solution.
-
No, although there are graphs for which this is true. For example,
has a spanning tree that is a path (of three edges) and also a spanning tree that is a star (with center vertex of degree 3). -
Yes. For a fixed graph, we have a fixed number
of vertices. Any spanning tree of the graph will also have vertices, and since it is a tree, must have edges. -
No, although there are graph for which this is true (note that if all spanning trees are isomorphic, then all spanning trees will have the same number of leaves). Again,
is a counterexample. One spanning tree is a path, with only two leaves, another spanning tree is a star with 3 leaves.
4.3 Planar Graphs
Exercises
4.3.1.
4.3.2.
4.3.6.
4.3.8.
Solution.
Proof.
Let be the statement, “every connected planar graph containing edges satisfies ” We will show is true for all
Base case: there is only one graph with zero edges, namely a single isolated vertex. In this case and so Euler’s formula holds.
Inductive case: Suppose is true for some arbitrary Now consider an arbitrary graph containing edges (and vertices and faces). No matter what this graph looks like, we can remove a single edge to get a graph with edges which we can apply the inductive hypothesis to.
There are two cases: either the graph contains a cycle or it does not. If the graph contains a cycle, then pick an edge that is part of this cycle, and remove it. This will not disconnect the graph, and will decrease the number of faces by 1 (since the edge was bordering two distinct faces). So by the inductive hypothesis we will have Adding the edge back will give as needed.
If the graph does not contain a cycle, then it is a tree, so has a vertex of degree 1. Then we can pick the edge to remove to be incident to such a degree 1 vertex. In this case, also remove that vertex. The smaller graph will now satisfy by the induction hypothesis (removing the edge and vertex did not reduce the number of faces). Adding the edge and vertex back gives as required.
Therefore, by the principle of mathematical induction, Euler’s formula holds for all planar graphs.
4.3.12.
4.4 Coloring
Exercises
4.4.1.
4.4.2.
4.4.3.
4.4.5.
4.4.9.
4.4.12.
Solution.
If we drew a graph with each letter representing a vertex, and each edge connecting two letters that were consecutive in the alphabet, we would have a graph containing two vertices of degree 1 (A and Z) and the remaining 24 vertices all of degree 2 (for example, would be adjacent to both and ). By Brooks’ theorem, this graph has chromatic number at most 2, as that is the maximal degree in the graph and the graph is not a complete graph or odd cycle. Thus only two boxes are needed.
4.4.13.
4.5 Euler Paths and Circuits
Exercises
4.5.1.
Solution.
This is a question about finding Euler paths. Draw a graph with a vertex in each state, and connect vertices if their states share a border. Exactly two vertices will have odd degree: the vertices for Nevada and Utah. Thus you must start your road trip at in one of those states and end it in the other.
4.5.2.
4.5.8.
4.6 Matching in Bipartite Graphs
Exercises
4.6.1.
Solution.
The first and third graphs have a matching, shown in bold (there are other matchings as well). The middle graph does not have a matching. If you look at the three circled vertices, you see that they only have two neighbors, which violates the matching condition (the three circled vertices form the set ).
4.7 Chapter Summary
Chapter Review
4.7.1.
4.7.2.
4.7.3.
4.7.4.
4.7.5.
Solution.
-
This is easy to do if you draw the picture. Here is such a graph:
-
In general this should be possible: the degree sequence does not determine the graph’s isomorphism class. However, in this case, I was almost certain this was not possible. That is, until I stumbled up this:
-
is a tree (there are no cycles) and as such also bipartite. -
Yes, all trees are planar. You can draw them in the plane without edges crossing.
-
The chromatic number of
is 2. It shouldn’t be hard to give a 2-coloring (for example, color red and blue), but we know that all bipartite graphs have chromatic number 2. -
It is clear from the drawing that there is no Euler path, let alone an Euler circuit. Also, since there are more than 2 vertices of odd degree, we know for sure there is no Euler path.
4.7.6.
4.7.7.
4.7.8.
4.7.9.
4.7.10.
Solution.
-
No. The 9 triangles each contribute 3 edges, and the 6 pentagons contribute 5 edges. This gives a total of 57, which is exactly twice the number of edges, since each edge borders exactly 2 faces. But 57 is odd, so this is impossible.
-
Now adding up all the edges of all the 16 polygons gives a total of 64, meaning there would be 32 edges in the polyhedron. We can then use Euler’s formula
to deduce that there must be 18 vertices. -
If you add up all the vertices from each polygon separately, we get a total of 64. This is not divisible by 3, so it cannot be that each vertex belongs to exactly 3 faces. Could they all belong to 4 faces? That would mean there were
vertices, but we know from Euler’s formula that there must be 18 vertices. We can write and solve for and (as integers). We get that there must be 10 vertices with degree 4 and 8 with degree 3. (Note the number of faces joined at a vertex is equal to its degree in graph theoretic terms.)
4.7.11.
4.7.12.
4.7.13.
4.7.14.
4.7.15.
4.7.16.
Solution.
We have that has 7 vertices and 12 edges (each vertex in the group of 3 has degree 4). Then by Euler’s formula we have that so if the graph were planar, it would have faces. However, since the girth of the graph is 4 (there are no cycles of length 3) we get that But this would mean that a contradiction.
4.7.17.
Solution.
For all these questions, we are really coloring the vertices of a graph. You get the graph by first drawing a planar representation of the polyhedron and then taking its planar dual: put a vertex in the center of each face (including the outside) and connect two vertices if their faces share an edge.
-
Since the planar dual of a dodecahedron contains a 5-wheel, it’s chromatic number is at least 4. Alternatively, suppose you could color the faces using 3 colors without any two adjacent faces colored the same. Take any face and color it blue. The 5 pentagons bordering this blue pentagon cannot be colored blue. Color the first one red. Its two neighbors (adjacent to the blue pentagon) get colored green. The remaining 2 cannot be blue or green, but also cannot both be red since they are adjacent to each other. Thus a 4th color is needed.
-
The planar dual of the dodecahedron is itself a planar graph. Thus by the 4-color theorem, it can be colored using only 4 colors without two adjacent vertices (corresponding to the faces of the polyhedron) being colored identically.
-
The cube can be properly 3-colored. Color the “top” and “bottom” red, the “front” and “back” blue, and the “left” and “right” green.
4.7.18.
Solution.
-
False. To prove this, we can give an example of a pair of graphs with the same chromatic number that are not isomorphic. For example,
and both have chromatic number 2, but are not isomorphic. -
False. The previous example does not work, but you can easily draw two trees that have the same number of vertices and edges but are not isomorphic. Since all trees have chromatic number 2, this is a counterexample.
-
True. If there is an isomorphism from
to then we have a bijection that tells us how to match up vertices between the graph. Any proper vertex coloring of will tell us how to properly color simply by coloring the same color as for each vertex That is, color the vertices in exactly how you color the corresponding vertices in Similarly, any proper vertex coloring of corresponds to a proper vertex coloring of Thus the smallest number of colors needed to properly color cannot be smaller than the smallest number of colors needed to properly color and vice-versa, so the chromatic numbers must be equal.
4.7.19.
4.7.20.
Solution.
-
The graph does have an Euler path, but not an Euler circuit. There are exactly two vertices with odd degree. The path starts at one and ends at the other.
-
The graph is planar. Even though as it is drawn edges cross, it is easy to redraw it without edges crossing.
-
The graph is not bipartite (there is an odd cycle), nor complete.
-
The chromatic number of the graph is 3.
4.7.21.
Solution.
-
False. For example,
is not planar. -
True. The graph is bipartite so it is possible to divide the vertices into two groups with no edges between vertices in the same group. Thus we can color all the vertices of one group red and the other group blue.
-
False.
has 6 vertices with degree 3, so contains no Euler path. -
False.
again. -
False. The sum of the degrees of all vertices is even for all graphs so this property does not imply that the graph is bipartite.
4.7.22.
Solution.
-
If a graph has an Euler path, then it is planar.
-
If a graph does not have an Euler path, then it is not planar.
-
There is a graph which is planar and does not have an Euler path.
-
Yes. In fact, in this case it is because the original statement is false.
-
False.
is planar but does not have an Euler path. -
False.
has an Euler path but is not planar.