Placement AptitudeVery hardInfosys Specialist Programmer

If n is a positive integer, what is the remainder when 7^(2n+1) + 1 is divided by 8?

  1. A. 10
  2. B. -7
  3. C. 7
  4. D. 0

Correct answer: D. 0

7 ≡ −1 (mod 8), so 7^(2n+1) ≡ (−1)^(2n+1) = −1 (mod 8). Adding 1 gives 0 (mod 8).

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic