How many diagonal rectangles are there in an 8x8 chessboard such that each square does not share a row or column with any other of the 3 squares?
The picture has some examples of valid rectangles.
I got 75 rectangles, but am curious what other people got and how you approached it. I will show my work if you would like.
Question modified by Elements of Discrete Mathematics, 3.35 - CL Liu. I purchased the book from a used book store and have been working through problems in my free time.
>>8913281
Could you clarify what you mean by each square does not share a row or column with any other of the 3 squares?
>>8913289
Sure, for example if you pick the filled in square in the picture, then the squares with lines in them cannot be picked to complete the diagonal rectangle
>>8913299
Thanks. Can I pick say G8H7? Thats at the border, and the red lines that you drew for first picture would be out of bounds. Is that allowed?
>>8913325
The red lines can go out of bounds, but you cannot pick a square out of bounds
>>8913332
For example, if you picked a corner square, you couldn't pick any of these squares
>>8913332
Thanks. Let me try this.
Longest diagonal from A8 to H1 has 8 squares, which is itself a rectangle. Then there are two 7 squared rectangles, three 6 six squared, and so on. The total is 28 rectangles.
Moving on to the next diagonal B8 to H2, the longest rectangle is now only 7 squares long and we move the count "up" since there are no more eight squared rectangles. And so on we subtract by 7, yielding 21. For the next diagonal, we move it "up" again, and subtract by 6, yielding 15. And so on until the final diagonal G8H7. But B8 to H2 until H8 to H7 is mirrored on the other side of A8 to H1. So we get
28 + 2(21+15+10+6+3+1) = 140
Now we mirror the whole board in the other diagonal direction e.g. longest diagonal now A1 to H8. So I got 2x140 = 280.
t. non-math major
>>8913281
I got 192. I may have made some mistakes though.
I basically brute-forced it, but I noticed symmetry between rectangles on dark squares and rectangles on the light squares, so I counted the light square rectangles and doubled that result.
To get a better look at it I rotated the board 45 degrees counter clockwise, and considered each 4-square as a square. So (after rotation and considering only the light colors) there is a stack of squares. See pic. Any rectangle must be made of these squares. Then I just counted the rectangles for each possible size.
>>8913490
Just realized this is wrong. I counted illegal rectangles. After accounting for the rules, I got 136