AMC 10 Step by Step

2025 AMC 10B Problem 23

P21-25~6 minPrint

A rectangular grid of squares has 141141 rows and 9191 columns. Each square has room for two numbers. Horace and Vera each fill in the grid by putting the numbers from 11 through 141×91=12,831141 \times 91 = 12{,}831 into the squares. Horace fills the grid horizontally: he puts 11 through 9191 in order from left to right into row 11 , puts 9292 through 182182 into row 22 in order from left to right, and continues similarly through row 141141 . Vera fills the grid vertically: she puts 11 through 141141 in order from top to bottom into column 11 , then 142142 through 282282 into column 22 in order from top to bottom, and continues similarly through column 9191 . How many squares get two copies of the same number?

Log in to save your progress.
Show solution without answering

Key insight

Horace writes 91(r−1) + c and Vera writes 141(c−1) + r. Setting them equal gives 9r = 14c − 5, solved by c = 1, 10, 19, …

Solution

1. Horace's number in a square. Use row rr (from 11 to 141141) and column cc (from 11 to 9191). Horace fills rows of 9191. Before row rr he has filled r−1r - 1 full rows, then he counts cc more:
H=91(r−1)+c.H = 91(r - 1) + c.
Check: row 22, column 11 gives 91+1=9291 + 1 = 92, as the problem says.

2. Vera's number in the same square. She fills columns of 141141. Before column cc she has filled c−1c - 1 full columns, then she counts rr more:
V=141(c−1)+r.V = 141(c - 1) + r.

3. Set them equal.
91r−91+c=141c−141+r.91r - 91 + c = 141c - 141 + r.
Move the rr's to the left and the cc's to the right: 90r−140c=−5090r - 140c = -50. Divide by 1010:
9r=14c−5.9r = 14c - 5.

4. Find the first few solutions by trying cc. We need 14c−514c - 5 to be a multiple of 99.
- c=1c = 1: 14−5=914 - 5 = 9. Yes, r=1r = 1.
- c=2c = 2 to 99: 23,37,51,65,79,93,107,12123, 37, 51, 65, 79, 93, 107, 121. None is a multiple of 99.
- c=10c = 10: 140−5=135=9×15140 - 5 = 135 = 9 \times 15. Yes, r=15r = 15.

Why a jump of 99? Adding 99 to cc adds 14×9=12614 \times 9 = 126 to 14c−514c - 5, and 126126 is a multiple of 99. So the pattern of which cc work repeats every 99 columns, and since only c=1c = 1 worked among 11 to 99, the solutions are exactly
c=1,10,19,…andr=1,15,29,…,c = 1, 10, 19, \ldots \quad\text{and}\quad r = 1, 15, 29, \ldots,
with cc going up by 99 and rr going up by 1414 each time.

  1. Stay inside the grid. The column can go up to 91=1+9×1091 = 1 + 9 \times 10, and the row up to 141=1+14×10141 = 1 + 14 \times 10. Both reach their limit at the same step, so the solutions are the steps 0,1,2,…,100, 1, 2, \ldots, 10: that is 1111 squares. The last one is the bottom-right corner, where both write 12,83112{,}831.

The answer is (C) 11\boxed{\textbf{(C)}\ 11}.

Why this works

Each way of filling gives a simple formula in the row and column, so "same number in a square" is one equation with two whole-number unknowns. Trying small values finds the first solution and the jump size, and the rest form an evenly spaced list. When counting an evenly spaced list, count the terms, not the gaps; the two corner squares (both hold 11 and 12,83112{,}831) are a good check that the list is right.

Concise solution

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

Index the square in row rr and column cc, with 1≤r≤1411 \le r \le 141 and 1≤c≤911 \le c \le 91.

Horace works in rows of 9191, so he finishes r−1r-1 complete rows and then counts cc squares:
H=91(r−1)+c.H = 91(r-1) + c .
Vera works in columns of 141141, so she finishes c−1c-1 complete columns and then counts rr squares:
V=141(c−1)+r.V = 141(c-1) + r .

Set H=VH = V:
91r−91+c=141c−141+r  ⟹  90r−140c=−50  ⟹  9r−14c=−5,91r - 91 + c = 141c - 141 + r \implies 90r - 140c = -50 \implies 9r - 14c = -5,
after dividing by 1010. So
9r=14c−5.9r = 14c - 5 .

Reduce modulo 99: 14c≡514c \equiv 5, i.e. 5c≡5(mod9)5c \equiv 5 \pmod 9, and 55 is invertible mod 99, so c≡1(mod9)c \equiv 1 \pmod 9. Write
c=9k+1  ⟹  9r=14(9k+1)−5=126k+9  ⟹  r=14k+1.c = 9k + 1 \implies 9r = 14(9k+1) - 5 = 126k + 9 \implies r = 14k + 1 .

Now impose the size of the grid:
1≤9k+1≤91  ⟹  0≤k≤10,1≤14k+1≤141  ⟹  0≤k≤10.1 \le 9k+1 \le 91 \implies 0 \le k \le 10, \qquad 1 \le 14k+1 \le 141 \implies 0 \le k \le 10 .

Both give the same range, so k=0,1,…,10k = 0, 1, \dots, 10: that is 1111 squares. They run from (r,c)=(1,1)(r,c) = (1,1), which holds 11 twice, to (141,91)(141, 91), which holds 12,83112{,}831 twice.

The answer is (C) 11\boxed{\textbf{(C)}\ 11}.

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.