11

Can you put 14 crosses in a 6 by 6 grid so that there are an even number of crosses on each row and column?

An elementary school teacher asked me for help with this. Below is a photo of the book they are using. The text is in Swedish and it says "Draw 14 crosses in the grid so that there is an even number of crosses in each horizontal and vertical row". I already gave my answer to the teacher, so why don't you try to solve it!

6 by 6 grid

Mankka
  • 221
  • 2
  • 5
  • 3
    Here is a quick html grid you can play with instead of paper: http://dlabs.me/14grid.html – Asleepace Jan 17 '18 at 20:58
  • The way you define the problem "Draw 14 crosses in the grid so that there is an even number of crosses in each horizontal and vertical row" is more akin to the 8 queens problem than what people are doing here, this is being solved as "Draw 14 crosses in the grid so that there are the same number of rows with each number of crosses horizontally as there are vertically" As a side note it's not possible to solve with the way the question is actually worded. – Andrew Jan 17 '18 at 21:53
  • I am now realizing i was reading even as equal and the question may have meant even (not odd) – Andrew Jan 17 '18 at 22:14

11 Answers11

12

I believe there are many solutions. One of them is this:

X X X X _ _
X X _ _ _ _
X _ X _ _ _
X _ _ X _ _
_ _ _ _ X X
_ _ _ _ X X

athin
  • 34,177
  • 4
  • 70
  • 221
  • 3
    Once we have a valid solution, swapping any two rows or any two cols gives another valid solution. I think we should mark solutions which can be related by this kind of permutation equivalent, and if we do so, I don't think there are many solutions that are not equivalent. Your solution has the bonus that there are even numbers on the diagonal as well. – Weijun Zhou Jan 17 '18 at 08:47
  • 1
    Btw, I just updated the solution because the new one is nicer lol. If you say the main diagonal, then it's true they are also even. Let see if we can do that for all diagonals. – athin Jan 17 '18 at 08:50
  • It looks like it's even for all the diagonals with an even number of items. – Jakob Lovern Jan 17 '18 at 22:12
10

I tried to make the solution as compact as possible

 X X X _ X _
 X X _ X X _
 X X X X _ _
 X X _ _ _ _
 _ _ _ _ _ _
 _ _ _ _ _ _

This one is 4x5. It is impossible to fit in 4x4, 3x5, or 3x6
Kruga
  • 3,662
  • 17
  • 30
7

I think this solution is independant from the ones already published.

Consider those blocks:

A

X X _
X _ X
_ X X

B

X X
X X

C

X X
X X

Place them anywere on your 6x6 board, and your get dozens of solutions.

Evargalo
  • 6,270
  • 1
  • 19
  • 39
4

Two symmetrical 5x5 solutions:

X _ X X X
_ _ _ X X
X _ _ _ X
X X _ _ _
X X X _ X

and

_ _ _ X X
_ X X X X
_ X _ X _
X X X X _
X X _ _ _

Vincent
  • 141
  • 3
2

X X _ _ X X
_ X X _ _ _
_ _ X X _ _
_ _ _ X X _
_ _ _ _ X X
X _ _ _ X _

Even number of "X" in each row and column...

JeffC
  • 154
  • 5
Sid
  • 131
  • 6
2

Another Solution is this one. Symmetric and Pleasing to the eyes.

enter image description here

Rubio
  • 41,676
  • 6
  • 90
  • 242
23nigam
  • 121
  • 2
1

Another solution, which I believe is non-equivalent to any existing ones:

X X X X X X
X X X X _ _
X _ _ _ X _
X _ _ _ _ X
_ _ _ _ _ _
_ _ _ _ _ _

BlueHairedMeerkat
  • 2,036
  • 9
  • 14
1

This is, in my opinion, the simplest solution. Not "beautiful", just simply valid, but unique compared to others.

X X _ X X _
_ _ X _ X _
X X X X _ _
_ _ _ _ X X
_ _ _ _ _ _
_ _ _ _ X X
EKons
  • 1,253
  • 12
  • 26
0

There are plenty of solutions, a piece of code maybe able to find them all. All you have to have is:

5 columns with 2 crosses and
1 column with 4 crosses

and therefore (1 row with 4 crosses and 5 rows with 2 crosses)

An example:

x - - x - -
x x - x - x
- x x - - -
- - x - - x
- - x - x -
- - x - x -

Rubio
  • 41,676
  • 6
  • 90
  • 242
Petrichor
  • 101
  • 3
0

Following the "Air Bud" rules of lateral thinking...

X _ _ _ _ X
_ X _ _ X _
_ _ X X _ _
XX _ X X _ _
_ X _ _ X _
X _ _ _ _ X Where there are two crosses in the cell in the first column.

Hylianpuffball
  • 276
  • 1
  • 2
0

Kept making mistakes at this, so now the 14grid.html will check for valid solutions!

enter image description here

Rubio
  • 41,676
  • 6
  • 90
  • 242
Asleepace
  • 101
  • 2