This is my work so far:
- $D(n)$ is the number of ways the set $\{1,2,3,\ldots,n\}$ can be partitioned into two sets.
- $D(n-1)$ is the number of ways the set $\{1,2,3,\ldots,n-1\}$ can be partitioned into two sets.
$n-1$ can be divided into two sets, say, $A$ and $B$. Now we add element $n$ into $A$ and $B$.
Now each partition of $D(n-1)$ gives two partitions of $D(n)$:
$$D(n) = 2D(n-1)$$
- To solve:
let $D(n) = r^n$
$r^n = 2r^{n-1}$
$r = 2$
$D(n) = 2Rn$
Is my logic correct?