Placement AptitudeVery hardTCS Digital · Infosys SP · Accenture

How many integer pairs (x, y) satisfy |x| + |y| ≤ 10?

  1. A. 220
  2. B. 221
  3. C. 200
  4. D. 231

Correct answer: B. 221

The number of integer points with |x| + |y| ≤ n is 2n² + 2n + 1. For n = 10 this is 200 + 20 + 1 = 221 (the points with |x| + |y| = k number 4k, and 1 + 4(1 + … + 10) = 221).

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic