Example 4 Fill the numbers into the 8 squares surrounding the four sides of a chessboard, so that the sum of the absolute values of the differences between adjacent numbers in these 8 squares is maximized. Find this maximum value.
Solution
Solution: Let the sum of the absolute values of the differences between adjacent numbers in the 8 squares be . Note that rotating the 8 numbers in the outer ring of the chessboard does not change the value of . As shown in Figure 6, let the numbers in each square be denoted as . It is known that reaches its maximum value when are arranged in an alternating order of size.
Otherwise, assume that when is at its maximum, are in increasing order, i.e., . Then, we have:
Among these 8 numbers, if we take as the 4 largest numbers and as the 4 smallest numbers, then reaches its maximum value, and . Therefore, the maximum value of is 32.
As shown in Figure 7, there are multiple valid ways to fill in the numbers.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.