Placement AptitudeHardWipro NLTH · Cognizant pattern

In how many ways can three different numbers be chosen from 1, 2, …, 30 so that they form an arithmetic progression (order of choosing does not matter)?

  1. A. 210
  2. B. 420
  3. C. 196
  4. D. 406

Correct answer: A. 210

Write the triple as a, a + d, a + 2d with d ≥ 1. For each d, a runs from 1 to 30 − 2d, giving 30 − 2d triples; d goes 1 to 14. Sum = 14 × 30 − 2(1 + … + 14) = 420 − 210 = 210. 420 counts each triple in both increasing and decreasing order.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic