A scientist has discovered a new species of bacteria ( Brilliantium Tribonaccii ) with some strange properties when placed in a special medium:
If the scientist puts bacteria in the medium, how many bacteria will he observe at
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
At time = t , let the number of bacterias who have not replicated even once be a t . The number of bacterias who have replicated once be b t and the number of bacterias who have replicated twice be c t . We can now express the rules of division as follows :-
a t + 1 = a t + b t + c t
b t + 1 = a t
c t + 1 = b t
Also at t = 0 , a 0 = 1 , b 0 = c 0 = 0 . Using these initial conditions and the three recurrence relations above we can evaluate the values of a 3 0 , b 3 0 and c 3 0 . The values turn out to be - a 3 0 = 5 3 7 9 8 0 8 0 , b 3 0 = 2 9 2 4 9 4 2 5 and c 3 0 = 1 5 9 0 2 5 9 1 . Hence, the total number of alive bacterias at t = 3 0 are a 3 0 + b 3 0 + c 3 0 = 9 8 9 5 0 0 9 6 .
Note: The above computation can also be viewed as matrix multiplication, which can be used to construct an efficient algorithm for this problem.( End of Note )