Skip to main content
deleted 455 characters in body
Source Link
Jaap Scherphuis
  • 53.9k
  • 7
  • 124
  • 215

This puzzle could have almost have been given the

tag, though that may have given a big hint.

You can think of each rectangle you pick as a move,

which you want to combine, like lights-out, such that each black square is picked an odd number of times, and each white square an even number of times. You can do this by picking the 8 rectangles consisting of every other row, and every other column, such that they intersect on only white squares. Those intersected white squares have obviously been picked twice. There are also white squares that are not included in any chosen rectangle, so are picked zero times. Every black square lies inside exactly one of the chosen rectangles.
If you then combine the parity results of those 8 rectangles, you get the parity of just the black squares because the white squares at the intersections are included twice and therefore do not affect the parity.

This solution is not unique. You can make the four horizontal rectangles wider, letting them overlap, as long as every other row is used in an odd number of rectangles, and the other rows an even number of times. The same is true for the set of four vertical rectangles.

Here is a proof for why this is the minimal number of rectangles:
(Thanks to loopywalt for plugging the final gap in the proof)

Consider two adjacent squares, one black, one white. If every rectangle we pick contains either both or neither of those squares, then we would not be able to distinguish a bean under the white square from a bean under the black square. Therefore at least one of our rectangles has an edge going inbetween the two squares. This is true for all adjacent squares, so we need the rectangles to cut along all the seams of the board.

Let's only consider adjacent squares that lie on the border of the board. There are 14 vertical pairs and 14 horizontal pairs that need to be cut. A rectangle can cut through at most 4 such pairs - and then it will cut only 4 horizontal pairs if it 8 units high, and only cut 4 vertical pairs if it is 8 units wide. If a rectangle does not cut 4 pairs of the same type, then it cuts only 2 or 0. This shows that 7 rectangles are not sufficient because each would have to cut 4 pairs of the same type, and the number of pairs of each type is not a multiple of 4. It can be done with 8 rectangles however, so 8 is optimal.

There exist optimal solutions in which some rectangles are used that are not 8 units long or wide. For example, you could use three horizontal rectangles consisting of rows 2, 4&5, and 7, three similar vertical rectangles, together with two 4x4 rectangles at diagonally opposite corners of the board.

Addendum:

I think a more interesting case than the 8x8 chessboard is an odd-sized board, say 7x7, where the corners of the board are black squares.

If you used the same method as above, you would use 8 rectangles, choosing rows/columns 1,3,5, and 7.
You can however use that method to determine the white squares in 6 rectangles (rows/columns 2,4,6) and combine that with the 7x7 rectangle to get the black squares using only 7 rectangles.

This puzzle could have almost have been given the

tag, though that may have given a big hint.

You can think of each rectangle you pick as a move,

which you want to combine, like lights-out, such that each black square is picked an odd number of times, and each white square an even number of times. You can do this by picking the 8 rectangles consisting of every other row, and every other column, such that they intersect on only white squares. Those intersected white squares have obviously been picked twice. There are also white squares that are not included in any chosen rectangle, so are picked zero times. Every black square lies inside exactly one of the chosen rectangles.
If you then combine the parity results of those 8 rectangles, you get the parity of just the black squares because the white squares at the intersections are included twice and therefore do not affect the parity.

This solution is not unique. You can make the four horizontal rectangles wider, letting them overlap, as long as every other row is used in an odd number of rectangles, and the other rows an even number of times. The same is true for the set of four vertical rectangles.

Here is a proof for why this is the minimal number of rectangles:
(Thanks to loopywalt for plugging the final gap in the proof)

Consider two adjacent squares, one black, one white. If every rectangle we pick contains either both or neither of those squares, then we would not be able to distinguish a bean under the white square from a bean under the black square. Therefore at least one of our rectangles has an edge going inbetween the two squares. This is true for all adjacent squares, so we need the rectangles to cut along all the seams of the board.

Let's only consider adjacent squares that lie on the border of the board. There are 14 vertical pairs and 14 horizontal pairs that need to be cut. A rectangle can cut through at most 4 such pairs - and then it will cut only 4 horizontal pairs if it 8 units high, and only cut 4 vertical pairs if it is 8 units wide. If a rectangle does not cut 4 pairs of the same type, then it cuts only 2 or 0. This shows that 7 rectangles are not sufficient because each would have to cut 4 pairs of the same type, and the number of pairs of each type is not a multiple of 4. It can be done with 8 rectangles however, so 8 is optimal.

There exist optimal solutions in which some rectangles are used that are not 8 units long or wide. For example, you could use three horizontal rectangles consisting of rows 2, 4&5, and 7, three similar vertical rectangles, together with two 4x4 rectangles at diagonally opposite corners of the board.

Addendum:

I think a more interesting case than the 8x8 chessboard is an odd-sized board, say 7x7, where the corners of the board are black squares.

If you used the same method as above, you would use 8 rectangles, choosing rows/columns 1,3,5, and 7.
You can however use that method to determine the white squares in 6 rectangles (rows/columns 2,4,6) and combine that with the 7x7 rectangle to get the black squares using only 7 rectangles.

This puzzle could have almost have been given the

tag, though that may have given a big hint.

You can think of each rectangle you pick as a move,

which you want to combine, like lights-out, such that each black square is picked an odd number of times, and each white square an even number of times. You can do this by picking the 8 rectangles consisting of every other row, and every other column, such that they intersect on only white squares. Those intersected white squares have obviously been picked twice. There are also white squares that are not included in any chosen rectangle, so are picked zero times. Every black square lies inside exactly one of the chosen rectangles.
If you then combine the parity results of those 8 rectangles, you get the parity of just the black squares because the white squares at the intersections are included twice and therefore do not affect the parity.

This solution is not unique. You can make the four horizontal rectangles wider, letting them overlap, as long as every other row is used in an odd number of rectangles, and the other rows an even number of times. The same is true for the set of four vertical rectangles.

Here is a proof for why this is the minimal number of rectangles:
(Thanks to loopywalt for plugging the final gap in the proof)

Consider two adjacent squares, one black, one white. If every rectangle we pick contains either both or neither of those squares, then we would not be able to distinguish a bean under the white square from a bean under the black square. Therefore at least one of our rectangles has an edge going inbetween the two squares. This is true for all adjacent squares, so we need the rectangles to cut along all the seams of the board.

Let's only consider adjacent squares that lie on the border of the board. There are 14 vertical pairs and 14 horizontal pairs that need to be cut. A rectangle can cut through at most 4 such pairs - and then it will cut only 4 horizontal pairs if it 8 units high, and only cut 4 vertical pairs if it is 8 units wide. If a rectangle does not cut 4 pairs of the same type, then it cuts only 2 or 0. This shows that 7 rectangles are not sufficient because each would have to cut 4 pairs of the same type, and the number of pairs of each type is not a multiple of 4. It can be done with 8 rectangles however, so 8 is optimal.

There exist optimal solutions in which some rectangles are used that are not 8 units long or wide. For example, you could use three horizontal rectangles consisting of rows 2, 4&5, and 7, three similar vertical rectangles, together with two 4x4 rectangles at diagonally opposite corners of the board.

added 144 characters in body
Source Link
Jaap Scherphuis
  • 53.9k
  • 7
  • 124
  • 215

Here is an argumenta proof for why this is the minimal number of rectangles:
(Thanks to loopywalt for plugging the final gap in the proof)

Consider two adjacent squares, one black, one white. If every rectangle we pick contains either both or neither of those squares, then we would not be able to distinguish a bean under the white square from a bean under the black square. Therefore at least one of our rectangles has an edge going in betweeninbetween the two squares.
This This is true for all adjacent squares, so we need the rectangles to cut along all the seams of the board. The 7

Let's only consider adjacent squares that lie on the border of the board. There are 14 vertical pairs and 14 horizontal seams canpairs that need to be cut using 4 rectangles that are 8 squares wide, but not with fewer rectangles. Similarly the 7 vertical seamsA rectangle can be done withcut through at most 4 rectangles that aresuch pairs - and then it will cut only 4 horizontal pairs if it 8 squaresunits high, and no fewer.
Note however that no rectangle can do both. Furthermore,only cut 4 vertical pairs if you use any rectangle thatit is less than 8 squares in both dimensionsunits wide. If a rectangle does not cut 4 pairs of the same type, then it will leave seamscuts only partially cut, and you will need further2 or 0. This shows that 7 rectangles are not sufficient because each would have to complete those seams. Though this last assertion seems obviouscut 4 pairs of the same type, I have no proof for itand the number of pairs of each type is not a multiple of 4. It seems to me there shouldcan be some simple proof..done with 8 rectangles however, so 8 is optimal.

There exist optimal solutions in which some smaller rectangles are used that are not 8 units long or wide. For example, you could use three horizontal rectangles consisting of rows 2, 4&5, and 7, three similar vertical rectangles, together with two 4x4 rectangles at diagonally opposite corners of the board.

Here is an argument for why this is the minimal number of rectangles:

Consider two adjacent squares, one black, one white. If every rectangle we pick contains either both or neither of those squares, then we would not be able to distinguish a bean under the white square from a bean under the black square. Therefore at least one of our rectangles has an edge going in between the two squares.
This is true for all adjacent squares, so we need the rectangles to cut along all the seams of the board. The 7 horizontal seams can be cut using 4 rectangles that are 8 squares wide, but not with fewer rectangles. Similarly the 7 vertical seams can be done with 4 rectangles that are 8 squares high, and no fewer.
Note however that no rectangle can do both. Furthermore, if you use any rectangle that is less than 8 squares in both dimensions, then it will leave seams only partially cut, and you will need further rectangles to complete those seams. Though this last assertion seems obvious, I have no proof for it. It seems to me there should be some simple proof...

There exist optimal solutions in which some smaller rectangles are used. For example, you could use three horizontal rectangles consisting of rows 2, 4&5, and 7, three similar vertical rectangles, together with two 4x4 rectangles at diagonally opposite corners of the board.

Here is a proof for why this is the minimal number of rectangles:
(Thanks to loopywalt for plugging the final gap in the proof)

Consider two adjacent squares, one black, one white. If every rectangle we pick contains either both or neither of those squares, then we would not be able to distinguish a bean under the white square from a bean under the black square. Therefore at least one of our rectangles has an edge going inbetween the two squares. This is true for all adjacent squares, so we need the rectangles to cut along all the seams of the board.

Let's only consider adjacent squares that lie on the border of the board. There are 14 vertical pairs and 14 horizontal pairs that need to be cut. A rectangle can cut through at most 4 such pairs - and then it will cut only 4 horizontal pairs if it 8 units high, and only cut 4 vertical pairs if it is 8 units wide. If a rectangle does not cut 4 pairs of the same type, then it cuts only 2 or 0. This shows that 7 rectangles are not sufficient because each would have to cut 4 pairs of the same type, and the number of pairs of each type is not a multiple of 4. It can be done with 8 rectangles however, so 8 is optimal.

There exist optimal solutions in which some rectangles are used that are not 8 units long or wide. For example, you could use three horizontal rectangles consisting of rows 2, 4&5, and 7, three similar vertical rectangles, together with two 4x4 rectangles at diagonally opposite corners of the board.

added 275 characters in body
Source Link
Jaap Scherphuis
  • 53.9k
  • 7
  • 124
  • 215

This puzzle could have almost have been given the

tag, though that may have given a big hint.

You can think of each rectangle you pick as a move,

which you want to combine, like lights-out, such that each black square is picked an odd number of times, and each white square an even number of times. You can do this by picking the 8 rectangles consisting of every other row, and every other column, such that they intersect on only white squares. Those intersected white squares have obviously been picked twice. There are also white squares that are not included in any chosen rectangle, so are picked zero times. Every black square lies inside exactly one of the chosen rectangles.
If you then combine the parity results of those 8 rectangles, you get the parity of just the black squares because the white squares at the intersections are included twice and therefore do not affect the parity.

This solution is not unique. You can make the four horizontal rectangles wider, letting them overlap, as long as every other row is used in an odd number of rectangles, and the other rows an even number of times. The same is true for the set of four vertical rectangles.

Here is an argument for why this is the minimal number of rectangles:

Consider two adjacent squares, one black, one white. If every rectangle we pick contains either both or neither of those squares, then we would not be able to distinguish a bean under the white square from a bean under the black square. Therefore at least one of our rectangles has an edge going in between the two squares.
This is true for all adjacent squares, so we need the rectangles to cut along all the seams of the board. The 7 horizontal seams can be cut using 4 rectangles that are 8 squares wide, but not with fewer rectangles. Similarly the 7 vertical seams can be done with 4 rectangles that are 8 squares high, and no fewer.
Note however that no rectangle can do both. Furthermore, if you use any rectangle that is less than 8 squares in both dimensions, then it will leave seams only partially cut, and you will need further rectangles to complete those seams. (ThoughThough this last assertion seems obvious, I have no proof for it. It seems to me there should be some simple proof...)

There exist optimal solutions in which some smaller rectangles are used. For example, you could use three horizontal rectangles consisting of rows 2, 4&5, and 7, three similar vertical rectangles, together with two 4x4 rectangles at diagonally opposite corners of the board.

Addendum:

I think a more interesting case than the 8x8 chessboard is an odd-sized board, say 7x7, where the corners of the board are black squares.

If you used the same method as above, you would use 8 rectangles, choosing rows/columns 1,3,5, and 7.
You can however use that method to determine the white squares in 6 rectangles (rows/columns 2,4,6) and combine that with the 7x7 rectangle to get the black squares using only 7 rectangles.

This puzzle could have almost have been given the

tag, though that may have given a big hint.

You can think of each rectangle you pick as a move,

