First term =1
Even term = a times the term before it
Odd term =c times the term before it
Let the series be 1,a,ac,a2c,(ac)2..............
Let S1=1+ac+(ac)2.....n terms
r=ac
∴S1=1((ac)n−1)ac−1
Let S2=a+a2c+a3c2.....n termsr=ac
∴S2=a((ac)n−1)ac−1
∴ Total sum S=S1+S2=([ac]n−1)(a+1)ac−1