DR.WANG Mathematics中文

2023 AMC 8 · Question 4

Number theory · prime · pattern recognition · problem-solving

Problem outline

Number a 7×77\times 7 grid in a spiral from 1 at (0,0)(0,0). Starting to the right, move right, up, left, down cyclically, with successive run lengths 1,1,2,2,3,3,…1,1,2,2,3,3,\ldots. How many of the entries at (−3,1),(−2,0),(0,−2),(1,−3)(-3,1),(-2,0),(0,-2),(1,-3) are prime?

Spiral grid with its first seven entries and four shaded cells.
Show answer and methods 1 methods

Answer

D. Three.

Method 1 Read from the corner squares
Topics usedSpiral patterns

The bottom-right corners of the three completed rings are 9,25,499,25,49, at (1,−1),(2,−2),(3,−3)(1,-1),(2,-2),(3,-3). Count backwards along a bottom side, then up the left side as needed.

On the middle ring the two entries are 25−2=2325-2=23 and 25−4−2=1925-4-2=19. On the outer ring they are 49−2=4749-2=47 and 49−6−4=3949-6-4=39.

The first three values 23,19,4723,19,47 are prime (test prime divisors up to their square roots), whereas 39=3×1339=3\times 13.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)