I am having difficulty understanding the answer to this question.
How many functions are there with domain $A$ and codomain $\{0, 1\}$?
$A = P(\{1, 2, 3, 4\})$.
$|A| = 2^{|{1,2,3,4}|} = 16$, so there are $16$ possible inputs. For each of these inputs, we can choose whether to map them to $0$ or $1$. So there are $2^{16} = 65536$ such functions.
I understand the first part ($2^4=16$), but the second part ($2^{16}$) is a little bit confusing to me.