hey i saw one of the replies u got bt i think u need sum of n terms in arithmogeometric progression.if it is then u can use the following technique.
first identify the common ratio of the agp.for example in the following series of agp,
5+21+81+297......
the series can be written as 5*1+7*3+9*9+11*27.......
in this series common ratio of the agp=3
S=5*1+7*3+9*9+11*27
3S= 5*3+7*9+9*27......
subtracting n taking the common difference of the ap common, u get
-2S=5*1+2(3+9+27+81+.......)
n u can find the sum by applying the formula for sum of gp obtained in brackets.substitute the value of n correctly.did u get it?