\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
For \(n \in \mathbb{N}\), calculate the following sum:$$ S = \sum_{k=0}^{n} 2^k \binom{n}{k} $$
Capture an image of your work. AI teacher feedback takes approximately 10 seconds.