If the is odd, things are not quite so clear cut.
For small
, Player 2 can generally still force a win, but we will now proceed to show
that if
is large enough, and odd, Player 1 can force a win.
Observation 1: If there are an odd number of values to start with, then on Player 1's turn, there will always be an odd number to choose from, and on Player 2's turn there will always be an even number.
Observation 2: If on Player 1's turn, there are exactly three numbers left, and there is either a pair congruent to 0 mod 2 (even) or congruent to 3 mod 6, then he can win by taking the number that's not part of the pair. This is because any two numbers that are even, or are odd but divisible by 3 have a common factor.
This leads to the following:
Theorem: Assume that Player 1 is trying to force the last two numbers to have a common factor. If Player 1 has enough turns to remove all values congruent to 1 and 5 mod 6, and leave at least 4 values remaining (i.e. have at least one additional turn), he can force a win.
Proof: All numbers that aren't congruent to 1 or 5 mod 6 are either even, or are congruent to 3 mod 6. Since there are at least 4 values remaining, Player 1 will at some point have a turn where there are exactly 3 numbers left (since he gets all of the odd turns). Since there are 3 numbers left, but only two categories, there must be a pair that are either congruent mod 2 or congruent mod 3, so Player 1 can simply remove the value that isn't part of the pair to win.
So the question is, for what values of does Player 1 have enough
turns to satisfy the above requirements? A rough answer can be given
as follows, and will provide a clue as to how to find the exact
answer:
In any set of consecutive numbers, the maximum number of values
that can be congruent to 1 or 5 mod 6 are
. If
, then there are exactly N/3 values that
are congruent to 1 or 5 mod 6. However, if N is not divisible by 6,
then at most 2 additional values will also be congruent to 1 or 5. An
equivalent way of writing
is
.
Since we're only considering cases where
is odd, Player 1 has
exactly
turns. To meet the criteria of the theorem,
Player 1 has to remove all of the numbers congruent to 1 or 5 mod 6
and still have 1 turn left over, thefore we want:
Next we will see how to get a better bound for , and then look at
the cases where
is too small to be covered by the above theorem.
When counting the number of values congruent to 1 or 5 mod 6, there
are two factors that influence this number -
and
. Since there are 6 possible values for
and 3 possible values for
, there are 18 cases we need
to consider. However, we can cut that number in half by the following
theorem:
Theorem: Suppose that Player 1 is trying to force the last two numbers
to have a common factor. If is odd and and
is even, then Player 1 can force a win by removing only odd numbers.
Proof: Since is even, there are
even numbers
in play, and
odd numbers. Since Player 1 has
turns, he can simply remove an odd number each turn. However, Player 2 only has
turns. Therefore, if on every turn Player 2 removes
an even number, there will still be 2 even numbers remaining, which by
definition have 2 as a common factor. If instead, Player 2 removes at
least one odd number, Player 1 can continue to remove odd numbers
until none are remaining, at which point all remaining numbers
will have 2 as a common factor and Player 1 will still win.
This leaves only 3 classes to consider - when
. We will look at the first of these in depth
to get an understanding of how to determine a bound for
, and then
simply present the rest of the equations and solutions without tedious
explanations.
Recall from above that we want to have the number of values congruent
to 1 and 5 mod 6, plus 1 for the extra turn, be less than or equal to
the number of Player 1's turns. If
, then the
first 6 numbers are:
Next, we look at the case where
. This time,
there are
complete sets, and
1's and
5's from them. However, even though there are now 3 numbers outside
of the complete sets, they're congruent to 1,2 and 3 mod 6, so there's
still only 1 additional 1 or 5 outside of the set. Thus:
Finally, we can look at the case where
. In this
case, there are
complete sets, but there are now 2
numbers congruent to 1 or 5 outside the complete set, since the last
value is now congruent to 5 mod 6. Therefore:
Hence, we can now say that in the case where
,
any odd value of
will allow Player 1 to force a win by
removing all 1s and 5s.
Using the same methods as described above, we can calculate values of
for the cases where
and where
. These solutions are presented in Table 1.
|