An Arithmetico-Geometric Progression (A.G.P.) is a sequence in which each term is the product of the corresponding terms of an A.P. and a G.P.: if the A.P. is a,a+d,a+2d,… and the G.P. is 1,r,r2,…, the A.G.P. is a,(a+d)r,(a+2d)r2,…, so its general term is tn=[a+(n−1)d]rn−1. The sum of the first n terms is found by the same shift-and-subtract trick used for a plain G.P.: write Sn, then write rSn (every term shifted one place), and subtract; because the A.P. part now differs by a constant d, the leftover terms form a genuine G.P. that can be summed with the usual formula, giving Sn=1−ra+(1−r)2dr(1−rn−1)−1−r[a+(n−1)d]rn for r=1. When ∣r∣<1, letting n→∞ makes the last term vanish, giving the simpler sum to infinity 1−ra+(1−r)2dr.