GATE Computer ScienceEasyGATE CS (PYQ pattern)

How many integer triples (x, y, z) with x, y, z all non-zero satisfy |x| + |y| + |z| = 10?

  1. A. 36
  2. B. 1561
  3. C. 288
  4. D. 242

Correct answer: C. 288

Positive solutions of a + b + c = 10: C(9,2) = 36, and each non-zero coordinate takes either sign: 36 · 2³ = 288.

More Discrete Mathematics questions

Exams that ask this topic