AMC 10 Step by Step

2025 AMC 10B Problem 9

P1-10~5 minPrint

How many ordered triples of integers (x,y,z)(x, y, z) satisfy the following system of inequalities?

−x−y−z≤−2−x+y+z≤2x−y+z≤2x+y−z≤2\begin{align*} -x-y-z&\le -2\\ -x+y+z&\le 2\\ x-y+z&\le 2\\ x+y-z&\le 2 \end{align*}

Log in to save your progress.
Show solution without answering

Key insight

Add the inequalities in pairs to trap x, y and z between 0 and 2. Then list the few triples, sorted by their sum.

Solution

There could be infinitely many triples, so first find a small box that all the answers must lie in. Adding two inequalities together often makes variables cancel, so try that.

Step 1: upper bounds. Add the third and fourth inequalities:
(x−y+z)+(x+y−z)≤2+2,so2x≤4,x≤2.(x - y + z) + (x + y - z) \le 2 + 2, \quad\text{so}\quad 2x \le 4, \quad x \le 2.
The same trick with other pairs gives y≤2y \le 2 and z≤2z \le 2.

Step 2: lower bounds. Add the first and second:
(−x−y−z)+(−x+y+z)≤−2+2,so−2x≤0,x≥0.(-x - y - z) + (-x + y + z) \le -2 + 2, \quad\text{so}\quad -2x \le 0, \quad x \ge 0.
Likewise y≥0y \ge 0 and z≥0z \ge 0.

So each of x,y,zx, y, z is 00, 11 or 22. That is only 2727 triples to think about.

Step 3: rewrite the rules using the sum. Let S=x+y+zS = x + y + z.
- The first inequality says S≥2S \ge 2.
- The second says −x+y+z≤2-x + y + z \le 2. Since −x+y+z=S−2x-x + y + z = S - 2x, this means S−2x≤2S - 2x \le 2, that is, x≥S−22x \ge \frac{S - 2}{2}.
- The third and fourth say the same for yy and zz.

So the rules are: the sum is at least 22, and every number is at least S−22\frac{S-2}{2}.

Step 4: go through the possible sums.

Sum SSEach number must be at leastTriples
00 or 11(not allowed, S≥2S \ge 2)none
2200(2,0,0)(2,0,0), (1,1,0)(1,1,0) in any order: 3+3=63 + 3 = 6
3312\frac12, so at least 11(1,1,1)(1,1,1): 11
4411(2,1,1)(2,1,1) in any order: 33
5532\frac32, so at least 22three 22s add to 66, not 55: none
6622(2,2,2)(2,2,2): 11

The total is 6+1+3+0+1=116 + 1 + 3 + 0 + 1 = 11.

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

Why this works

With several inequalities, adding two of them can cancel variables and give a simple bound on one letter. Once every letter is stuck in a small range, a careful list is safe. Organizing the list by the sum x+y+zx + y + z works well here because every rule can be written in terms of that sum.

Concise solution

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

Write S=x+y+zS = x + y + z. Multiplying the first inequality by −1-1 turns it into
S≥2.S \ge 2.
The other three can be rewritten using SS as well: −x+y+z=S−2x-x+y+z = S - 2x, x−y+z=S−2yx-y+z = S - 2y, and x+y−z=S−2zx+y-z = S - 2z. So they say
S−2x≤2,S−2y≤2,S−2z≤2,S - 2x \le 2, \qquad S - 2y \le 2, \qquad S - 2z \le 2,
and all three hold precisely when the largest of the left sides does, that is when
S≤2+2m,m=min⁡(x,y,z).S \le 2 + 2m, \qquad m = \min(x,y,z).

The whole system is therefore
2≤S≤2+2m.2 \le S \le 2 + 2m.

This already bounds everything. From 2≤2+2m2 \le 2 + 2m we get m≥0m \ge 0, so x,y,z≥0x, y, z \ge 0. And if M=max⁡(x,y,z)M = \max(x,y,z), the other two coordinates are each at least mm, so S≥M+2mS \ge M + 2m, giving M≤S−2m≤2M \le S - 2m \le 2. Hence
0≤x,y,z≤2.0 \le x, y, z \le 2.

Because the system is symmetric in xx, yy, zz, count by the value of mm.

m=0m = 0. The condition becomes 2≤S≤22 \le S \le 2, so S=2S = 2 with at least one coordinate 00. The triples with entries in {0,1,2}\{0,1,2\} summing to 22 are the arrangements of (0,0,2)(0,0,2) and of (0,1,1)(0,1,1): 3+3=63 + 3 = 6 triples, and all of them do contain a 00.

m=1m = 1. All entries lie in {1,2}\{1,2\} with at least one 11, and S≤4S \le 4. Writing kk for the number of 22s, S=3+k≤4S = 3 + k \le 4 forces k≤1k \le 1. That gives (1,1,1)(1,1,1) and the three arrangements of (1,1,2)(1,1,2): 44 triples.

m=2m = 2. Then x=y=z=2x = y = z = 2, S=6≤2+4=6S = 6 \le 2 + 4 = 6: 11 triple.

Altogether 6+4+1=116 + 4 + 1 = 11 triples, namely
(0,0,2), (0,2,0), (2,0,0), (0,1,1), (1,0,1), (1,1,0), (1,1,1), (1,1,2), (1,2,1), (2,1,1), (2,2,2).(0,0,2),\ (0,2,0),\ (2,0,0),\ (0,1,1),\ (1,0,1),\ (1,1,0),\ (1,1,1),\ (1,1,2),\ (1,2,1),\ (2,1,1),\ (2,2,2).

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.