首页
登录
职称英语
Rita and Sam play the following game with n sticks on a table. Each must remove
Rita and Sam play the following game with n sticks on a table. Each must remove
游客
2024-01-13
24
管理
问题
Rita and Sam play the following game with n sticks on a table. Each must remove 1, 2, 3, 4 or 5 sticks at a time on alternate turns, and no stick that is removed is put back on the table. The one who removes the last stick (or sticks) from the table wins. If Rita goes first, which of the following is a value of n such that Sam can always win no matter how Rita plays?
选项
A、7
B、10
C、11
D、12
E、16
答案
D
解析
Let Player A be either Rita or Sam, and let Player B be the other player. If, after one of Player A’s turns, there are exactly 6 sticks left, then Player A can win on his or her next turn This is because if 6 sticks are left after Player A’s turn, then regardless of whether Player B removes 1,2, 3, 4, or 5 sticks, it follows that Player A can win on his or her next turn by removing, respectively, 5,4,3,2, or 1 stick.
n = 7
: If Rita begins by removing 1 stick, then there will be 6 sticks left after Rita’s turn. Therefore, by the remarks above, Rita can win Hence, Sam cannot always win.
n = 10
: If Rita begins by removing 4 sticks, then there will be 6 sticks left after Rita’s turn Therefore, by the remarks above, Rita can win. Hence, Sam cannot always win.
n = 11
: If Rita begins by removing 5 sticks, then there will be 6 sticks left after Rita’s turn Therefore, by the remarks above, Rita can win. Hence, Sam cannot always win.
n = 12
: If Rita begins by removing 1 stick, the n Sam can win by removing 5 sticks on his next turn, because 6 sticks will remain after Sam’s turn. If Rita begins by removing 2 sticks, then Sam can win by removing 4 sticks on his next turn, because 6 sticks will remain after Sam’s turn. By continuing in this manner, we see that if Rita begins by removing k sticks (where k is one of the numbers 1,2,3,4, or 5), then Sam can vin by removing (6-k) sticks on his next turn because 6 sticks will remain after Sam’s turn. Therefore, no matter how many sticks Rita removes on her first turn, Sam can win by removing appropriate numbers of sticks on his next two turns. Hence, Sam can always win.
n = 16
: If Rita removes 4 sticks on her first turn, then Sam will be in the same situation as Rita for n = 12 above, and therefore Rita can win no matter what Sam does. Hence, Sam cannot always win.
The correct answer is D.
转载请注明原文地址:https://tihaiku.com/zcyy/3360150.html
相关试题推荐
Allthefollowingcasesareon-the-jobsmokingexceptthat______.[br]Passives
Inmakingmarketinvestigation,oneshould______.[br]Whichofthefollowings
In1863,AbrahamLincolnwas______.[br]WhichofthefollowingstatementsisN
TheWord"here"(Para,1,Line3)refersto______.[br]Whichofthefollowing
Whichofthefollowingcanbeinferredfromthepassage?[br]Thebestconclusio
Whichofthefollowingcanbeinferredfromthepassage?[br]Accordingtothea
WhiletakingataxiinFinland,______.[br]WhichofthefollowingisNOTtrue
Thepassageismainlyabout______.[br]WhichofthefollowingdoesRebeccaDres
Thefirstuseofumbrellawasas______.[br]Whichofthefollowingmaybethe
WhichofthefollowingisNOTtrueaccordingtothepassage?[br]Theword"affe
随机试题
Thephrase"men’ssurenessoftheirsexrole"inthefirstparagraphsuggestst
Leacockwasprobably’thefirstCanadiantoqualifyasa"pro-AmericanBritis
(1)WhenIwastwenty-sevenyearsold,Iwasamining-broker’sclerkinSan
关于建设工程物资采购管理的说法,不正确的有()。A:物资采购结束后应将采购资料
如果税法规定某一税种的起征点是800元,那么,超过起征点的,只对超过800元的部
选择性抑制角鲨烯环氧化酶的药物是A.伊曲康唑 B.特比萘芬 C.酮康唑 D
《10kV-500kV输变电设备交接试验规程》中规定,在进行直流高压试验时,应采
对认证的理解,正确的有()。[2007年真题] A.认证是自愿的 B.认证
根据公司法律制度的规定,下列关于公司经营范围的说法中,正确的是()。A.公
女性,60岁,反复咳嗽、咳痰25年,心悸、气促、下肢间歇性水肿3年,病情加重伴畏
最新回复
(
0
)