Why can't I reach every cell in a 3x3 square?

Click For Summary

Discussion Overview

The discussion revolves around the problem of identifying "problem cells" in a 3x3 or 5x5 grid where a line can be drawn to loop through every cell. Participants explore the conditions under which certain starting cells prevent reaching all other cells, particularly focusing on odd-numbered grids and the mathematical expression of these conditions.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant notes that in even-numbered squares (2x2, 4x4), there are no problem cells, while in a 3x3 square there are 4 problem cells and in a 5x5 square there are 12.
  • Another participant suggests that the issue may relate to the existence of Hamiltonian paths, indicating that it is difficult to determine starting positions that allow for such paths.
  • A participant proposes that in an NxN square where N is odd, the cells whose row and column numbers add to an odd number are problem cells, suggesting a formula for the number of problem cells as (N^2 - 1)/2.
  • One participant expresses uncertainty about whether there are starting points that definitively lead to no solution, asking for examples of such cases.
  • Another participant draws a parallel to the Seven Bridges of Königsberg, implying a connection to the problem's complexity.
  • A participant mentions using a checkerboard pattern to analyze the problem, suggesting that connections between cells alternate colors and that this may inform the distribution of problem cells.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and agreement regarding the existence and identification of problem cells. Some propose mathematical patterns and formulas, while others question the clarity and completeness of the examples provided. The discussion remains unresolved, with multiple competing views on the nature of the problem.

Contextual Notes

Participants have not reached consensus on the proof of the proposed formula for problem cells or the conditions under which certain starting points fail to reach all cells. There are also unresolved questions about the implications of Hamiltonian paths in this context.

musicgold
Messages
303
Reaction score
19
Hi,

I was playing this game in which you start from any cells of a 3x3 or 5x5 square and draw a line that loops through every cell in the box. The line can go only through a vertical or horizontal side (not diagonally). When you start from certain cells (problem cells), you can't reach at least one cell. In the attached file, I have shown such paths. The cells that can't be reached are shown with a question mark.

I am trying to find out how to express mathematically a.) why a particular cell can't reach every cell in a box, and 2) how many problem cells will be in a nxn matrix, where n is an odd number.

This is what I have noticed so far:
1. With even numbered squares such as 2x2 and 4x4, have no problem cells.
2. The 3x3 square has 4 problem cells and the 5x5 square has 12 problem cells.
3. Corner cells and the center cell (in the case of 3x3 and 5x5) are never problem cells.
4. The problem situation occurs when the line enters a T junction with empty cells on either sides.


How should I approach this problem?

Thanks.
 

Attachments

Mathematics news on Phys.org
Attached Files

When I click on it. a new page opens up - blank!
 
bigfooted said:
and it is difficult
In this special case: It always works if at least one of the side lengths is even because they have a Hamilton cycle and you can just follow that no matter where you start. Otherwise there are some starting positions that don't work.
 
mathman said:
When I click on it. a new page opens up - blank!

That means it downloads the file in the default download folder of your browser.
 
I have done some more progress on this problem.
5. If I name each cell of the box using the Row x column convention, I can see a pattern. The top left cell is named as (1,1) , the next cell on the right as (1,2) , the first cell in the second row as (2,1) and so on. The cells whose row and column numbers add to an odd number are problem cells.

6. Based on that, I think, in a NxN square, where N is an odd number, there will be
## (N^2 -1 )/2 ##. I am not sure how to prove this though.

 
You are showing particular paths that can not be completed. But it's not clear to me that there are any such problem and starting point where there is no solution even if one is free to pick the right path. Do you have an example like that?

EDIT: I take it back. I do not see any solution to your 3x3 example. I think I have trouble with all of the odd x odd examples.
 
musicgold said:
I have done some more progress on this problem.
5. If I name each cell of the box using the Row x column convention, I can see a pattern. The top left cell is named as (1,1) , the next cell on the right as (1,2) , the first cell in the second row as (2,1) and so on. The cells whose row and column numbers add to an odd number are problem cells.

6. Based on that, I think, in a NxN square, where N is an odd number, there will be
## (N^2 -1 )/2 ##. I am not sure how to prove this though.
Color the field with a checkerboard pattern. Every connection goes from black to white or vice versa. Now consider how many fields of each color there are.
 
  • Like
Likes   Reactions: WWGD and jbriggs444

Similar threads

  • · Replies 68 ·
3
Replies
68
Views
12K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 9 ·
Replies
9
Views
10K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 4 ·
Replies
4
Views
11K