Placement AptitudeHardWipro · Accenture pattern

How many integers from 1 to 500 are divisible by 3 or by 7, but not by both?

  1. A. 237
  2. B. 214
  3. C. 166
  4. D. 191

Correct answer: D. 191

Multiples of 3: 166; of 7: 71; of 21 (both): 23. 'Either but not both' = 166 + 71 − 2 × 23 = 191. 214 = 166 + 71 − 23 is 'at least one', which still includes the 23 numbers divisible by both.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic