~/algor $ cat problems/array/terms-of-a-geometric-progression
Terms of a geometric progression
Easy
1000 ms
128 MB
26%
A positive integer , the first term and the common ratio are given. Build and print the array of the first terms of the geometric progression:
Input
One line with three integers: , and .
Output
One line with integers separated by spaces.
Note
Examples
Input #1
4 3 2
Output #1
3 6 12 24
Input #2
3 5 3
Output #2
5 15 45