Triangle Method for Weighted Sums

Idea · Intermediate

Algebra: Sequences & Series

Start with:

121+222+323++(n1)2n1+n2n 1\cdot 2^1+2\cdot 2^2+3\cdot 2^3+\cdots+(n-1)2^{n-1}+n2^n

Write the following equations in a triangular arrangement:

Triangular arrangement for a weighted sum of powers of 2

Then add them:

n2n+1(21+22+23++2n1+2n) n2^{n+1}-\left(2^1+2^2+2^3+\cdots+2^{n-1}+2^n\right)

Since

21+22++2n1+2n=2n+121 2^1+2^2+\cdots+2^{n-1}+2^n=2^{n+1}-2^1

we get

n2n+1(2n+121) n2^{n+1}-\left(2^{n+1}-2^1\right)
(n1)2n+1+21 \boxed{(n-1)2^{n+1}+2^1}