Placement AptitudeVery hardInfosys SP · Goldman Sachs aptitude

For how many integers n from 1 to 50 does n NOT divide (n − 1)!?

  1. A. 15
  2. B. 17
  3. C. 16
  4. D. 19

Correct answer: C. 16

For composite n > 4 both factors of n appear in (n − 1)!, so n divides it. It fails only for the 15 primes up to 50 (Wilson: (n − 1)! ≡ −1 mod n) and for n = 4 (3! = 6): 16 in all, since n = 1 divides 0! = 1. 15 forgets n = 4, 17 also counts n = 1, and 19 wrongly adds 9, 25 and 49, which do divide 8!, 24! and 48!.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic