I will first give the mathmatical description of the problem, which I think is a good problem for high school MOers.
Given positive integers $m, n \geq 3$, where $m$ is an odd number, consider a rectangle with $m$ columns and $n$ rows, divided into $mn$ small $1 \times 1$ squares. A good coloring of this rectangle is to color each small square with either black or white, with the following conditions held:
- All the white squares are connected.
- For each black square, one of the squares who share at least a common vertex (so it could be adjacent horizontally, vertically or diagonally) is white;
- The middle square on the bottom is white.
Among all possible good coloring, find the minimum number of white squares.
I guess the answer depends on the $m,n$ modulo 3. I know when $m=n=5$, the answer should be 8. However, I cannot find a prove that can be generalized for all $m, n$.
Background for this problem: This is a problem about the best keg layout in Stardew Valley, a fantastic Steam game. You want to place as many kegs(black squares) in a room of shape $mn$ as you can, but the same time leave a path(white squares) for your movement. You can operate the keg if it is adjacent to you horizontally, vertically or diagonally. We color the midpoint of the bottom white because after all we need a door for this house. According to Stardew Valley wiki, when $m = 11, n = 9$, the answer should be 32 (with 67 kegs), and when $m = 17, n = 12$ the answer should be 67 (with 137 kegs).
The following are considered optimal for case $m = 11, n = 9$ and $m = 17, n = 12$ by Stardew Valley players.