How do you show that for a finite set $A$ of cardinality $n$, the cardinality of $P(A)$ is $2^n$? (P is the power set). Can someone check my steps? Here is what I have so far:
n=1 case: |A|=1, |P(A)|=$2^1$=2. (∅, {1})
Assume it is true for n, then it implies that the n+1 case is true by standard induction.
let |A|=n+1 and {a} ∈ A, then n=|A\{a}|, |P(A\{a})|=$2^n$
then A=A\{a} + {a} = n+1
|P(A\{a})|+|P({a})| = $2^n$ + $2^1$ = 2^(n+1)
Therefore, the cardinality of P(A) is $2^n$.
There are $2^n$ strings of length $n$ in the alphabet $\{0,1\}$ (*). Let $A = \{a_1, \ldots, a_n\}$ and consider the map $$ \pi((b_1, \ldots, b_n)) \mapsto \{a_i \mid i \le n \wedge b_i = 1 \}, $$ where $b_i \in \{0,1\}$. Show that $\pi$ is a bijection from the set of strings of length $n$ in the alphabet $\{0,1\}$ onto $\mathcal P(A)$.
(*) If you don't already know this, you can prove it easily by an induction on $n$.