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.

Selected Solutions 341<br />

(d) Such an element is 2 (in fact, that is the only element in the codomain<br />

that is not in the range). In other words, 2 is not the image of any<br />

element under f ; nothing is sent to 2.<br />

0.4.2.<br />

(a) This is neither injective nor surjective. It is not injective because<br />

more than one element from the domain has 3 as its image. It is not<br />

surjective because there are elements of the codomain (1, 2, 4, and 5)<br />

that are not images of anything from the domain.<br />

(b) This is a bijection. Every element in the codomain is the image of<br />

exactly one element of the domain.<br />

(c) This is a bijection. Note that we can write this function in two line<br />

( )<br />

1 2 3 4 5<br />

notation as f <br />

.<br />

5 4 3 2 1<br />

( )<br />

1 2 3 4 5<br />

(d) In two line notation, this function is f <br />

. From this<br />

1 1 2 2 3<br />

we can quickly see it is neither injective (for example, 1 is the image<br />

of both 1 and 2) nor surjective (for example, 4 is not the image of<br />

anything).<br />

0.4.5. There are 8 functions, including 6 surjective and zero injective<br />

functions.<br />

0.4.7.<br />

(a) f is not injective, since f (2) f (5); two different inputs have the<br />

same output.<br />

(b) f is surjective, since every element of the codomain is an element of<br />

the range.<br />

( )<br />

1 2 3 4 5<br />

(c) f <br />

.<br />

3 2 4 1 2<br />

0.4.9. f (10) 1024. To find f (10), we need to know f (9), for which we<br />

need f (8), and so on. So build up from f (0) 1. Then f (1) 2, f (2) 4,<br />

f (3) 8, .... In fact, it looks like a closed formula for f is f (n) 2 n . Later<br />

we will see how to prove this is correct.<br />

0.4.10. For each case, you must use the recurrence to find f (1), f (2) ...<br />

f (5). But notice each time you just add three to the previous. We do this 5<br />

times.<br />

(a) f (5) 15.<br />

(b) f (5) 16.<br />

(c) f (5) 17.

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

Saved successfully!

Ooh no, something went wrong!