fb pixel

Geometric progression

Geometric progression is defined as a sequence of , where each next element is obtained by multiplying the previous one with a number q.
So, to obtain the n-th number in the sequence when having the first element and the number q, one can use the formula:
Given the first number in the sequence , the number q, and the number n, print the n-th element of the sequence .
Input
Output
95 3 2
285
To check your solution you need to sign in
Sign in to continue