# Arup Guha
# 10/13/2020
# Solution to Midterm Exam Part C Problem 1: Algae

# Get input.
numAlgae = int(input("How many algae on day 1?\n"))
numDays = int(input("How many days for the chart?\n"))

# Chart Header
print("Day\tAlgae")

# Loop through days.
for day in range(1, numDays+1):

    # Print one row.
    print(day,numAlgae, sep="\t")

    # Here is how the algae update.
    numAlgae = 2*numAlgae - 3
