#ABC127B. Algae
Algae
题目描述
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.
池塘中藻类的发展情况如下。
假设年初 水藻的总重量为 克。对于 ,下列公式成立:
给你 、 和 。计算 、 、 ,并依次打印出来。
输入格式
$r$ $D$ $x_{2000}$
输出格式
打印 行。 -th 行( )应包含一个整数 。
样例 #1
样例输入 #1
2 10 20
样例输出 #1
30
50
90
170
330
650
1290
2570
5130
10250
样例 #2
样例输入 #2
4 40 60
样例输出 #2
200
760
3000
11960
47800
191160
764600
3058360
12233400
48933560
说明
数据规模与约定
- 输入值均为整数。
样例 解释
例如, 和 。