100 atcoder#ABC127B. [ABC127B] Algae
[ABC127B] Algae
Score : points
Problem Statement
The development of algae in a pond is as follows.
Let the total weight of the algae at the beginning of the year be gram. For , the following formula holds:
You are given , and . Calculate , , and print them in order.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print lines. The -th line () should contain as an integer.
2 10 20
30
50
90
170
330
650
1290
2570
5130
10250
For example, and .
4 40 60
200
760
3000
11960
47800
191160
764600
3058360
12233400
48933560