PGR01 - Progressions
Charan is good at Mathematics and he loves the concept of progressions. He was assigned a task to calculate the
n-th term in the given series. As he is good at mathematics he calculates the answer but as the series was too large he decided to write a program to solve that problem. Help Mr.Charan in solving the problem.
Given series is t1=1,t2=9,t3=45,t4=189,t5=729.....
Here, tn=n-th term in the series.
First line represents the number of test cases.
Next t lines represent the n value.
Output the corresponding value of the n-th term
10 Output: 373977
ez.. first go :)
easy but tricky got ac at 1st attempt
Raj Kumar Chauhan:
can anyone tell me how to get solution of questions?
pandu ranga rao:
Sir @Bala Sai Charan can u please provide submit link for the above problem.... Thanq