I'm looking for the cumulative form of the following series:
$\sum_{i} (A+Bi)(2^i-C)$
A, B and C are all constants.
Not a mathematician by breed-- got the formula this far. Feels that it has something to do with binomial expansions, but can't put it together. Sorry if a naive question.
\begin{align}\sum_{i=1}^N(A+Bi)(2^i-C)&= \left(\sum_{i=1}^N 2^i(A+Bi)\right)-C\left(\sum_{i=1}^N(A+Bi) \right) \end{align}
Notice that $\left(\sum_{i=1}^N(A+Bi) \right)$ is just an arithmetic sum.
Now, to handle the first term: Let $$S=\sum_{i=1}^N 2^i(A+Bi)$$
$$2S=\sum_{i=1}^N 2^{i+1}(A+Bi)=\sum_{i=2}^{N+1}2^i(A+Bi-B)$$
$$S=2S-S=2^{N+1}(A+BN)-2(A+B)-B\sum_{i=2}^N2^i$$
Hence \begin{align}S&=2^{N+1}(A+BN)-2(A+B)-4B\sum_{i=0}^{N-2}2^i \\&=2^{N+1}(A+BN)-2(A+B)-4B(2^{N-1}-1)\\\end{align}