Given the problem:
- Please count how many functions $f : D → \{0, 1 \}$ can be defined if the domain D is a finite set with the cardinality $|D| = n$.
- Is there a bijection between the set of all such functions and the powerset $\mathcal{P}(D)$?
For the first question would the answer just be $|D|=2$?
I was hoping someone can give me a hint for the second question because I am not sure how to go about solving it.