find the sum of series 1+1/3+1/9+1/27+... to n terms sir this question answer 3/2(1-1/3n) sir please help me

r=1/3

Sum= A1 (1-rn /(1-r)

sum= 1(1-(1/3)n)/(1-1/3)
sum=(1-(1/3)n)/(2/3)= (3/2)(1-(1/3)n)