How many ordered triples of integers satisfy the following system of inequalities?
\begin{align} -x-y-z&\le -2\\ -x+y+z&\le 2\\ x-y+z&\le 2\\ x+y-z&\le 2 \end{align}
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
The last three inequalities force the sum S to satisfy S <= 2 + 2min(x, y, z), which with S >= 2 traps every coordinate in {0, 1, 2}.
Solution
Write . Multiplying the first inequality by turns it into
The other three can be rewritten using as well: , , and . So they say
and all three hold precisely when the largest of the left sides does, that is when
The whole system is therefore
This already bounds everything. From we get , so . And if , the other two coordinates are each at least , so , giving . Hence
Because the system is symmetric in , , , count by the value of .
. The condition becomes , so with at least one coordinate . The triples with entries in summing to are the arrangements of and of : triples, and all of them do contain a .
. All entries lie in with at least one , and . Writing for the number of s, forces . That gives and the three arrangements of : triples.
. Then , : triple.
Altogether triples, namely
The answer is .
Why this works
Systems of linear inequalities in several integer variables are counted by first making the region finite, and the fastest way to do that is to combine the inequalities rather than analyse them one at a time. Adding two of the last three, for instance , gives directly, and pairing the first with each of the others gives the lower bounds; rewriting everything through packages both steps at once. Once the region is confined to a box, enumeration is safe, and exploiting the full symmetry in , , cuts the checks down to three short cases.
Alternative approach
Derive the bounds by direct pairing instead: adding the third and fourth inequalities gives , so , and similarly ; and from the second, , so and , similarly for and . Then check all triples in by hand; the failures are the four with and the twelve that break one of the last three inequalities.
The trap
Reading -x-y-z <= -2 as x+y+z <= 2, or dropping it once the bounds are found; the other three conditions alone leave 15 triples, choice (D).
Common mistakes
- Reading -x-y-z <= -2 as x+y+z <= 2, or dropping it once the bounds are found; the other three conditions alone leave 15 triples, choice (D).
- Deriving only the upper bounds and then allowing negative coordinates, which makes the region look infinite.
- Counting the five shapes , , , , instead of the ordered triples they represent.
Techniques
Bound the quantity above/below or estimate to pin it down · Organized listing / direct enumeration