Placement AptitudeHardCAT · Goldman Sachs aptitude

What is the remainder when 23^(23^23) is divided by 7?

  1. A. 2
  2. B. 4
  3. C. 1
  4. D. 6

Correct answer: B. 4

23 ≡ 2 (mod 7) and 2³ ≡ 1, so only the exponent mod 3 matters. 23 ≡ 2 ≡ −1 (mod 3), and 23 is odd, so 23²³ ≡ −1 ≡ 2 (mod 3). Hence the remainder is 2² = 4. Taking the exponent as ≡ 1 (mod 3) gives the trap answer 2.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic