Hint:
$1=2^1-1$
$1+2 = 2^2-1$
$1+2+4 = 2^3-1$
$1+2+4+8 = 2^4-1$
$1+2+4+8+16 = 2^5-1$
$1+2+4+\dots+2^n = 2^{n+1}-1$
So then, what is $U_n$?
Now, looking at $S_n$, can you see a similar pattern emerging?
Solution:
Given that $1+2+4+\dots+2^n = 2^{n+1}-1$ it follows that $U_n = 2+4+\dots+2^n = 2^{n+1}-2$
Further, we have that $S_n = U_1+U_2+\dots+U_n$
By replacing $U_n$ with what we found earlier and rearranging we have:
$S_n = (2^2-2)+(2^3-2)+\dots+(2^{n+1}-2) = (2^2+2^3+\dots+2^{n+1})-2n$
Recalling that $1+2+4+\dots+2^n+2^{n+1}=2^{n+2}-1$ and by subtracting $1+2$ from each side, we arrive at:
$S_n = (2^{n+2}-4)-2n$
$(2^1)+(2^1+2^2)+(2^1+2^2+2^3)$results in $(2^1)+(2^1+2^2)+(2^1+2^2+2^3)$. That already takes you most of the way for simple equations. – JMoravitz Oct 24 '19 at 17:40