Placement AptitudeHardCAT · TCS NQT

In how many ways can two different numbers be chosen from 1, 2, …, 50 so that their difference is a multiple of 7?

  1. A. 147
  2. B. 308
  3. C. 175
  4. D. 154

Correct answer: D. 154

The difference is a multiple of 7 when both numbers leave the same remainder on division by 7. Remainder 1 has 8 numbers (1, 8, …, 50) and each other remainder has 7: 8C2 + 6 × 7C2 = 28 + 126 = 154. 147 assumes all seven classes have 7 numbers; 175 assumes exactly 1/7 of all 1225 pairs.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic