0
$\begingroup$

A square-shaped garden is divided into an n x n square grid by footpaths (like a chessboard).

The owner wishes to have all the sections covered by grass; however, the grass grows in a peculiar way. If at least two of the neighbouring squares (i.e. squares that share an edge) of a given square become fully covered with grass, then so will the given square.

What is the minimum number of squares that need to be planted initially so that the grass will eventually extend to the whole garden?

  • 0
    What is the definition of neighbour squares?2017-01-22
  • 1
    If "neighbouring squares" do not include diagonals, then I think the answer is $n$. The diagonal works, but how to prove that $n-1$ doesn't work?2017-01-22
  • 0
    Neighbouring squares do not include diagonals. I.e Side by side, side or up, up and down.2017-01-22
  • 0
    @mathma Neighbouring squares do not include diagonals. I.e Side by side, side or up, up and down2017-01-22
  • 1
    This puzzle is #34 in the book by Bela Bollobas, The Art of Mathematics: Coffee Time in Memphis. There's a discussion at https://wordplay.blogs.nytimes.com/2013/07/08/bollobas/2017-01-22
  • 0
    Possible duplicate of [Prove that if fewer than $n$ students in class are initially infected, the whole class will never be completely infected.](http://math.stackexchange.com/questions/1829540/prove-that-if-fewer-than-n-students-in-class-are-initially-infected-the-whole)2017-01-22
  • 0
    Also a duplicate of http://math.stackexchange.com/questions/1007373/the-disease-problem2017-01-22
  • 0
    And it's also at http://puzzling.stackexchange.com/questions/18074/checkerboard-infection2017-01-22

3 Answers 3

0

Take $2*2$ case, and plant grass in diagonal squares initially this will cover complete 4 squares. Now add 5 squares along adjacent edges of given square to make it a $3*3$ square. No squares of the newly added squares grow grass on its own. So you need to plant one square, any square of the newly added squares with grass and you are done. This logic can be extended to higher $n$. Thus minimum square need to be planted with grass initially is $n$.

2

The solution in the book (see my comment on the original question) is terrific: just note that the perimeter of the grassy region never increases.

1

One can easily prove by induction that $n$ seeds arranged in the diagonal span the whole square. The only remaining thing to prove is that $n-1$ seeds cannot span $n^2$ squares.

One can see using the definition of neighbouring squares that any number of seeds arranged in an $r\times c$ rectangle cannot span any square outside of that rectangle.

Suppose we place $n-1$ seeds in the $n\times n$ grid.

Let $r_1$ be the minimum row index in which one the $n-1$ seeds is placed, and $r_2$ the maximum row index in which one of the $n-1$ seeds is placed.

If $r_2-r_1

If $r_1=0$ and $r_2=n-1$ then by the pigeon hole principle there is at least a row with no seeds. Put $r_i$ for such a row. The only squares that can be spanned by the seeds are those with one seed in their column in the rows $r_{i-1}$ and $r_{i+1}$. There are at most $\lfloor\frac{n-1}{2}\rfloor$ squares such as these in which case the number of squares spanned is $3\lfloor \frac{n-1}{2}\rfloor