All the numbers are written in a array of squares, one number in each square, in such a way that if two numbers are consecutive then they occupy squares that share an edge. The numbers in the four corners add up to . What is the number in the center?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
Color the grid like a checkerboard. Consecutive numbers alternate colors, so the five odd numbers fill the four corners and the center. The center is 25 - 18 = 7.
Solution
1. Color the grid like a checkerboard, with the corners black. Then the corners and the center are black ( squares), and the middle-of-edge squares are white.
2. Two squares that share an edge always have different colors.
3. The numbers walk from square to neighboring square, so the colors take turns: if is on one color, is on the other, is back on the first, and so on. So all the odd numbers share one color, and all the even numbers share the other.
4. There are odd numbers () and even numbers. Only the black color has squares, so the odd numbers fill the black squares: the four corners and the center.
5. All five odd numbers add to . The corners hold four of them, adding to . The center holds the one left over:
6. This really can happen, for example:
Here the corners add to and the center is .
The answer is .
Why this works
A path that moves one square at a time on a checkerboard switches color at every step, so odd steps land on one color and even steps on the other. When one color has more squares than the other, the larger group of numbers is forced onto it. Remember this coloring trick for any grid problem where consecutive numbers must be neighbors.
The trap
Trying to build arrangements by trial and error. The coloring idea finds the center without building anything.
Concise solution
Color the board like a checkerboard with the corners black. Then the four corners and the center are black ( squares) and the four edge-middle squares are white ( squares). Squares sharing an edge always have opposite colors.
Consecutive numbers sit on edge-adjacent squares, so as we go the colors alternate. Hence all the odd numbers are on one color and all the even numbers on the other. There are five odd numbers () and only four even ones, so the odd numbers must occupy the five black squares: the four corners and the center.
The odd numbers add to . The corners hold four of them with sum , so the center holds .
Such a filling exists, for example
with corners .
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 5: More With Combinations (§5.2)
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Introduction to Algebra, Chapter 20: Special Functions (§20.3)
Techniques
Use an invariant, parity, or coloring argument