New update is available. Click here to update.

Posted: 15 Oct, 2020

Difficulty: Easy

```
The first line of input contains an integer T denoting the number of queries or test cases.
The first line of every test case contains three single space-separated integers N, A, and R denoting the term of GP series required, the first term, and the common ratio respectively.
```

```
For each test case, print an integer denoting the Nth term of GP in a separate line.
```

```
You do not need to print anything, it has already been taken care of. Just implement the given function.
```

```
1 <= T <= 10
1 <= N <= 10^8
0 <= A <= 50
0 <= R <= 100
Time limit: 1 second
```

SIMILAR PROBLEMS

Merge Two Sorted Arrays Without Extra Space

Posted: 19 Nov, 2022

Difficulty: Moderate

Ninja And The Strictly Increasing Array

Posted: 27 Nov, 2022

Difficulty: Moderate

Maximum GCD

Posted: 8 Dec, 2022

Difficulty: Hard

Prime?

Posted: 9 Dec, 2022

Difficulty: Easy

Co-Prime

Posted: 14 Dec, 2022

Difficulty: Hard

Categories:

Popular Courses: