Let $\sum_{i = 1}^{n} a_{i}$ be the series and let $b_{n} = a_{n + 1} - a_{n}$ be the sequence of differences of $a_{n}$. If the first term of the sequence is $a_{1}$ and $b_{n}$ is an arithmetic sequence with common difference $d$, then the formula for the sum of the series in terms of $a_{1}$, $b_{1}$ and $d$ is
$$\sum_{i = 1}^{n} a_{i} = na_{1} + n(n - 1)b_{1} + \frac{n(n - 1)(2n - 1)}{6}d$$
Proof
Since $b_{n}$ is an arithmetic progression, then each term $b_{i}$ can be expressed in terms of its first term $b_{1}$ and common difference $d$ as
$$b_{i} = b_{1} + (n - 1)d$$
By definition of $b_{n}$, we have
$$a_{i + 1} - a_{i} = b_{1} + (n - 1)d$$
Summing up all sides up to $n - 1$, we have
$$\sum_{i = 1}^{n - 1} a_{i + 1} - \sum_{i = 1}^{n - 1} a_{i} = (n - 1)b_{1} + {(n - 1)}^2d$$
The terms cancel in the left-hand side so that $a_{n} - a_{1}$ remains. Transposing $a_{1}$ to the right-hand side, we have
$$a_{n} = a_{1} + (n - 1)b_{1} + + {(n - 1)}^2d$$
At this point, we have derived the general term of the series $\sum_{i = 1}^{n} a_{i}$ in terms of $a_{1}$, $b_{1}$ and $d$. Summing up both sides up to $n$, we have
$$\sum_{i = 1}^{n} a_{i} = na_{1} + n(n - 1)b_{1} + \left(\sum_{i = 1}^{n} {(n - 1)}^2\right)d$$
From the sum of squares formula, we have
$$\sum_{i = 1}^{n} (n - 1)^2 = \frac{n(n - 1)(2n - 1)}{6}$$
Plugging this into the last result, we have
$$\sum_{i = 1}^{n} a_{i} = na_{1} + n(n - 1)b_{1} + \frac{n(n - 1)(2n - 1)}{6}d$$
and the proof is done.