>>585
階差数列使えば
a_n = a_1 + \sum_{k=1}^{n-1} a_{k+1} - a_k