~/algor $ cat problems/array/terms-of-an-arithmetic-progression
Terms of an arithmetic progression
Easy
1000 ms
128 MB
25%
A positive integer , the first term and the common difference are given. Build and print the array of the first terms of the arithmetic progression:
Input
One line with three integers: , and .
Output
One line with integers separated by spaces.
Note
Examples
Input #1
5 3 4
Output #1
3 7 11 15 19
Input #2
4 10 -2
Output #2
10 8 6 4