Peter starts with a 2 0 × 1 8 grid of white squares and colors some of them blue. Then, in each white square not colored, he writes down the number of blue squares that share an edge with it.
Determine the maximum possible sum of such numbers he writes down.
Here is a 3 × 4 example of how to write down the numbers and get their sum.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
If you swap blue squares and white squares, the sum doesnt change! The number in the white squares is the number of blue squares adjacet to it, conversely, the amout of times a blue square gets "counted" is the number of white squares adjacent to it. So if the way to get the maximum sum was by filling less then half of the white squares, then you could swap whites and blues to get another "oposite" way that fills more than half. But if that happens, its clear that there must be at least 1 blue square with 2 blue squares adjacent to it, and if you remove it, the sum can't decrease. So there must be a way to get the maximal sum that fills up exatly half of the white squares. From here, its preety clear the checkerboard pattern maximizes the sum, as it maximkzes the number of 4s and minimizes the mumer of 2s
Let x be the sum of all numbers that Peter writes down.
Since the number in white square is the number of the blue square that share an edge with it, x is basically just number of edge of the overall blue shape if the edge is not the perimeter of the 2 0 × 1 8 rectangle (perimeter of the blue shape − the intersection between the perimeter of the blue shape with the perimeter of 2 0 × 1 8 rectangle)
Theoretical maximum of x is if all the sides of the small squares inside the rectangle are the edge of the blue shape, which can be achieved if it is chess-board shape.
In general, for any m × n rectangle, the maximum x is ( m − 1 ) n + m ( n − 1 ) = 2 m n − m − n
Hence, the maximum x for 2 0 × 1 8 rectangle is 2 × 2 0 × 1 8 − 2 0 − 1 8 = 6 8 2
Great way to look at it!
Log in to reply
Thank you :)
It proves that 682 is maximum by observation
Problem Loading...
Note Loading...
Set Loading...
Peter should be able to maximize the sum of the numbers by painting half the squares blue in a checkerboard (or chess board) pattern. This would mean all the white squares not on one of the edges would be adjacent to four blue squares, the non-corner white squares on an edge would be adjacent to three blue squares, and the corner white squares would be adjacent to two blue squares. (A smaller example is shown below.)
Internal squares: There are 1 8 × 1 6 internal squares; half would be white. Their sum would be 2 1 8 × 1 6 × 4 = 5 7 6 .
Edge squares: There are ( 2 0 × 1 8 ) − ( 1 8 × 1 6 ) − 4 edge squares; half would be white. Their sum would be 2 ( 2 0 × 1 8 ) − ( 1 8 × 1 6 ) − 4 × 3 = 1 0 2 .
Corner squares: There are 4 corner squares, half would be white. Their sum would be 2 4 × 2 = 4 .
So the sum of all numbers would be 5 7 6 + 1 0 2 + 4 = 6 8 2
I have no strict proof that this is a maximum; but informally at least, if we change any current white square to blue, we would simply remove the white square's number without increasing the numbers in any other white squares (because white squares aren't adjacent to other white squares), so the total would decrease; and if we change any current blue square to white, that square would be numbered zero, and the four adjacent white squares would have their numbers reduced by one, so again the total would decrease.
Anyone have suggestions for a formal proof that this is indeed a maximum?