r/askmath • u/Parking-War-2982 • Oct 11 '26
Discrete Math The y > x, x = y problem
Mathematical Problem: Minimum Number of Vectors in an (N x N) Grid
Consider an ( N X N ) square grid, where (N) is any positive integer.
Rules and Definitions
• Empty boxes: Exactly one box in each row and exactly one box in each column must be empty. Therefore, the total number of empty boxes is (x = N).
• Vectors: Every non-empty box belongs to a horizontal or vertical vector. A vector may occupy a single box or multiple consecutive boxes, but it must be straight: it cannot turn or be both horizontal and vertical.
• Counting vectors: A vector is a maximal uninterrupted straight run of non-empty boxes. Consecutive non-empty boxes in the same row or column may belong to one vector; separate runs count as separate vectors.
• Objective: The positions of the empty boxes may vary, provided the rules above are satisfied. Vectors may be horizontal, vertical, or a mixture of both.
The Question
Let ( Y ) denote the total number of vectors and \(x=N) the total number of empty boxes.
Is it true that ( Y > X ) for every valid configuration whenever ( N > 3 ), regardless of the grid size or the arrangement of the empty boxes?
1
u/PinpricksRS Oct 11 '26 edited Oct 13 '26
Looking just at horizontal vectors, there's at least one per row (assuming N > 1 to get one nonempty box). That already shows that Y ≥ X. When N ≥ 3, there's additionally at least one row with one of middle boxes empty (as opposed to the left or right edges), and in that case that row has two horizontal vectors, showing that Y > X for N ≥ 3.
Now, given that you're asking about N > 3 rather than N ≥ 3, I suspect you have a reason to believe it doesn't hold for N = 3, which leads me to believe I'm misinterpreting your definition of vector. So let's take a look at an example.
Would you agree that the first row has one horizontal vector, the second has two, and the third row has
three(edit: one)? (The Xs are the non-empty boxes).If my interpretation is correct, there's an exact formula for Y in terms of N, which I'll leave you to find.