Placement AptitudeVery hardCAT · Goldman Sachs aptitude

What is the remainder when 28! is divided by 31?

  1. A. 16
  2. B. 15
  3. C. 30
  4. D. 1

Correct answer: B. 15

By Wilson's theorem 30! ≡ −1 (mod 31). 30! = 28! × 29 × 30 ≡ 28! × (−2)(−1) = 2 × 28!, so 2 × 28! ≡ −1 ≡ 30 and 28! ≡ 15 (since 2 × 15 = 30). 16 is what you get by dropping the minus sign (2⁻¹ ≡ 16).

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic