Computer Science, asked by vaishnavipm8892, 10 months ago

write a program to print the sum of series 1/a^2+4/a^5+7/a^8+10/a^11 to n term

Answers

Answered by gajjarmanthan
0

Answer:

def series(a):

   sum = 0

   count = 1

   y = 2

   if a <= a:

       a+=1

       for i in range(1,a):

           sum = sum + (i/(a**y))

           print(sum)

           i += 3

           y += 3

series(int(input("Enter Number of Terms:")))

Explanation:

Answered by taniyaarajput711
3

Answer: sum

Explanation: public class sum

{

public static void main( )

{

int x=1 ;

double sum=0.0;

for (int i=1, i<= n, i++ );

int e= x+i ;

{

sum=sum+ x / math.pow (a,e);

x+=3 ;

}

system.out.println ( "the sum of the series=" + sum);

}

}

Similar questions