An arithmetico-geometric sequence[A.G.P] is the result of the multiplication of a geometric progression with the corresponding terms of an arithmetic progression
S(n)=1*$\frac{1}{2}$+2*$\frac{1}{4}$+3*$\frac{1}{8}$+4*$\frac{1}{16}$+............Equation(1)
Multiply both sides by common ratio(r) of gp series =$\frac{1}{2}$
$\frac{1}{2}$S(n)=1*$\frac{1}{4}$+2*$\frac{1}{8}$+3*$\frac{1}{16}$+........Equation(2)
subtract eq2 from eq1
S(n)-$\frac{1}{2}$S(n)=1*$\frac{1}{2}$+(2-1)*$\frac{1}{4}$+(3-2)$\frac{1}{8}$+(4-3)$\frac{1}{16}$+......
$\frac{1}{2}$S(n)=$\frac{1}{2}$+$\frac{1}{4}$+$\frac{1}{8}$+$\frac{1}{16}$+.....
$\frac{1}{2}$S(n)=$\frac{\frac{1}{2}}{1-(\frac{1}{2})}$
S(n)=2