06.09.2021 Views

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

356 B. Selected Solutions<br />

doesn’t matter if you pick type 3 first and type 2 second, or the other<br />

way around, just that you pick those two types).<br />

(b) We want to consider injective functions from the set {most, second<br />

most, second least, least} to the set of 10 cookie types. We want<br />

injections because we cannot pick the same type of cookie to give<br />

most and least of (for example).<br />

(c) This is not a good problem to interpret as a function. The problem is<br />

that the domain would have to be the 12 cookies you bake, but these<br />

elements are indistinguishable (there is not a first cookie, second<br />

cookie, etc.).<br />

(d) The domain should be the 12 shapes, the codomain the 10 types of<br />

cookies. Since we can use the same type for different shapes, we are<br />

interested in counting all functions here.<br />

(e) Here we insist that each type of cookie be given at least once, so<br />

now we are asking for the number of surjections of those functions<br />

counted in the previous part.<br />

2.1.1.<br />

2.1 Exercises<br />

(a) Note that if we subtract 1 from each term, we get the square numbers.<br />

Thus a n n 2 + 1.<br />

(b) These look like the triangular numbers, only shifted by 1. We get:<br />

a n n(n+1)<br />

2<br />

− 1.<br />

(c) If you subtract 2 from each term, you get triangular numbers, only<br />

starting with 6 instead of 1. So we must shift vertically and horizontally.<br />

a n (n+2)(n+3)<br />

2<br />

+ 2.<br />

(d) These seem to grow very quickly. Further, if we add 1 to each term,<br />

we find the factorials, although starting with 2 instead of 1. This<br />

gives, a n (n + 1)! − 1 (where n! 1 · 2 · 3 · · · n).<br />

2.1.3.<br />

(a) a 0 0, a 1 1, a 2 3, a 3 6 a 4 10. The sequence was described<br />

by a closed formula. These are the triangular numbers. A recursive<br />

definition is: a n a n−1 + n with a 0 0.<br />

(b) This is a recursive definition. We continue a 2 2, a 3 3, a 4 4,<br />

a 5 5, and so on. A closed formula is a n n.<br />

(c) We have a 0 1, a 1 1, a 2 2, a 3 6, a 4 24, a 5 120, and so on.<br />

The closed formula is a n n!.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!