Fermentation and Food Preservation 1, Exercise 2: how long until a million cells? # Start with 100 cells (assumed). Find the time to reach 1,000,000 for two assumed doubling times. import math start, target = 100, 1_000_000 doublings = math.log2(target / start) print(f"doublings needed: {doublings:.2f}") for label, doubling_minutes in (("20-minute doubling", 20), ("5-hour doubling", 300)): minutes = doublings * doubling_minutes print(f"{label}: {minutes:.1f} minutes = {minutes / 60:.1f} hours") print("cells after 2 hours at 20-minute doubling:", start * 2 ** 6) # Output when run: # doublings needed: 13.29 # 20-minute doubling: 265.8 minutes = 4.4 hours # 5-hour doubling: 3986.3 minutes = 66.4 hours # cells after 2 hours at 20-minute doubling: 6400 Working by hand: 1,000,000 / 100 = 10,000 = 2^13.29, so about 13.3 doublings. Comparing with the two-hour rule: - At the 20-minute best case, 2 hours is only 6 doublings, a 64-fold rise (100 cells become 6,400). That is far short of a million, which is the point: the two-hour rule is a safety margin on the early, cheap part of the curve and also allows for foods that start with far more than 100 cells, and for toxins, which do not need huge numbers. - A million cells takes about 4.4 hours at 20-minute doubling, but about 66 hours (2.8 days) at the illustrative 5-hour doubling time: cooling stretches the time by a factor of 15 in this model. Caution: 100 cells and one million are invented round numbers. Real illness thresholds depend on the organism and the person, and some toxins form at levels you could not detect.