AMC 10 Step by Step

2021 AMC 10B Problem 8

P1-10~4 minPrint

Mr. Zhou places all the integers from 11 to 225225 into a 1515 by 1515 grid. He places 11 in the middle square (eighth row and eighth column) and places other numbers one by one clockwise, as shown in part in the diagram below. What is the sum of the greatest number and the least number that appear in the second row from the top? figure

Log in to save your progress.
Show solution without answering

Key insight

Odd squares sit at the top-right corners of the rings. 169 ends the 13 by 13 ring in row 2, so row 2 holds 157 to 170, plus 210.

Solution

Step 1: learn the pattern from the picture.

  1. In the diagram, 11 is the center. The numbers 99 and 2525 are at the top-right corners of the 3×33 \times 3 and 5×55 \times 5 squares around 11. So each odd square finishes a full ring, and it sits in the top-right corner of that ring.
  2. After 99, the next number 1010 is one step to the right, and then the numbers go down the right side, left along the bottom, up the left side, and right along the top, ending at 2525 in the top-right corner.

Step 2: find the ring that ends at 169=132169 = 13^2.

  1. The 15×1515 \times 15 grid has center at row 88, column 88. The 13×1313 \times 13 square around the center uses rows 22 to 1414 and columns 22 to 1414.
  2. So 169169 is in its top-right corner: row 22, column 1414.
  3. The top side of this ring is the last thing filled, going left to right. It has 1313 cells (columns 22 to 1414), ending at 169169. So it holds 157,158,…,169157, 158, \ldots, 169 in row 22.

Step 3: fill the outer ring, 170170 to 225225.

  1. 170170 goes one step to the right of 169169: row 22, column 1515.
  2. 171171 to 183183 go down the right column to the bottom corner (row 1515).
  3. 184184 to 197197 go left along the bottom row to column 11.
  4. 198198 to 211211 go up column 11, ending at row 11. So 211211 is in row 11, and the number just below it, 210210, is in row 22, column 11.
  5. 212212 to 225225 fill the rest of row 11.

Step 4: read off row 2.

  1. From left to right, row 22 is: 210, 157,158,…,169, 170210, \ 157, 158, \ldots, 169, \ 170.
  2. The least number is 157157 and the greatest is 210210. Their sum is 157+210=367157 + 210 = 367.

The answer is (A) 367\boxed{\textbf{(A)}\ 367}.

Why this works

In a square spiral, the odd squares 1,9,25,49,…1, 9, 25, 49, \ldots mark the corners where each ring ends. Find the corner nearest to what you want, then count forward or backward from it. Always read the direction of travel from the given picture, since spirals can turn either way.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Read the pattern off the diagram: 11, 99 and 2525 each sit at the top-right corner of the 1×11\times1, 3×33\times3 and 5×55\times5 block centered at 11. So every odd square (2k+1)2(2k+1)^2 finishes its layer at the top-right corner of a (2k+1)×(2k+1)(2k+1)\times(2k+1) block, and the next number starts the new layer one cell to the right, then runs down, then left along the bottom, then up, then right along the top.

The 13×1313 \times 13 block occupies rows 22 through 1414 and columns 22 through 1414, so 169169 is in row 22, column 1414. Its top row (row 22, columns 22–1414) reads 157,158,…,169157, 158, \dots, 169.

The outer layer: 170170 goes to row 22, column 1515; 171171–183183 run down the right column; 184184–197197 run left along row 1515; 198198–211211 run up column 11, ending with 211211 in the top-left corner; and 212212–225225 fill row 11. Thus row 22, column 11 holds 210210.

Row 22 from left to right: 210,157,158,…,169,170210, 157, 158, \dots, 169, 170. Its least number is 157157 and its greatest is 210210, with sum 367367.

The answer is (A) 367\boxed{\textbf{(A)}\ 367}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.