Placement AptitudeVery hardProduct company OA · CAT LRDI level
Two players take turns removing coins from a single pile. On each turn a player must remove exactly 1, 3 or 4 coins, and the player who removes the last coin wins. Both play perfectly. For how many starting pile sizes from 1 to 100 (inclusive) does the SECOND player win?
- A. 25
- B. 29
- C. 28
- D. 33
Correct answer: B. 29
Mark the losing sizes (the player to move loses): 0 loses; 1, 3, 4 win by taking everything; 2 loses (its only move goes to 1); 5 and 6 win by moving to 2; 7 loses (it can only reach 6, 4 or 3); 8 wins (take 1 to reach 7); 9 loses (it can reach only 8, 6, 5). From here the pattern repeats every 7: the mover loses exactly when n ≡ 0 or 2 (mod 7). From 1 to 100: multiples of 7 give 14 (7 … 98) and n ≡ 2 gives 15 (2 … 100). Total 29. 28 forgets that 100 ≡ 2; 33 = 100/3 treats it like a 'take 1 to 3' game.
Practise more Logical Reasoning for Placements questionsLogical Reasoning for Placements: notes and key points
More Logical Reasoning for Placements questions
- 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…
- Of A, B and C, one is a truth-teller (both statements true), one is a liar (both statements false) and one is an alternator (exactly one…
- After a race among P, Q, R and S (no ties), each made two statements, exactly one of which is true. P: "I finished 3rd. Q finished 3rd."…
- Xavier lies on Mondays, Tuesdays and Wednesdays and tells the truth on the other days. Yamini lies on Sundays, Mondays and Tuesdays and…
- Ten cards lie face up: P5, P6, Q2, Q3, Q4, Q5, R2, R4, R6, S2. One card is secretly chosen. Amit is told only its letter and Bina only its…
- Each of A, B, C and D is either a knight (always tells the truth) or a knave (always lies). A says, "Exactly one of us four is a knight."…