The Bacteria Grid Puzzle, presented in collaboration with MoMath (National Museum of Mathematics) and Peter Winkler, begins with a deceptively simple premise. We start with a single cell at the origin (0,0) of an infinite grid. The rule for movement is straightforward: if the spots immediately above and to the right of a bacterium are empty, it can replicate. Upon replication, the original spot becomes empty, and the two new spots are occupied. The ultimate objective is to determine the minimum number of moves required to clear all 16 lattice points within a 4x4 square box. Initial explorations with smaller scales can be misleading. A 1x1 box is cleared in a single move. Expanding to a 2x2 box requires eight moves after some trial and error. This progression might suggest a solvable, albeit complex, pattern involving powers of two. However, once the scale increases to a 3x3 grid, the number of required moves appears to grow astronomically. It becomes increasingly difficult to create the necessary space for cells to replicate without re-occupying the target area. In high-level problem solving, when a system can unfold in an infinite number of ways, the most effective strategy is often to find a 'quantity' that remains unchanged regardless of the choices made. This is known as an 'invariant.' To apply this to the grid, we assign a weight to every point. If we set the origin at a weight of 1, and assign each subsequent diagonal line a weight that is half of its predecessor, we create a system where the total weighted sum of the bacteria is preserved during every move. Specifically, if a bacterium at a point with weight $W$ replicates, it moves to two points that each have a weight of $W/2$. Since $W/2 + W/2 = W$, the total weight of the system remains exactly 1, no matter how many replications occur. This invariant is the key to understanding the boundaries of the puzzle. For the bacteria to 'clear' a specific box, the descendants of the original cell must be able to reside entirely in the space outside that box. If the total weight of the area outside the box is less than 1, clearing the box is mathematically impossible. To test this, we must calculate the total weight of the entire infinite grid. The first row of lattice points forms a geometric series (1 + 1/2 + 1/4...) that converges to 2. Each subsequent row is a similar series shifted by a factor of 1/2. When we sum the totals of every row (2 + 1 + 1/2 + 1/4...), the weight of the entire infinite grid converges to exactly 4. This finite value represents the total 'capacity' of the universe in which these bacteria exist. Next, we calculate the weight of the 16 points inside the 4x4 box. The sum of these weights is approximately 3.515625. By subtracting the box's weight from the total grid weight (4 - 3.515625), we find that the total weight of the infinite space outside the box is only about 0.484375. Because this value is significantly less than the required invariant of 1, there is simply not enough 'room'—in terms of mathematical weight—for the bacteria to ever escape the 4x4 box. This same logic applies to the 3x3 box. The weight of those nine lattice points is approximately 3.0625, leaving less than 1 unit of weight outside. Even with infinite time and moves, the bacteria are fundamentally trapped by the laws of the system. The puzzle is essentially a lesson in the power of negative proof; by identifying an invariant, we can prove a goal is unreachable without having to test every possible sequence of moves. This approach demonstrates why professional mathematicians often look for constraints rather than direct paths. The 'cruel' nature of the puzzle lies in its initial appearance of solvability, which masks a hard physical limit. For practitioners in computer science or optimization, this highlights the importance of identifying system invariants early to avoid attempting to solve 'impossible' problems through brute force or recursive algorithms.
The Logic of Invariance: Why the Bacteria Grid Puzzle Defies Direct Solution Through Mathematical Proof
結論Clearing a 4x4 grid box via diagonal replication is mathematically impossible because the total invariant weight outside the box is less than the required initial value of one.

3Blue1Brown/Bacteria Grid Puzzle Solution/📅 2026年3月21日 公開
信じられますか?このクオリティの記事と図解を manabi は たった1分 で自動生成しました
この動画の重要ポイント
- 1The Bacteria Grid Puzzle presents a replication rule where one cell moves to two adjacent spots, creating an exponentially growing challenge.
- 2By assigning specific geometric weights to each grid point, we identify a mathematical invariant where the total weight remains constant at one.
- 3A rigorous proof reveals that clearing a 4x4 or even a 3x3 box is impossible because the total weight available outside the box is less than the required invariant.
こんな人におすすめ
- Mathematics students and enthusiasts
- Logic puzzle fans
- Computer science researchers
manabi 編集部の視点
This puzzle illustrates a fundamental concept in theoretical computer science and discrete mathematics: the use of invariants to determine reachability. While the problem appears to be about sequence optimization, it is actually a problem of spatial constraints defined by geometric series. Readers should note that this specific proof relies on the 'Up and Right' replication rule; changing the movement rules would alter the invariant and potentially change the outcome. This video serves as an excellent practical application of how abstract infinite series (1 + 1/2 + 1/4...) provide concrete lim
AIが生成したビジュアル
タップして拡大

あなたが見たい動画も
1分で要約・図解化しませんか?
無料登録で累計3回まで
主要トピック
The Bacteria Grid Challenge
- Rule: 1 cell replicates into 2 adjacent empty spots (Up/Right).
- Goal: Move all bacteria out of a 4x4 lattice box.
- Observation: Small cases (1x1, 2x2) are possible, but larger boxes feel infinite.
The Power of Invariants
- Assign weight $W$ to a point, and $W/2$ to its neighbors.
- When a cell replicates, total weight ($W/2 + W/2$) remains $W$.
- The system's total weight is fixed at 1 (the initial cell's weight).
Calculating the Grid's Capacity
- Total weight of the entire infinite grid converges to 4.
- The 4x4 box itself contains over 3.5 units of weight.
- Remaining space outside the box is less than 1.
The Final Verdict: Impossibility
- To clear the box, the outside weight must be at least 1.
- Since the outside weight is ~0.48, the bacteria can never escape.
- Math proves the puzzle is impossible before you even start moving.
次はあなたが魔法を使う番です
あなたが作った要約が、
同じように悩む誰かの灯火になります。
無料登録で累計3回まで
よくある質問
Q1.What exactly is the replication rule in this puzzle?
A bacterium at position (x, y) can move to positions (x, y+1) and (x+1, y) simultaneously, provided both target spots are empty. The original spot at (x, y) then becomes vacant.
Q2.Why does the weight of the grid stay at 1?
By assigning weights that halve with each step (e.g., origin is 1, next spots are 0.5), the act of one cell splitting into two always results in two 0.5 weights replacing one 1.0 weight, preserving the sum.
Q3.How do we know the total weight of the infinite grid is 4?
Each row is a geometric series. The first row sums to 2, the second to 1, the third to 0.5, and so on. Summing these results (2 + 1 + 0.5 + ...) leads to a final convergence of 4.
Q4.Can the bacteria ever clear a 3x3 box?
No. The calculation shows that the weight inside a 3x3 box is approximately 3.0625. Since 4 minus 3.0625 is less than 1, there isn't enough capacity outside the box to hold the bacteria.
Q5.Is there any way to solve the 4x4 puzzle?
Under the specific rules provided, it is mathematically proven to be impossible. No sequence of moves, regardless of how many billions are made, will ever clear the box.
