The growth of algae in a pond can be modeled using a specific formula. Given the initial weight of algae at the beginning of the year 2000, you are tasked with calculating the weight of algae for the subsequent years up to 2010 based on the provided growth parameters.
Formula
For years (i \geq 2000):
[
x_{i+1} = r \cdot x_i - D
]
Where:
(x_i) is the total weight of algae at the beginning of year (i)
(r) is a constant growth rate multiplier
(D) is a constant amount of algae that is removed from the pond each year
Input
A floating-point number (r) (growth rate multiplier) where (1 < r < 3)
A positive integer (D) (amount of algae removed, in grams)
An integer (x_{2000}) (initial weight of algae at the beginning of the year 2000) where (0 \leq x_{2000} \leq 10,000)
Output
Print the weights of the algae for the years 2001 to 2010, each on a new line, formatted to two decimal places.