Placement AptitudeVery hardProduct company OA · CAT LRDI level

In a game, two players alternately remove 2, 3 or 5 coins from a pile. A player who cannot make a move (fewer than 2 coins left) loses. Both play perfectly. For which starting pile does the player who moves SECOND win?

  1. A. 2025 coins
  2. B. 2026 coins
  3. C. 2024 coins
  4. D. 2027 coins

Correct answer: C. 2024 coins

Positions 0 and 1 are losing (no move). 2, 3, 4, 5, 6 can each move to 0 or 1, so they win. 7 → {5, 4, 2} and 8 → {6, 5, 3} only reach winning positions, so 7 and 8 lose, and the pattern repeats with period 7: the mover loses exactly when n ≡ 0 or 1 (mod 7). 2024 = 7 × 289 + 1 is losing for the first player, so the second player wins. 2025 ≡ 2 and 2026 ≡ 3 can move 2 or 3 coins to reach 2023 ≡ 0.

More Logical Reasoning for Placements questions

Exams that ask this topic