Skip to main content

2013 AMC 12A Problem 20

Problem 20 of 25HarderNumber TheoryCounting & Probability

Let SS be the set {1,2,3,,19}.\{1, 2, 3, \ldots, 19\}. For a,a, bS,b \in S, define aba \succ b to mean that either 0<ab90 \lt a - b \le 9 or ba>9.b - a \gt 9. How many ordered triples (x,y,z)(x, y, z) of elements of SS have the property that xy,x \succ y, yz,y \succ z, and zx?z \succ x?

Answer choices

Show solution

Solution

Reading the elements modulo 19,19, the relation aba \succ b holds exactly when 0<(ab)mod199.0 \lt (a - b) \bmod 19 \le 9. There are 1919 choices for x.x. Once xx is fixed, take y=x+iy = x + i for some 1i9.1 \le i \le 9. Then zz must satisfy x+10zx+9+i,x + 10 \le z \le x + 9 + i, giving ii choices. The total is 19(1+2++9)=194519(1 + 2 + \cdots + 9) = 19\cdot 45 =855.= 855. Thus, the correct answer is B.

More practice

Concepts: modular arithmetic · basic counting

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.