Show that the set $A$ of all functions $f:\mathbb{Z}^{+} \to \mathbb{Z}^{+}$ and $B$ of all functions $f:\mathbb{Z}^{+} \to \{0,1\}$ have the same cardinality.
I am having trouble to define a bijection that would prove this statement. Any hints would be appreciated.
you can think of it like this, a function is defined by for each X there is only 1 Y, and both of these functions have the same domains(same in the domain cardinality), the set of all positive integers. in function 1 each positive integer is mapped to another positive integer and for the second each positive integer is mapped to either 1 or 0, however for each element in the domain there can only be one value of Y, so there is one mapping of X -> Y per X(element of the domain) and as the domains are the same it follows the n