which you want to combine, like lights-out, such that each black square is picked an odd number of times, and each white square an even number of times. You can do this by picking the 8 rectangles consisting of every other row, and every other column, such that they intersect on only white squares. Those intersected white squares have obviously been picked twice. There are also white squares that are not included in any chosen rectangle, so are picked zero times. Every black square lies inside exactly one of the chosen rectangles.
If you then combine the parity results of those 8 rectangles, you get the parity of just the black squares because the white squares at the intersections are included twice and therefore do not affect the parity.

This solution is not unique. You can make the four horizontal rectangles wider, letting them overlap, as long as every other row is used in an odd number of rectangles, and the other rows an even number of times. The same is true for the set of four vertical rectangles.

Here is an argument for why this is the minimal number of rectangles:

Consider two adjacent squares, one black, one white. If every rectangle we pick contains either both or neither of those squares, then we would not be able to distinguish a bean under the white square from a bean under the black square. Therefore at least one of our rectangles has an edge going in between the two squares.
This is true for all adjacent squares, so we need the rectangles to cut along all the seams of the board. The 7 horizontal seams can be cut using 4 rectangles that are 8 squares wide, but not with fewer rectangles. Similarly the 7 vertical seams can be done with 4 rectangles that are 8 squares high, and no fewer.
Note however that no rectangle can do both. Furthermore, if you use any rectangle that is less than 8 squares in both dimensions, then it will leave seams only partially cut, and you will need further rectangles to complete those seams. (Though this last assertion seems obvious, I have no proof for it. It seems to me there should be some simple proof...)

Addendum:

I think a more interesting case than the 8x8 chessboard is an odd-sized board, say 7x7, where the corners of the board are black squares.

If you used the same method as above, you would use 8 rectangles, choosing rows/columns 1,3,5, and 7.
You can however use that method to determine the white squares in 6 rectangles (rows/columns 2,4,6) and combine that with the 7x7 rectangle to get the black squares using only 7 rectangles.

This puzzle could have almost have been given the

tag, though that may have given a big hint.

You can think of each rectangle you pick as a move,

which you want to combine, like lights-out, such that each black square is picked an odd number of times, and each white square an even number of times. You can do this by picking the 8 rectangles consisting of every other row, and every other column, such that they intersect on only white squares. Those intersected white squares have obviously been picked twice. There are also white squares that are not included in any chosen rectangle, so are picked zero times. Every black square lies inside exactly one of the chosen rectangles.
If you then combine the parity results of those 8 rectangles, you get the parity of just the black squares because the white squares at the intersections are included twice and therefore do not affect the parity.

This solution is not unique. You can make the four horizontal rectangles wider, letting them overlap, as long as every other row is used in an odd number of rectangles, and the other rows an even number of times. The same is true for the set of four vertical rectangles.

Here is an argument for why this is the minimal number of rectangles:

Consider two adjacent squares, one black, one white. If every rectangle we pick contains either both or neither of those squares, then we would not be able to distinguish a bean under the white square from a bean under the black square. Therefore at least one of our rectangles has an edge going in between the two squares.
This is true for all adjacent squares, so we need the rectangles to cut along all the seams of the board. The 7 horizontal seams can be cut using 4 rectangles that are 8 squares wide, but not with fewer rectangles. Similarly the 7 vertical seams can be done with 4 rectangles that are 8 squares high, and no fewer.
Note however that no rectangle can do both. Furthermore, if you use any rectangle that is less than 8 squares in both dimensions, then it will leave seams only partially cut, and you will need further rectangles to complete those seams. Though this last assertion seems obvious, I have no proof for it. It seems to me there should be some simple proof...

There exist optimal solutions in which some smaller rectangles are used. For example, you could use three horizontal rectangles consisting of rows 2, 4&5, and 7, three similar vertical rectangles, together with two 4x4 rectangles at diagonally opposite corners of the board.

Addendum:

I think a more interesting case than the 8x8 chessboard is an odd-sized board, say 7x7, where the corners of the board are black squares.

If you used the same method as above, you would use 8 rectangles, choosing rows/columns 1,3,5, and 7.
You can however use that method to determine the white squares in 6 rectangles (rows/columns 2,4,6) and combine that with the 7x7 rectangle to get the black squares using only 7 rectangles.

added 1490 characters in body
Source Link
Jaap Scherphuis
  • 53.9k
  • 7
  • 124
  • 215
Loading
added 1490 characters in body
Source Link
Jaap Scherphuis
  • 53.9k
  • 7
  • 124
  • 215
Loading
added 1490 characters in body
Source Link
Jaap Scherphuis
  • 53.9k
  • 7
  • 124
  • 215
Loading
Source Link
Jaap Scherphuis
  • 53.9k
  • 7
  • 124
  • 215
Loading