We have that the first day, there were 5 bacteria, then on day 2 there were 10, and so on. We can write the table like this:
where 'x' represents the number of days and 'y' represents the total bacteria.
Since we are multiplying by 2 each day the total bacteria, we have a geometric sequence, which can be calculated the nth term like this:

in this case, we can write it like this, considering that the number of bacteria on day 1 is 5, and the common ratio is r = 2 :

which clearly is not a linear function, but the number of bacteria is afunction of the number of days.
For the days 4 and 5, we can make x = 4 and x = 5 to get the following:
