AMC 10 Step by Step

2013 AMC 10B Problem 22

P21-25~7 minPrint

The regular octagon ABCDEFGHABCDEFGH has its center at JJ . Each of the vertices and the center are to be associated with one of the digits 11 through 99 , with each digit used once, in such a way that the sums of the numbers on the lines AJEAJE , BJFBJF , CJGCJG , and DJHDJH are all equal. In how many ways can this be done?

figure

Log in to save your progress.
Show solution without answering

Key insight

J is on every line, so the lines have equal sums exactly when the four opposite pairs have equal sums. The eight outer numbers add to 45 - J.

Solution

  1. Every line goes through the center JJ. So each line's sum is JJ plus the two opposite corners on it. The four line sums are equal exactly when the four opposite pairs {A,E}\{A, E\}, {B,F}\{B, F\}, {C,G}\{C, G\}, {D,H}\{D, H\} all have the same sum. Call that pair sum ss.
  2. The digits 11 to 99 add up to 4545. The eight corners use every digit except JJ, so they add up to 45−J45 - J. They form four pairs, each adding to ss, so 4s=45−J4s = 45 - J.
  3. That means 45−J45 - J must be a multiple of 44. Check each JJ:
JJ123456789
45−J45 - J444342414039383736

Only 4444, 4040 and 3636 are multiples of 44, so J=1J = 1, 55 or 99.
4. In each case, the pairs are forced. Pair the smallest remaining digit with the one that completes the sum, and repeat:
- J=1J = 1, s=11s = 11: {2,9},{3,8},{4,7},{5,6}\{2, 9\}, \{3, 8\}, \{4, 7\}, \{5, 6\}.
- J=5J = 5, s=10s = 10: {1,9},{2,8},{3,7},{4,6}\{1, 9\}, \{2, 8\}, \{3, 7\}, \{4, 6\}.
- J=9J = 9, s=9s = 9: {1,8},{2,7},{3,6},{4,5}\{1, 8\}, \{2, 7\}, \{3, 6\}, \{4, 5\}.
5. Now place the pairs. The four pairs go on the four lines in 4×3×2×1=244 \times 3 \times 2 \times 1 = 24 ways. On each line, either number of the pair can go at either end, which is 22 ways per line and 2×2×2×2=162 \times 2 \times 2 \times 2 = 16 ways for all four lines. That gives 24×16=38424 \times 16 = 384 ways for each choice of JJ.
6. Total: 3×384=11523 \times 384 = 1152.

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

Why this works

The center is shared by every line, so it drops out when you compare the sums. That turns "four equal line sums" into "four equal pair sums", which a quick divisibility check settles. After that, counting is just arranging: which pair goes on which line, and which way round.

Concise solution

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

Each of the four lines passes through the center JJ, so its sum is JJ plus the sum of a pair of opposite vertices. The lines have equal sums exactly when the four opposite pairs {A,E},{B,F},{C,G},{D,H}\{A, E\}, \{B, F\}, \{C, G\}, \{D, H\} all have the same pair-sum ss.

The eight vertex numbers are everything except JJ, so 4s=45−J4s = 45 - J. Thus 45−J45 - J must be a multiple of 44, which happens for J=1,5,9J = 1, 5, 9 only.

  • J=1J = 1: s=11s = 11, pairs {2,9},{3,8},{4,7},{5,6}\{2,9\}, \{3,8\}, \{4,7\}, \{5,6\}.
  • J=5J = 5: s=10s = 10, pairs {1,9},{2,8},{3,7},{4,6}\{1,9\}, \{2,8\}, \{3,7\}, \{4,6\}.
  • J=9J = 9: s=9s = 9, pairs {1,8},{2,7},{3,6},{4,5}\{1,8\}, \{2,7\}, \{3,6\}, \{4,5\}.

In every case the eight remaining digits split into four pairs in exactly one way. Assign the four pairs to the four lines: 4!=244! = 24 ways. Within each line, decide which end gets which number: 24=162^4 = 16 ways. Each case contributes 24⋅16=38424 \cdot 16 = 384 labelings.

Total: 3⋅384=11523 \cdot 384 = 1152.

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

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.