Placement AptitudeHardInfosys SP · TCS NQT Advanced

For how many integers n from 1 to 100 is n² + n + 1 divisible by 7?

  1. A. 28
  2. B. 14
  3. C. 29
  4. D. 30

Correct answer: C. 29

Checking residues mod 7, n² + n + 1 ≡ 0 only for n ≡ 2 or 4. From 1 to 100 there are 15 numbers ≡ 2 (2 to 100) and 14 numbers ≡ 4 (4 to 95), so 29. Assuming 14 of each gives 28.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic