Exercises from Section 1.2.8
Tord M. Johnson
February 22, 2016
1. [10] What is the answer to Leonardo Fibonacci’s original problem: How many pairs of rabbits are present after a
year?
The original problem assumes we start with a single pair of rabbits and a monthly period. Let
represent the number of months that have passed and our sequence by
,
so that that initially we start with
After a year, we have
|
and in general, after
months, we have
2. [20] In view of Eq. (15), what
is the approximate value of ?
(Use logarithms found in Appendix A.)
Given Eq. (15)
|
we may use the logarithms found in Appendix A to find that
That is, is a 209-digit number
whose leading digit is .
3. [25] Write a computer program that calculates and prints
through
in
decimal notation. (The previous exercise determines the size of numbers that must be handled.)
The following Java code calculates and prints
through ,
by assuming nonnegative integers no larger than 209 digits.
class FibonacciNumber { public FibonacciNumber(int initialValue) { decimalDigits = new int[209]; for (decimalDigitCount = 0; initialValue != 0; ++decimalDigitCount) { decimalDigits[decimalDigitCount] = initialValue % 10; initialValue /= 10; } } public FibonacciNumber plus(FibonacciNumber fibonacciNumber) { FibonacciNumber sum = new FibonacciNumber(0); int carry = 0; for ( int k = 0; k < Math.max(decimalDigitCount, fibonacciNumber.decimalDigitCount); ++k ) { int thisDigit = (k < decimalDigitCount) ? decimalDigits[k] : 0; int thatDigit = (k < fibonacciNumber.decimalDigitCount) ? fibonacciNumber.decimalDigits[k] : 0; int digitSum = thisDigit + thatDigit + carry; sum.decimalDigits[sum.decimalDigitCount++] = digitSum % 10; carry = digitSum / 10; } if (carry > 0) { sum.decimalDigits[sum.decimalDigitCount++] = carry; } return (sum); } public String toString() { StringBuilder stringBuilder = new StringBuilder(); for (int k = decimalDigitCount - 1; k >= 0; --k) { stringBuilder.append(decimalDigits[k]); } if (stringBuilder.length() == 0) { stringBuilder.append(0); } return (stringBuilder.toString()); } private int[] decimalDigits; private int decimalDigitCount; } FibonacciNumber[] fibonacci = new FibonacciNumber[1000]; int k = 0; System.out.println(fibonacci[k] = new FibonacciNumber(1)); ++k; System.out.println(fibonacci[k] = fibonacci[k - 1]); for (++k; k < fibonacci.length; ++k) { System.out.println(fibonacci[k] = fibonacci[k - 1].plus(fibonacci[k - 2])); }
The first thirty numbers generated are listed below,
| |
|
|
1 | 1 |
2 | 1 |
3 | 2 |
4 | 3 |
5 | 5 |
6 | 8 |
7 | 13 |
8 | 21 |
9 | 34 |
10 | 55 |
11 | 89 |
12 | 144 |
13 | 233 |
14 | 377 |
15 | 610 |
16 | 987 |
17 | 1597 |
18 | 2584 |
19 | 4181 |
20 | 6765 |
21 | 10946 |
22 | 17711 |
23 | 28657 |
24 | 46368 |
25 | 75025 |
26 | 121393 |
27 | 196418 |
28 | 317811 |
29 | 514229 |
30 | 832040 |
|
and
is printed as anticipated, a 209-digit number whose leading digit is
:
43466 | 55768 | 69374 | 56435 | 68852 | 76750 | 40625 | 80256 | 46605 | 17371 |
78040 | 24817 | 29089 | 53655 | 54179 | 49051 | 89040 | 38798 | 40079 | 25516 |
92959 | 22593 | 08032 | 26347 | 75209 | 68962 | 32398 | 73322 | 47116 | 16429 |
96440 | 90653 | 31879 | 38298 | 96964 | 99285 | 16003 | 70447 | 61377 | 95166 |
84922 | 8875. |
|
4. [14] Find
all for which
.
Manually inspecting
until
| |
|
|
0 | 0 |
1 | 1 |
2 | 1 |
3 | 2 |
4 | 3 |
5 | 5 |
6 | 8 |
7 | 13 |
|
reveals
for ,
, and
. For
,
increases faster than
, letting us conclude
that these are the only ,
as may be seen by the inductive argument that follows.
In the case that ,
clearly . Similarly,
in the case that ,
. Then,
assuming for
, we must
show that .
But
since
by hypothesis, and hence the conclusion.
5. [20] Find all
for which .
Manually inspecting
until
| | |
|
|
|
0 | 0 | 0 |
1 | 1 | 1 |
2 | 4 | 1 |
3 | 9 | 2 |
4 | 16 | 3 |
5 | 25 | 5 |
6 | 36 | 8 |
7 | 49 | 13 |
8 | 64 | 21 |
9 | 81 | 34 |
10 | 100 | 55 |
11 | 121 | 89 |
12 | 144 | 144 |
13 | 169 | 233 |
14 | 196 | 377 |
|
reveals
for ,
, and
. For
,
increases faster than
, letting us conclude
that these are the only ,
as may be seen by the inductive argument that follows.
In the case that ,
clearly . Similarly,
in the case that ,
. Then,
assuming for
, we must
show that .
But
since
by hypothesis, and hence the conclusion.
6. [HM10] Prove Eq. (5).
Proposition. .
Proof. Let
be an arbitrary positive integer. We must show that
|
In the case that ,
and in the case that ,
Then, assuming
|
we must show that
|
But
as we needed to show. □
7. [15] If
is not a prime
number,
is not a prime number (with one exception). Prove this and find the exception.
Proposition. If
is not a prime number,
is not a prime number, with the one exception being
where .
Proof. Let
be an arbitrary nonnegative integer. We must show that if
is not a prime number,
is not a prime number, with the one exception being
where .
In the case that
not prime,
not prime; similarly for ,
.
Otherwise, let us assume
not prime, such that
is a proper divisor of
(,
)
such that
for some positive integer .
Deduced from Eq. (6) we know that
divides .
Since ,
;
and since ,
.
That is, .
Hence,
is not prime in all cases except where ,
or equivalently since ,
where .
The only composite number
that has no proper factor greater than
is ,
being the one exception, where ,
as we needed to show. □
8. [15] In many cases it is convenient to define
for negative , by
assuming that for all
integers . Explore this
possibility: What is ?
What is ? Can
be expressed in a simple
way in terms of ?
Allowing
to range over all integers, we require
or equivalently,
Similarly,
and in general for nonegative ,
as is shown below.
Proposition. .
Proof. Let
be an arbitrary nonnegative integer. We must show that
|
In the case that ,
and in the case that ,
Then, assuming
|
we must show that
|
But
as we needed to show. □
9. [M20] Using the conventions of exercise 8, determine whether Eqs. (4), (6), (14), and (15) still hold when the
subscripts are allowed to be any integers.
We determine that Eqs. (4), (6), and (14) hold if
is allowed to range over all the integers, but not Eq. (15), as given by counterexample.
Proposition.
for negative .
Proof. Let
be an arbitrary negative integer. We must show that
In the case that ,
|
and in the case that ,
|
Then, assuming
we must show that
|
But
as we needed to show. □
Proposition.
for negative .
Proof. Let and
be arbitrary
integers such that
is negative and
is nonnegative. We must show that
In the case that ,
|
and in the case that ,
|
Then, assuming
we must show that
|
But
as we needed to show. □
Proposition.
for negative .
Proof. Let
be an arbitrary negative integer. We must show that
In the case that ,
and in the case that ,
Then, assuming
we must show that
But
as we needed to show. □
Proposition.
rounded to the nearest integer for negative .
Proof. Consider .
Then but
since ,
rounded to the nearest integer is
. □
10. [15] Is
greater than or
less than ?
From Eq. (14),
if and only if
That is, is
greater than
when
and less than
when negative. Since
we have that when
is even, negative
when odd. That is,
is greater than
when is even,
less than
when
is odd.
11. [M20] Show that
and , for all
integers .
We show both identities.
Proposition. .
Proof. Let
be an arbitrary integer. We must show that
We divide the proof into two cases:
nonnegative,
or
nonpositive.
In the case that
is nonnegative, if ,
|
and if ,
Then, assuming
we must show that
But
In the case that
is nonpositive, if ,
|
and if ,
|
Then, assuming
we must show that
But
Therefore,
for all integers
as we needed to show. □
Proposition. .
Proof. Let
be an arbitrary integer. We must show that
We divide the proof into two cases:
nonnegative,
or
nonpositive.
In the case that
is nonnegative, if ,
|
and if ,
|
Then, assuming
we must show that
But
In the case that
is nonpositive, if ,
|
and if ,
|
Then, assuming
we must show that
But
Therefore,
for all integers
as we needed to show. □
12.
[M26] The “second order” Fibonacci sequence is defined by the rule
|
Express in
terms of
and .
[Hint: Use generating functions.]
Let
|
|
and note that
Then
|
|
and
From Eq. (11)
if and only if by definition and from Eq. (17)
But
That is
|
13. [M22] Express the following sequences in terms of the Fibonacci numbers, when
,
, and
are
given constants.
-
a)
- ,
;
for .
-
b)
- ,
;
,
for .
We may express the sequences in terms of the Fibonacci numbers.
-
a)
- Allowing for negative
so that , we
can express
in terms of the Fibonacci numbers as
and in general for
as
We may prove this by induction. In the case that
,
; and in the
case that ,
. Then, assuming
, we must
show that .
But
and hence the result.
-
b)
- We can express
in terms of the Fibonacci numbers by first analyzing the derivative sequence
as
From (a) we have that
if and only if
|
for .
14. [M28] Let be a fixed
positive integer. Find ,
given that
|
First, we note that for nonnegative integers
| (14.1) |
which may be shown using induction, since
|
and
and assuming
|
implies
Second, we note that for nonnegative integers
| (14.2) |
which may be shown using induction, since
|
and
|
and assuming
|
including the induction basis ,
implies
Finally, we claim that
|
In the case that ,
and in the case that ,
Then, assuming
|
we must show that
|
But
and hence the result.
15. [M22] Let
and be arbitrary
functions, and for
let
Express
in terms of ,
,
,
, and
.
We first prove two corollaries.
Proposition. .
Proof. Let be an
arbitrary function and
defined as
for
with
and .
We will show that
| (15.1) |
In the case that ,
|
and in the case that ,
|
Then, assuming
|
we must show that
|
But
and hence the result. □
Proposition. .
Proof. Let and
be arbitrary
functions; and ,
,
defined as
We will show that
| (15.2) |
In the case that ,
|
and in the case that ,
|
Then, assuming
|
we must show that
|
But
and hence the result. □
We then solve for
as
16.
[M20] Fibonacci numbers appear implicitly in Pascal’s triangle if it is viewed from the right angle. Show that the
following sum of binomial coefficients is a Fibonacci number:
We may prove that the sum is a Fibonacci number.
Proposition. .
Proof. Let
be an arbitrary nonnegative integer such that
.
We must show that
In the case that ,
|
and in the case that ,
|
Then, assuming
we must show that
|
But
as we needed to show. □
17. [M24] Using the conventions of exercise 8, prove the following generalization of Eq. (4):
.
We may prove the generalization, but first, a corollary.
Proposition. .
Proof. Let be
arbitrary reals and
arbitrary integers. We must show that
|
But
and hence the result. □
Finally, the proof.
Proposition. .
Proof. Let ,
,
be arbitrary integers, and allow for negative indexed Fibonacci numbers so that
.
We must show that
|
But since ,
as we needed to show. □
18. [20] Is
always a Fibonacci number?
Yes, ,
as shown below.
Proposition. .
Proof. Let
be an arbitrary nonnegative integer. We must show that
In the case that ,
|
and in the case that ,
|
Then, assuming
we must show that
But
as we needed to show. □
19. [M27] What
is ?
We have that
|
derived as follows. From the double angle formulas we have that
and
That is, that
if and only if
or equivalently that
|
And so, in terms of the golden ratio, since
,
and hence the result.
20. [M16] Express
in terms of Fibonacci numbers.
We have that
as shown here. In the case that ,
|
Then, assuming
we must show that
But
and hence the result.
21. [M25] What is ?
We have that
|
as shown here. First we consider the case that
. For
,
|
Then, assuming
|
we must show that
|
But
Last we consider the case that .
Note that in general since ,
|
since
and
as
Again, considering the case that ,
for ,
|
Then, assuming
|
we must show that
|
But in this case,
Hence the result in either case.
22. [M20]
Show that is
a Fibonacci number.
We have, by the binomial theorem, and since
and
,
23. [M23] Generalizing the preceding exercise, show that
is
always a Fibonacci number.
First, a corollary.
Proposition.
and .
Proof. Let
be an arbitrary, nonnegative integer. We must show that both
and
|
In the case that ,
|
and in the case that ,
|
Then, assuming
we must show that
But
and hence the result for .
The result for
follows similarly as ,
,
and
since
as we needed to show. □
Then we have, by the binomial theorem, and by both (23.1) and (23.2),
24. [HM20] Evaluate the
determinant
|
Given
|
we want to find .
In the case that ,
|
and in the case that ,
|
Then, assuming
|
we need to show that
|
But
Note that
preserves symmetry about the diagonal so that
|
and for
|
that
can be expanded further as
that is, that
|
And so,
and hence the result,
|
25. [M21] Show that
|
Proposition. .
Proof. Let
be an arbitrary, nonnegative integer. We must show that
|
But
Therefore
as we needed to show. □
26. [M20] Using the
previous exercise, show that
if is an
odd prime.
Proposition.
if
is an odd prime.
Proof. Let be an arbitrary
odd prime so that .
We must show that
|
By Fermat’s theorem, Theorem 1.2.4-F,
|
Then, by exercise 25,
|
And so
Then
as we needed to show. □
27. [M20] Using the previous exercise, show that if
is a prime different from ,
then either or
(not both) is a
multiple of .
Proposition. If
is a prime different from ,
then either
or
(exclusively).
Proof. Let
be an arbitrary prime different from
.
We must show that
(exclusively). In the case that ,
since
for
but .
Hereafter, we consider the case that
is an odd prime
different from .
By Eq. (4),
From the previous exercise,
and by Fermat’s theorem, Theorem 1.2.4-F,
And so,
That is, that
To see that this is exclusive, consider the case that
. Then
for some
. If we
assume
for some ,
|
then .
But by Fermat’s theorem, again,
and from the previous exercise
contradicting the assumption ,
so that if
. Similarly, consider
the case that .
Then for
some . If
we assume
for some ,
|
then .
But as with the previous case,
|
contradicting the assumption ,
so that
if .
This is what we needed to show. □
28. [M21] What is ?
We have
29.
[M23] (Fibonomial coefficients.) Édouard Lucas defined the quantities
|
in a manner analogous to binomial coefficients. (a) Make a table of
for
. (b) Show
that is
always an integer because we have
|
-
a)
- The table of Fibonomial coefficients
for
would appear as below.
| | | | | | | |
|
|
|
|
|
|
|
|
0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
2 | 1 | 1 | 1 | 0 | 0 | 0 | 0 |
3 | 1 | 2 | 2 | 1 | 0 | 0 | 0 |
4 | 1 | 3 | 6 | 3 | 1 | 0 | 0 |
5 | 1 | 5 | 15 | 15 | 5 | 1 | 0 |
6 | 1 | 8 | 40 | 60 | 40 | 8 | 1 |
|
This is based on the observations that
-
b)
- We may show that
is always an integer by proving the recursive relation below.
Proposition. .
Proof. We must show that
|
for .
But
as we needed to show. □
______________________________________________________________________________________________________________________________
[É. Lucas, Amer. J. Math. 1 (1878), 201–204]
30. [M38] (D. Jarden,
T. Motzkin.) The sequence of th
powers of Fibonacci numbers satisfies a recurrence relation in which each term depends on the preceding
terms.
Show that
|
For example, when we
get the identity .
We may prove the equality as a particular case of the proof outlined by Cooper and Kennedy.
Proposition.
if .
Proof. Let be arbitrary
integers such that .
We must show that
|
or equivalently for
that
Preliminary result 30.1. From Eq. (14), we have that
|
Preliminary result 30.2. As shown in exercise 14, we may show that
|
In the case that ,
|
and in the case that ,
|
Then assuming
we must show
|
But
and hence the result.
Preliminary result 30.3. We have that
|
since by definition and (30.1)
Preliminary result 30.4. We have that
|
since by definition and (30.1)
Preliminary result 30.5. We may show that
|
for . In the
case that ,
Then, assuming
|
we must show that
|
But for ,
and hence the result.
Preliminary Result 30.6. From Eq. (1.2.6-19), we have that
|
Preliminary Result 30.7. Define
|
Then
|
for , where
is the
trace of
defined as
|
Note that the case
is (30.2). But by (30.5),
and since
we have that
But
Then
And so,
|
hence the result.
Preliminary Result 30.8. We may show that the eigenvalues of
are
for .
Let
|
be the characteristic polynomial of
, where
is
the
identity matrix. Using partial fraction decomposition we find that
so that
and
|
hence the result.
Preliminary Result 30.9. We may show that
|
In the case that
even and
even,
that even
and
odd,
that
odd and
even,
and that
odd and
odd,
hence the result.
Preliminary Result 30.10. We may show that
|
By the -nomial
theorem ,
|
where
|
for ,
And so,
Substituting
for
yields
Substituting
for
yields
if and only if
|
or equivalently,
|
and hence the result.
Preliminary Result 30.11. We may show that
|
In the case that ,
Then, assuming
|
we must show that
|
But
and hence the result.
Conclusion. We will now show that
|
From (30.8) and (30.10), the characteristic polynomial satisifes
|
But, by the Cayley-Hamilton theorem, every matrix satisifes its characteristic polynomial. And
so,
|
for , where
denotes the
zero matrix.
By (30.11), for
and ,
|
And so,
|
or equivalently,
|
This concludes the proof. □
______________________________________________________________________________________________________________________________
[D. Jarden, Recurring Sequences, 2nd ed. (Jerusalem, 1966), 30–33; J. Riordan, Duke Math. J. 29
(1962), 5–12]
31. [M20] Show that
and .
We may show both identities.
Proposition. .
Proof. Let
be an arbitrary integer. We must show that
or equivalently that
But clearly, ,
and
That is,
as we needed to show. □
Proposition. .
Proof. Let
be an arbitrary integer. We must show that
or equivalently that
But clearly, ,
and
That is,
as we needed to show. □
32. [M24] The remainder of one Fibonacci number divided by another is
a Fibonacci number:
Show that, modulo ,
|
Proposition. .
Proof. Let be arbitrary
integers, such that
or .
We must show that
|
As preliminaries, note that since
|
by repeated applications of Law 1.2.4-A,
|
for any integer ,
which will be hereafter indicated as by Law 1.2.4-A*. Also
if and only if
|
In the case that ,
we have that
In the case that ,
we have that
In the case that ,
we have that
In the case that ,
we have that
That is, we must show that
|
If ,
then ,
,
and
If ,
then ,
and
If ,
then ,
and
If ,
then ,
and
Then, assuming
|
we must show that
|
But
Here, we divide the proof into cases depending on
. In the
case that ,
and
In the case that ,
and
In the case that ,
and
In the case that ,
and
And so,
as we needed to show. □
33. [HM24] Given that ,
show that .
Proposition.
if .
Proof. Let
be an arbitrary nonnegative integer, and
.
We must show that
|
As preliminaries, note that
and
so that
If ,
and if ,
Then, assuming that
|
we must show that
|
But
as we needed to show. □
34. [M24] (The Fibonacci
number system.) Let the notation
mean that . Show that
every positive integer has
a unique representation ,
where .
First, we prove a corollary.
Proposition. ,
where
for
and .
Proof. Let
be an arbitrary positive integer. We must show that
|
where
for
and .
If ,
|
where .
Then, assuming
where
for
and ,
we must show that
where ,
for
and
.
But since
then
as we needed to show. □
Then, we proceed with the requested proof.
Proposition. Every positive integer
has a unique representation ,
where
for
and .
Proof. Let
be an arbitrary positive integer. We must show that for
there exists a representation
where
for
and ;
and that this representation is unique.
Existence. If ,
|
where ;
if ,
|
where ;
if ,
|
where ;
and if ,
|
where ,
.
Then, assuming there exists a representation
we must show that there exists a representation
In the case that is a
Fibonacci number ,
we have that
|
where . Otherwise,
in the case that
is not a Fibonacci number, it must lie between two Fibonacci numbers. That is, there must exist a
such that
Let .
Since ,
by the inductive hypothesis, there exists a representation
But
That is, does
not contain ,
and so
|
where ,
if
,
otherwise,
and ,
and hence existence.
Uniqueness. Let
have the two representations
and
and let the Fibonacci numbers of each be represented by the sets
and
. The
previous result has shown that they each contain non-consecutive Fibonacci numbers, and have the same cardinality:
. Then
let and
. Since
, we also have
that . We will
assume that ,
so that neither
nor
is empty. Select the largest element of each, and let these be
and
, respectively. Note
that . Without loss of
generaltiy, assume .
Then, by (34.1),
|
But , a contradiction,
and so,
and ,
and hence uniqueness.
This concludes the proof. □
______________________________________________________________________________________________________________________________
[C. G. Lekkerkerker, Simon Stevin 29 (1952), 190–195; section 7.2.1.7; exercise 5.4.2-10; section
7.1.3]
35. [M24] (A phi number system.) Consider real numbers written with the digits
and
using
base ;
thus .
Show that there are infinitely many ways to represent the number
; for example,
. But if we require that
no two adjacent s
occur and that the representation does not end with the infinite sequence
, then
every nonnegative number has a unique representation. What are the representations of integers?
In the phi number system, there are infinitely many ways to represent the number
. To see why,
note that since ,
We may continue to expand the last term for infinitely many ways to represent the number
.
As
|
|
or
|
ad infinitum. But we may avoid this by requiring that no two adjacent
s
occur and that the representation does not end with the infinite sequence
. That is, by requiring that
all adjacent terms be instead
represented by their sum
and not avoided by further, infinite expansion of the last term.
The representations of nonnegative integers are then as follows.
Algorithm 35.1 (Representation of nonnegative integers in a phi number system.). Given a nonnegative integer
,
find its unique representation in the phi number system.
-
35.1.a.
- [Initialize.] Set ,
,
the set of integer phi exponents.
-
35.1.b.
- [Test for zero.] If ,
the algorithm terminates; we have the representation of
by the integer phi exponents in ,
empty if
zero.
-
35.1.c.
- [Find largest exponent.] If ,
find the largest
such that ,
set ,
,
and return to step 35.1.b.
For example, if ,
and
; if
,
and
; if
,
and
; etc. Since we always
choose over any of
the terms of the sum ,
we satisfy the requirement of having no two adjacent
s and not ending with
the infinite sequence
________________________________________________________________________________
[G. M. Bergman, Mathematics Magazine 31 (1957), 98–110]
36. [M32] (Fibonacci
strings.) Let ,
, and
,
; in other words,
is formed by
placing at
the right of .
We have ,
,
, etc. Clearly
has
letters. Explore
the properties of .
(Where do double letters occur? Can you predict the value of the
th letter of
? What is the
density of the s?
And so on.)
As noted,
has
letters.
Except for ,
no
starts with a, but all with b; and since ,
every a is preceded by a b. The letter b is doubled only when two terms are concatenated. That
is, there are no a doubles, only b doubles.
The th
letter of
is
where
|
for ,
,
as proven next.
In the case that ,
,
, and
. In the
case that ,
,
,
and
In the case that ,
,
; and
if ,
then
and
and if ,
then
and
Then, assuming the definition of
holds for
, we must show
that it holds for .
But
In the case that ,
then ,
and
holds by the inductive hypothesis. Otherwise, in the case that
,
then
for ,
and
holds again by the inductive hypothesis, and hence the result.
The density of the bs is is
where
|
for ,
as proven next.
In the case that ,
, and
. In the
case that ,
,
and
In the case that ,
,
and
Then, assuming the definition of
holds for
, we must show
that it holds for .
But
For either term,
holds by the inductive hypothesis, and hence the result.
______________________________________________________________________________________________________________________________
[K. B. Stolarsky, Canadian Math. Bull. 19 (1976), 473–482]
37.
[M35] (R. E. Gaskell, M. J. Whinihan.) Two players compete in the following game: There is a pile containing
chips;
the first player removes any number of chips except that he cannot take the whole pile. From then on, the players
alternate moves, each person removing one or more chips but not more than twice as many chips as the
preceding player has taken. The player who removes the last chip wins. (For example, suppose that
; player
removes
chips; player B
may remove up to
chips, and he takes .
There remain
chips; player
may take or
chips, and he
takes ; player
may remove
up to , and
he picks up .
There remain
chips; player now
takes ; player
must take at least
one chip and player
wins in the following turn.)
What is the best move for the first player to make if there are initially
chips?
The best move for the first player to make if there are initially
chips is to take
chips, as explained below.
Definitions. Define the game as follows. Let
be the number of
chips on the th
move, ,
, so
that
represents the number of chips started with. Let
be the number of
chips taken in the th
move, so that
for .
In addition, the rules require that
|
for , thus
necessarily. The
game is won on the th
move when finally .
We want to find the winning move(s) for the first player, for
odd.
Let
be the unique Fibonacci representation of
,
for
and
;
and
The winning move, if it exists, is to remove
chips where
|
where .
Preliminary Result 37.1. Since ,
and since ,
so that
That is,
|
Preliminary Result 37.2. First note that for
arbitrary,
since
and ,
we have that
or equivalently that
Also note that for
arbitrary, if
and so
that
and ,
|
If ,
Assuming
|
we must show that
|
But since
and ,
and hence the result for
and .
If and
so
that
and ,
|
If ,
Assuming
|
we must show that
|
But since
and ,
and hence the result for
and .
If and
so
that
and ,
|
If ,
Assuming
|
we must show that
|
But since
and ,
and hence the result for
and .
If and
so
that
and ,
|
If ,
Assuming
|
we must show that
|
But since
and ,
and hence the result for
and .
Hence, in any and all cases
Also, if ,
so that ,
and if ,
so that ,
so that in either case,
Then let ,
so that if ,
In the case that ,
and in the case that ,
And so, in either case,
if and only if
That is,
for .
Preliminary Result 37.3. Since ,
by (37.2)
That is,
|
for .
Preliminary Result 37.4. By (37.3), with ,
That is,
for .
Proof . In the case that
and , we may win
immediately in the th
move by taking
chips. But since ,
with , so
that .
Otherwise, if
but , we
may take
chips in order to leave the other player in an unwinnable state where
. The move is
valid since ,
with , so
that ,
since by (37.1),
The next state (to be shown to be unwinnable further below) is indeed one where
,
since also by (37.1),
In the case that , there is
no winnable move since ;
but any move
will lead to a winnable state for the next player with
. This follows
from (37.4), since
and
Example. Here we explain how we determined that taking
chips is the only winning move for the first player to make if there are initially
chips. In this example,
|
and , so
that .
For ,
since
|
we have a single winning move
hence the unique solution.
________________________________________________________________________________
[M. J. Whinihan, Fibonacci Quart. 1 (December 1963), 9–12; A. Schwenk, Fibonacci Quarterly 8
(1970), 225–234]
38. [35] Write a computer program that plays the game described in the previous exercise and that plays
optimally.
The following Java code plays the game described in exercise 37, and plays optimally.
class Options { public Options(String[] arguments) throws NumberFormatException { for (int index = 0; index < arguments.length; ++index) { switch (arguments[index]) { case "-n": if ((numberOfChips = Integer.parseInt(arguments[++index])) <= 1) { throw new IllegalArgumentException( String.format( "number␣of␣chips␣n␣must␣be␣n␣>␣1:␣%d", numberOfChips ) ); } break; case "-p": isUserFirst = Integer.parseInt(arguments[++index]) % 2 == 1; break; default: throw new IllegalArgumentException(arguments[index]); } } assert (numberOfChips > 1); } public int getNumberOfChips() { return numberOfChips; } public boolean isUserFirst() { return isUserFirst; } public int readNumberOfChipsTaken(InputStream in, int numberOfChipsTakeable) { int numberOfChipsTaken = (new Scanner(in)).nextInt(); if ((numberOfChipsTaken < 1) || (numberOfChipsTaken > numberOfChipsTakeable)) { throw new IllegalArgumentException( String.format( "number␣of␣chips␣taken␣t␣must␣be␣1␣<=␣t␣<=␣%d:␣%d", numberOfChipsTakeable, numberOfChipsTaken ) ); } return numberOfChipsTaken; } private int numberOfChips = 2; private boolean isUserFirst = true; } class State { public State(int initialNumberOfChips, boolean isUserFirst) { turn = 1; isUserTurn = isUserFirst; numberOfChips = initialNumberOfChips; numberOfChipsTakeable = numberOfChips - 1; } public void take(int numberOfChipsTaken) { assert ((1 <= numberOfChipsTaken) && (numberOfChipsTaken <= numberOfChipsTakeable)); ++turn; isUserTurn = !isUserTurn; numberOfChips -= numberOfChipsTaken; numberOfChipsTakeable = 2*numberOfChipsTaken; } public int getTurn() { return turn; } public boolean isUserTurn() { return isUserTurn; } public int getNumberOfChips() { return numberOfChips; } public int getNumberOfChipsTakeable() { return numberOfChipsTakeable; } public void writePreSummary(PrintStream out) { out.printf("Number␣of␣Chips:␣%d%n", numberOfChips); out.printf("␣␣␣␣␣Goes␣First:␣%s%n", isUserTurn? "User" : "Computer"); out.printf("---------------%n"); } public void writeSummary(PrintStream out) { out.printf( "[State]␣Turn:␣%d␣(%s);␣Chips:␣%d;␣Takeable:␣%d%n", turn, isUserTurn? "User" : "Computer", numberOfChips, numberOfChipsTakeable ); } public void writePostSummary(PrintStream out) { out.printf("------%n"); out.printf("␣Turns:␣%d%n", turn - 1); out.printf("Winner:␣%s%n", !isUserTurn? "User" : "Computer"); } private int turn; private boolean isUserTurn; private int numberOfChips; private int numberOfChipsTakeable; } class FibonacciNumber { public FibonacciNumber(int index, int value) { this.index = index; this.value = value; } public int getIndex() { return index; } public int getValue() { return value; } private int index; private int value; } class FibonacciNumbers { public FibonacciNumber get(int index) { assert (index >= 0); FibonacciNumber fibonacciNumber = fibonacciNumberCache.get(index); if (fibonacciNumber == null) { fibonacciNumber = calculate(index); fibonacciNumberCache.put(index, fibonacciNumber); } return fibonacciNumber; } public FibonacciNumber getLargestLessThanOrEqualTo(int value) { int index = 0; FibonacciNumber fibonacciNumber = get(index++); while (true) { FibonacciNumber nextFibonacciNumber = get(index++); if (nextFibonacciNumber.getValue() > value) { break; } fibonacciNumber = nextFibonacciNumber; } return fibonacciNumber; } protected FibonacciNumber calculate(int index) { FibonacciNumber fibonacciNumber; switch (index) { case 0: case 1: fibonacciNumber = new FibonacciNumber(index, index); break; default: fibonacciNumber = new FibonacciNumber( index, get(index-1).getValue() + get(index-2).getValue() ); break; } return fibonacciNumber; } private Map<Integer,FibonacciNumber> fibonacciNumberCache = new HashMap<>(); } class FibonacciBaseNumber { public FibonacciBaseNumber(FibonacciNumbers fibonacciNumbers, int value) { assert (value > 0); this.value = value; while (value > 0) { FibonacciNumber digit = fibonacciNumbers.getLargestLessThanOrEqualTo(value); digits.add(digit); value -= digit.getValue(); } } public int getSum(int fromIndex, int toIndex) { int sum = 0; for (int index = fromIndex; index <= toIndex; ++index) { sum += get(index).getValue(); } return sum; } public int getValue() { return value; } public int size() { return digits.size(); } public FibonacciNumber get(int index) { return digits.get(index); } public Stream<FibonacciNumber> stream() { return digits.stream(); } private int value; private List<FibonacciNumber> digits = new ArrayList<FibonacciNumber>(); } class Solver { public Solver(FibonacciNumbers fibonacciNumbers, State state) { fibonacciBaseNumber = new FibonacciBaseNumber(fibonacciNumbers, state.getNumberOfChips()); for (int index = 0; index < fibonacciBaseNumber.size(); ++index) { int sum = fibonacciBaseNumber.getSum(index, fibonacciBaseNumber.size() - 1); if ((1 <= sum) && (sum <= state.getNumberOfChipsTakeable())) { if ((index == 0) || (fibonacciBaseNumber.get(index - 1).getValue() > 2*sum)) { numberOfChipsToTake.add(sum); } } } } public int getOptimalNumberOfChipsToTake() { int optimalNumberOfChipsToTake = 1; if (numberOfChipsToTake.size() > 0) { optimalNumberOfChipsToTake = numberOfChipsToTake.first(); } return optimalNumberOfChipsToTake; } public void writeSummary(PrintStream out) { out.printf( "[Solve]␣Chips:␣%d␣=␣%s␣=␣%s%n", fibonacciBaseNumber.getValue(), String.join("␣+␣", fibonacciBaseNumber.stream() .map(f -> String.format("F_%d", f.getIndex())).collect(Collectors.toList()) ), String.join("␣+␣", fibonacciBaseNumber.stream() .map(f -> Integer.toString(f.getValue())).collect(Collectors.toList()) ) ); out.printf( "[Solve]␣Optimal:␣%d;␣Possible:␣{%s}%n", getOptimalNumberOfChipsToTake(), String.join(",␣", numberOfChipsToTake.stream() .map(t -> Integer.toString(t)).collect(Collectors.toList()) ) ); } private FibonacciBaseNumber fibonacciBaseNumber; private SortedSet<Integer> numberOfChipsToTake = new TreeSet<Integer>(); } Options options = new Options(arguments); State state = new State(options.getNumberOfChips(), options.isUserFirst()); FibonacciNumbers fibonacciNumbers = new FibonacciNumbers(); state.writePreSummary(System.out); do { Solver solver = new Solver(fibonacciNumbers, state); state.writeSummary(System.out); solver.writeSummary(System.out); int numberOfChipsTaken; if (state.isUserTurn()) { System.out.printf("[Input]␣User␣Takes:␣"); numberOfChipsTaken = options.readNumberOfChipsTaken(System.in, state.getNumberOfChipsTakeable()); } else { System.out.printf("[Input]␣Computer␣Takes:␣"); numberOfChipsTaken = solver.getOptimalNumberOfChipsToTake(); System.out.printf("%d%n", numberOfChipsTaken); } state.take(numberOfChipsTaken); } while (state.getNumberOfChips() > 0); state.writePostSummary(System.out);
Sample output for a game starting with
chips where the computer went first (-n 1000 -p 2), lasting for 351 turns, is shown below.
Number of Chips: 1000 Goes First: Computer --------------- [State] Turn: 1 (Computer); Chips: 1000; Takeable: 999 [Solve] Chips: 1000 = F_16 + F_7 = 987 + 13 [Solve] Optimal: 13; Possible: {13} [Input] Computer Takes: 13 [State] Turn: 2 (User); Chips: 987; Takeable: 26 [Solve] Chips: 987 = F_16 = 987 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 26 [State] Turn: 3 (Computer); Chips: 961; Takeable: 52 [Solve] Chips: 961 = F_15 + F_13 + F_11 + F_8 + F_6 = 610 + 233 + 89 + 21 + 8 [Solve] Optimal: 8; Possible: {8, 29} [Input] Computer Takes: 8 [State] Turn: 4 (User); Chips: 953; Takeable: 16 [Solve] Chips: 953 = F_15 + F_13 + F_11 + F_8 = 610 + 233 + 89 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 16 [State] Turn: 5 (Computer); Chips: 937; Takeable: 32 [Solve] Chips: 937 = F_15 + F_13 + F_11 + F_5 = 610 + 233 + 89 + 5 [Solve] Optimal: 5; Possible: {5} [Input] Computer Takes: 5 [State] Turn: 6 (User); Chips: 932; Takeable: 10 [Solve] Chips: 932 = F_15 + F_13 + F_11 = 610 + 233 + 89 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 10 [State] Turn: 7 (Computer); Chips: 922; Takeable: 20 [Solve] Chips: 922 = F_15 + F_13 + F_10 + F_8 + F_4 = 610 + 233 + 55 + 21 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 8 (User); Chips: 919; Takeable: 6 [Solve] Chips: 919 = F_15 + F_13 + F_10 + F_8 = 610 + 233 + 55 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 9 (Computer); Chips: 913; Takeable: 12 [Solve] Chips: 913 = F_15 + F_13 + F_10 + F_7 + F_3 = 610 + 233 + 55 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 10 (User); Chips: 911; Takeable: 4 [Solve] Chips: 911 = F_15 + F_13 + F_10 + F_7 = 610 + 233 + 55 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 11 (Computer); Chips: 907; Takeable: 8 [Solve] Chips: 907 = F_15 + F_13 + F_10 + F_6 + F_2 = 610 + 233 + 55 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 12 (User); Chips: 906; Takeable: 2 [Solve] Chips: 906 = F_15 + F_13 + F_10 + F_6 = 610 + 233 + 55 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 13 (Computer); Chips: 904; Takeable: 4 [Solve] Chips: 904 = F_15 + F_13 + F_10 + F_5 + F_2 = 610 + 233 + 55 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 14 (User); Chips: 903; Takeable: 2 [Solve] Chips: 903 = F_15 + F_13 + F_10 + F_5 = 610 + 233 + 55 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 15 (Computer); Chips: 901; Takeable: 4 [Solve] Chips: 901 = F_15 + F_13 + F_10 + F_4 = 610 + 233 + 55 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 16 (User); Chips: 898; Takeable: 6 [Solve] Chips: 898 = F_15 + F_13 + F_10 = 610 + 233 + 55 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 17 (Computer); Chips: 892; Takeable: 12 [Solve] Chips: 892 = F_15 + F_13 + F_9 + F_7 + F_3 = 610 + 233 + 34 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 18 (User); Chips: 890; Takeable: 4 [Solve] Chips: 890 = F_15 + F_13 + F_9 + F_7 = 610 + 233 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 19 (Computer); Chips: 886; Takeable: 8 [Solve] Chips: 886 = F_15 + F_13 + F_9 + F_6 + F_2 = 610 + 233 + 34 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 20 (User); Chips: 885; Takeable: 2 [Solve] Chips: 885 = F_15 + F_13 + F_9 + F_6 = 610 + 233 + 34 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 21 (Computer); Chips: 883; Takeable: 4 [Solve] Chips: 883 = F_15 + F_13 + F_9 + F_5 + F_2 = 610 + 233 + 34 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 22 (User); Chips: 882; Takeable: 2 [Solve] Chips: 882 = F_15 + F_13 + F_9 + F_5 = 610 + 233 + 34 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 23 (Computer); Chips: 880; Takeable: 4 [Solve] Chips: 880 = F_15 + F_13 + F_9 + F_4 = 610 + 233 + 34 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 24 (User); Chips: 877; Takeable: 6 [Solve] Chips: 877 = F_15 + F_13 + F_9 = 610 + 233 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 25 (Computer); Chips: 871; Takeable: 12 [Solve] Chips: 871 = F_15 + F_13 + F_8 + F_5 + F_3 = 610 + 233 + 21 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 26 (User); Chips: 869; Takeable: 4 [Solve] Chips: 869 = F_15 + F_13 + F_8 + F_5 = 610 + 233 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 27 (Computer); Chips: 865; Takeable: 8 [Solve] Chips: 865 = F_15 + F_13 + F_8 + F_2 = 610 + 233 + 21 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 28 (User); Chips: 864; Takeable: 2 [Solve] Chips: 864 = F_15 + F_13 + F_8 = 610 + 233 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 29 (Computer); Chips: 862; Takeable: 4 [Solve] Chips: 862 = F_15 + F_13 + F_7 + F_5 + F_2 = 610 + 233 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 30 (User); Chips: 861; Takeable: 2 [Solve] Chips: 861 = F_15 + F_13 + F_7 + F_5 = 610 + 233 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 31 (Computer); Chips: 859; Takeable: 4 [Solve] Chips: 859 = F_15 + F_13 + F_7 + F_4 = 610 + 233 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 32 (User); Chips: 856; Takeable: 6 [Solve] Chips: 856 = F_15 + F_13 + F_7 = 610 + 233 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 33 (Computer); Chips: 850; Takeable: 12 [Solve] Chips: 850 = F_15 + F_13 + F_5 + F_3 = 610 + 233 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 34 (User); Chips: 848; Takeable: 4 [Solve] Chips: 848 = F_15 + F_13 + F_5 = 610 + 233 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 35 (Computer); Chips: 844; Takeable: 8 [Solve] Chips: 844 = F_15 + F_13 + F_2 = 610 + 233 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 36 (User); Chips: 843; Takeable: 2 [Solve] Chips: 843 = F_15 + F_13 = 610 + 233 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 37 (Computer); Chips: 841; Takeable: 4 [Solve] Chips: 841 = F_15 + F_12 + F_10 + F_8 + F_6 + F_4 = 610 + 144 + 55 + 21 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 38 (User); Chips: 838; Takeable: 6 [Solve] Chips: 838 = F_15 + F_12 + F_10 + F_8 + F_6 = 610 + 144 + 55 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 39 (Computer); Chips: 832; Takeable: 12 [Solve] Chips: 832 = F_15 + F_12 + F_10 + F_8 + F_3 = 610 + 144 + 55 + 21 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 40 (User); Chips: 830; Takeable: 4 [Solve] Chips: 830 = F_15 + F_12 + F_10 + F_8 = 610 + 144 + 55 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 41 (Computer); Chips: 826; Takeable: 8 [Solve] Chips: 826 = F_15 + F_12 + F_10 + F_7 + F_4 + F_2 = 610 + 144 + 55 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 42 (User); Chips: 825; Takeable: 2 [Solve] Chips: 825 = F_15 + F_12 + F_10 + F_7 + F_4 = 610 + 144 + 55 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 43 (Computer); Chips: 823; Takeable: 4 [Solve] Chips: 823 = F_15 + F_12 + F_10 + F_7 + F_2 = 610 + 144 + 55 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 44 (User); Chips: 822; Takeable: 2 [Solve] Chips: 822 = F_15 + F_12 + F_10 + F_7 = 610 + 144 + 55 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 45 (Computer); Chips: 820; Takeable: 4 [Solve] Chips: 820 = F_15 + F_12 + F_10 + F_6 + F_4 = 610 + 144 + 55 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 46 (User); Chips: 817; Takeable: 6 [Solve] Chips: 817 = F_15 + F_12 + F_10 + F_6 = 610 + 144 + 55 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 47 (Computer); Chips: 811; Takeable: 12 [Solve] Chips: 811 = F_15 + F_12 + F_10 + F_3 = 610 + 144 + 55 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 48 (User); Chips: 809; Takeable: 4 [Solve] Chips: 809 = F_15 + F_12 + F_10 = 610 + 144 + 55 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 49 (Computer); Chips: 805; Takeable: 8 [Solve] Chips: 805 = F_15 + F_12 + F_9 + F_7 + F_4 + F_2 = 610 + 144 + 34 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 50 (User); Chips: 804; Takeable: 2 [Solve] Chips: 804 = F_15 + F_12 + F_9 + F_7 + F_4 = 610 + 144 + 34 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 51 (Computer); Chips: 802; Takeable: 4 [Solve] Chips: 802 = F_15 + F_12 + F_9 + F_7 + F_2 = 610 + 144 + 34 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 52 (User); Chips: 801; Takeable: 2 [Solve] Chips: 801 = F_15 + F_12 + F_9 + F_7 = 610 + 144 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 53 (Computer); Chips: 799; Takeable: 4 [Solve] Chips: 799 = F_15 + F_12 + F_9 + F_6 + F_4 = 610 + 144 + 34 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 54 (User); Chips: 796; Takeable: 6 [Solve] Chips: 796 = F_15 + F_12 + F_9 + F_6 = 610 + 144 + 34 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 55 (Computer); Chips: 790; Takeable: 12 [Solve] Chips: 790 = F_15 + F_12 + F_9 + F_3 = 610 + 144 + 34 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 56 (User); Chips: 788; Takeable: 4 [Solve] Chips: 788 = F_15 + F_12 + F_9 = 610 + 144 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 57 (Computer); Chips: 784; Takeable: 8 [Solve] Chips: 784 = F_15 + F_12 + F_8 + F_6 + F_2 = 610 + 144 + 21 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 58 (User); Chips: 783; Takeable: 2 [Solve] Chips: 783 = F_15 + F_12 + F_8 + F_6 = 610 + 144 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 59 (Computer); Chips: 781; Takeable: 4 [Solve] Chips: 781 = F_15 + F_12 + F_8 + F_5 + F_2 = 610 + 144 + 21 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 60 (User); Chips: 780; Takeable: 2 [Solve] Chips: 780 = F_15 + F_12 + F_8 + F_5 = 610 + 144 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 61 (Computer); Chips: 778; Takeable: 4 [Solve] Chips: 778 = F_15 + F_12 + F_8 + F_4 = 610 + 144 + 21 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 62 (User); Chips: 775; Takeable: 6 [Solve] Chips: 775 = F_15 + F_12 + F_8 = 610 + 144 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 63 (Computer); Chips: 769; Takeable: 12 [Solve] Chips: 769 = F_15 + F_12 + F_7 + F_3 = 610 + 144 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 64 (User); Chips: 767; Takeable: 4 [Solve] Chips: 767 = F_15 + F_12 + F_7 = 610 + 144 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 65 (Computer); Chips: 763; Takeable: 8 [Solve] Chips: 763 = F_15 + F_12 + F_6 + F_2 = 610 + 144 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 66 (User); Chips: 762; Takeable: 2 [Solve] Chips: 762 = F_15 + F_12 + F_6 = 610 + 144 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 67 (Computer); Chips: 760; Takeable: 4 [Solve] Chips: 760 = F_15 + F_12 + F_5 + F_2 = 610 + 144 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 68 (User); Chips: 759; Takeable: 2 [Solve] Chips: 759 = F_15 + F_12 + F_5 = 610 + 144 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 69 (Computer); Chips: 757; Takeable: 4 [Solve] Chips: 757 = F_15 + F_12 + F_4 = 610 + 144 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 70 (User); Chips: 754; Takeable: 6 [Solve] Chips: 754 = F_15 + F_12 = 610 + 144 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 71 (Computer); Chips: 748; Takeable: 12 [Solve] Chips: 748 = F_15 + F_11 + F_9 + F_7 + F_3 = 610 + 89 + 34 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 72 (User); Chips: 746; Takeable: 4 [Solve] Chips: 746 = F_15 + F_11 + F_9 + F_7 = 610 + 89 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 73 (Computer); Chips: 742; Takeable: 8 [Solve] Chips: 742 = F_15 + F_11 + F_9 + F_6 + F_2 = 610 + 89 + 34 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 74 (User); Chips: 741; Takeable: 2 [Solve] Chips: 741 = F_15 + F_11 + F_9 + F_6 = 610 + 89 + 34 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 75 (Computer); Chips: 739; Takeable: 4 [Solve] Chips: 739 = F_15 + F_11 + F_9 + F_5 + F_2 = 610 + 89 + 34 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 76 (User); Chips: 738; Takeable: 2 [Solve] Chips: 738 = F_15 + F_11 + F_9 + F_5 = 610 + 89 + 34 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 77 (Computer); Chips: 736; Takeable: 4 [Solve] Chips: 736 = F_15 + F_11 + F_9 + F_4 = 610 + 89 + 34 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 78 (User); Chips: 733; Takeable: 6 [Solve] Chips: 733 = F_15 + F_11 + F_9 = 610 + 89 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 79 (Computer); Chips: 727; Takeable: 12 [Solve] Chips: 727 = F_15 + F_11 + F_8 + F_5 + F_3 = 610 + 89 + 21 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 80 (User); Chips: 725; Takeable: 4 [Solve] Chips: 725 = F_15 + F_11 + F_8 + F_5 = 610 + 89 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 81 (Computer); Chips: 721; Takeable: 8 [Solve] Chips: 721 = F_15 + F_11 + F_8 + F_2 = 610 + 89 + 21 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 82 (User); Chips: 720; Takeable: 2 [Solve] Chips: 720 = F_15 + F_11 + F_8 = 610 + 89 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 83 (Computer); Chips: 718; Takeable: 4 [Solve] Chips: 718 = F_15 + F_11 + F_7 + F_5 + F_2 = 610 + 89 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 84 (User); Chips: 717; Takeable: 2 [Solve] Chips: 717 = F_15 + F_11 + F_7 + F_5 = 610 + 89 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 85 (Computer); Chips: 715; Takeable: 4 [Solve] Chips: 715 = F_15 + F_11 + F_7 + F_4 = 610 + 89 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 86 (User); Chips: 712; Takeable: 6 [Solve] Chips: 712 = F_15 + F_11 + F_7 = 610 + 89 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 87 (Computer); Chips: 706; Takeable: 12 [Solve] Chips: 706 = F_15 + F_11 + F_5 + F_3 = 610 + 89 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 88 (User); Chips: 704; Takeable: 4 [Solve] Chips: 704 = F_15 + F_11 + F_5 = 610 + 89 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 89 (Computer); Chips: 700; Takeable: 8 [Solve] Chips: 700 = F_15 + F_11 + F_2 = 610 + 89 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 90 (User); Chips: 699; Takeable: 2 [Solve] Chips: 699 = F_15 + F_11 = 610 + 89 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 91 (Computer); Chips: 697; Takeable: 4 [Solve] Chips: 697 = F_15 + F_10 + F_8 + F_6 + F_4 = 610 + 55 + 21 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 92 (User); Chips: 694; Takeable: 6 [Solve] Chips: 694 = F_15 + F_10 + F_8 + F_6 = 610 + 55 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 93 (Computer); Chips: 688; Takeable: 12 [Solve] Chips: 688 = F_15 + F_10 + F_8 + F_3 = 610 + 55 + 21 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 94 (User); Chips: 686; Takeable: 4 [Solve] Chips: 686 = F_15 + F_10 + F_8 = 610 + 55 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 95 (Computer); Chips: 682; Takeable: 8 [Solve] Chips: 682 = F_15 + F_10 + F_7 + F_4 + F_2 = 610 + 55 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 96 (User); Chips: 681; Takeable: 2 [Solve] Chips: 681 = F_15 + F_10 + F_7 + F_4 = 610 + 55 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 97 (Computer); Chips: 679; Takeable: 4 [Solve] Chips: 679 = F_15 + F_10 + F_7 + F_2 = 610 + 55 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 98 (User); Chips: 678; Takeable: 2 [Solve] Chips: 678 = F_15 + F_10 + F_7 = 610 + 55 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 99 (Computer); Chips: 676; Takeable: 4 [Solve] Chips: 676 = F_15 + F_10 + F_6 + F_4 = 610 + 55 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 100 (User); Chips: 673; Takeable: 6 [Solve] Chips: 673 = F_15 + F_10 + F_6 = 610 + 55 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 101 (Computer); Chips: 667; Takeable: 12 [Solve] Chips: 667 = F_15 + F_10 + F_3 = 610 + 55 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 102 (User); Chips: 665; Takeable: 4 [Solve] Chips: 665 = F_15 + F_10 = 610 + 55 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 103 (Computer); Chips: 661; Takeable: 8 [Solve] Chips: 661 = F_15 + F_9 + F_7 + F_4 + F_2 = 610 + 34 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 104 (User); Chips: 660; Takeable: 2 [Solve] Chips: 660 = F_15 + F_9 + F_7 + F_4 = 610 + 34 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 105 (Computer); Chips: 658; Takeable: 4 [Solve] Chips: 658 = F_15 + F_9 + F_7 + F_2 = 610 + 34 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 106 (User); Chips: 657; Takeable: 2 [Solve] Chips: 657 = F_15 + F_9 + F_7 = 610 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 107 (Computer); Chips: 655; Takeable: 4 [Solve] Chips: 655 = F_15 + F_9 + F_6 + F_4 = 610 + 34 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 108 (User); Chips: 652; Takeable: 6 [Solve] Chips: 652 = F_15 + F_9 + F_6 = 610 + 34 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 109 (Computer); Chips: 646; Takeable: 12 [Solve] Chips: 646 = F_15 + F_9 + F_3 = 610 + 34 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 110 (User); Chips: 644; Takeable: 4 [Solve] Chips: 644 = F_15 + F_9 = 610 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 111 (Computer); Chips: 640; Takeable: 8 [Solve] Chips: 640 = F_15 + F_8 + F_6 + F_2 = 610 + 21 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 112 (User); Chips: 639; Takeable: 2 [Solve] Chips: 639 = F_15 + F_8 + F_6 = 610 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 113 (Computer); Chips: 637; Takeable: 4 [Solve] Chips: 637 = F_15 + F_8 + F_5 + F_2 = 610 + 21 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 114 (User); Chips: 636; Takeable: 2 [Solve] Chips: 636 = F_15 + F_8 + F_5 = 610 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 115 (Computer); Chips: 634; Takeable: 4 [Solve] Chips: 634 = F_15 + F_8 + F_4 = 610 + 21 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 116 (User); Chips: 631; Takeable: 6 [Solve] Chips: 631 = F_15 + F_8 = 610 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 117 (Computer); Chips: 625; Takeable: 12 [Solve] Chips: 625 = F_15 + F_7 + F_3 = 610 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 118 (User); Chips: 623; Takeable: 4 [Solve] Chips: 623 = F_15 + F_7 = 610 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 119 (Computer); Chips: 619; Takeable: 8 [Solve] Chips: 619 = F_15 + F_6 + F_2 = 610 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 120 (User); Chips: 618; Takeable: 2 [Solve] Chips: 618 = F_15 + F_6 = 610 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 121 (Computer); Chips: 616; Takeable: 4 [Solve] Chips: 616 = F_15 + F_5 + F_2 = 610 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 122 (User); Chips: 615; Takeable: 2 [Solve] Chips: 615 = F_15 + F_5 = 610 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 123 (Computer); Chips: 613; Takeable: 4 [Solve] Chips: 613 = F_15 + F_4 = 610 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 124 (User); Chips: 610; Takeable: 6 [Solve] Chips: 610 = F_15 = 610 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 125 (Computer); Chips: 604; Takeable: 12 [Solve] Chips: 604 = F_14 + F_12 + F_10 + F_8 + F_5 + F_3 = 377 + 144 + 55 + 21 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 126 (User); Chips: 602; Takeable: 4 [Solve] Chips: 602 = F_14 + F_12 + F_10 + F_8 + F_5 = 377 + 144 + 55 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 127 (Computer); Chips: 598; Takeable: 8 [Solve] Chips: 598 = F_14 + F_12 + F_10 + F_8 + F_2 = 377 + 144 + 55 + 21 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 128 (User); Chips: 597; Takeable: 2 [Solve] Chips: 597 = F_14 + F_12 + F_10 + F_8 = 377 + 144 + 55 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 129 (Computer); Chips: 595; Takeable: 4 [Solve] Chips: 595 = F_14 + F_12 + F_10 + F_7 + F_5 + F_2 = 377 + 144 + 55 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 130 (User); Chips: 594; Takeable: 2 [Solve] Chips: 594 = F_14 + F_12 + F_10 + F_7 + F_5 = 377 + 144 + 55 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 131 (Computer); Chips: 592; Takeable: 4 [Solve] Chips: 592 = F_14 + F_12 + F_10 + F_7 + F_4 = 377 + 144 + 55 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 132 (User); Chips: 589; Takeable: 6 [Solve] Chips: 589 = F_14 + F_12 + F_10 + F_7 = 377 + 144 + 55 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 133 (Computer); Chips: 583; Takeable: 12 [Solve] Chips: 583 = F_14 + F_12 + F_10 + F_5 + F_3 = 377 + 144 + 55 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 134 (User); Chips: 581; Takeable: 4 [Solve] Chips: 581 = F_14 + F_12 + F_10 + F_5 = 377 + 144 + 55 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 135 (Computer); Chips: 577; Takeable: 8 [Solve] Chips: 577 = F_14 + F_12 + F_10 + F_2 = 377 + 144 + 55 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 136 (User); Chips: 576; Takeable: 2 [Solve] Chips: 576 = F_14 + F_12 + F_10 = 377 + 144 + 55 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 137 (Computer); Chips: 574; Takeable: 4 [Solve] Chips: 574 = F_14 + F_12 + F_9 + F_7 + F_5 + F_2 = 377 + 144 + 34 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 138 (User); Chips: 573; Takeable: 2 [Solve] Chips: 573 = F_14 + F_12 + F_9 + F_7 + F_5 = 377 + 144 + 34 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 139 (Computer); Chips: 571; Takeable: 4 [Solve] Chips: 571 = F_14 + F_12 + F_9 + F_7 + F_4 = 377 + 144 + 34 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 140 (User); Chips: 568; Takeable: 6 [Solve] Chips: 568 = F_14 + F_12 + F_9 + F_7 = 377 + 144 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 141 (Computer); Chips: 562; Takeable: 12 [Solve] Chips: 562 = F_14 + F_12 + F_9 + F_5 + F_3 = 377 + 144 + 34 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 142 (User); Chips: 560; Takeable: 4 [Solve] Chips: 560 = F_14 + F_12 + F_9 + F_5 = 377 + 144 + 34 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 143 (Computer); Chips: 556; Takeable: 8 [Solve] Chips: 556 = F_14 + F_12 + F_9 + F_2 = 377 + 144 + 34 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 144 (User); Chips: 555; Takeable: 2 [Solve] Chips: 555 = F_14 + F_12 + F_9 = 377 + 144 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 145 (Computer); Chips: 553; Takeable: 4 [Solve] Chips: 553 = F_14 + F_12 + F_8 + F_6 + F_4 = 377 + 144 + 21 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 146 (User); Chips: 550; Takeable: 6 [Solve] Chips: 550 = F_14 + F_12 + F_8 + F_6 = 377 + 144 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 147 (Computer); Chips: 544; Takeable: 12 [Solve] Chips: 544 = F_14 + F_12 + F_8 + F_3 = 377 + 144 + 21 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 148 (User); Chips: 542; Takeable: 4 [Solve] Chips: 542 = F_14 + F_12 + F_8 = 377 + 144 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 149 (Computer); Chips: 538; Takeable: 8 [Solve] Chips: 538 = F_14 + F_12 + F_7 + F_4 + F_2 = 377 + 144 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 150 (User); Chips: 537; Takeable: 2 [Solve] Chips: 537 = F_14 + F_12 + F_7 + F_4 = 377 + 144 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 151 (Computer); Chips: 535; Takeable: 4 [Solve] Chips: 535 = F_14 + F_12 + F_7 + F_2 = 377 + 144 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 152 (User); Chips: 534; Takeable: 2 [Solve] Chips: 534 = F_14 + F_12 + F_7 = 377 + 144 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 153 (Computer); Chips: 532; Takeable: 4 [Solve] Chips: 532 = F_14 + F_12 + F_6 + F_4 = 377 + 144 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 154 (User); Chips: 529; Takeable: 6 [Solve] Chips: 529 = F_14 + F_12 + F_6 = 377 + 144 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 155 (Computer); Chips: 523; Takeable: 12 [Solve] Chips: 523 = F_14 + F_12 + F_3 = 377 + 144 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 156 (User); Chips: 521; Takeable: 4 [Solve] Chips: 521 = F_14 + F_12 = 377 + 144 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 157 (Computer); Chips: 517; Takeable: 8 [Solve] Chips: 517 = F_14 + F_11 + F_9 + F_7 + F_4 + F_2 = 377 + 89 + 34 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 158 (User); Chips: 516; Takeable: 2 [Solve] Chips: 516 = F_14 + F_11 + F_9 + F_7 + F_4 = 377 + 89 + 34 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 159 (Computer); Chips: 514; Takeable: 4 [Solve] Chips: 514 = F_14 + F_11 + F_9 + F_7 + F_2 = 377 + 89 + 34 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 160 (User); Chips: 513; Takeable: 2 [Solve] Chips: 513 = F_14 + F_11 + F_9 + F_7 = 377 + 89 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 161 (Computer); Chips: 511; Takeable: 4 [Solve] Chips: 511 = F_14 + F_11 + F_9 + F_6 + F_4 = 377 + 89 + 34 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 162 (User); Chips: 508; Takeable: 6 [Solve] Chips: 508 = F_14 + F_11 + F_9 + F_6 = 377 + 89 + 34 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 163 (Computer); Chips: 502; Takeable: 12 [Solve] Chips: 502 = F_14 + F_11 + F_9 + F_3 = 377 + 89 + 34 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 164 (User); Chips: 500; Takeable: 4 [Solve] Chips: 500 = F_14 + F_11 + F_9 = 377 + 89 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 165 (Computer); Chips: 496; Takeable: 8 [Solve] Chips: 496 = F_14 + F_11 + F_8 + F_6 + F_2 = 377 + 89 + 21 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 166 (User); Chips: 495; Takeable: 2 [Solve] Chips: 495 = F_14 + F_11 + F_8 + F_6 = 377 + 89 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 167 (Computer); Chips: 493; Takeable: 4 [Solve] Chips: 493 = F_14 + F_11 + F_8 + F_5 + F_2 = 377 + 89 + 21 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 168 (User); Chips: 492; Takeable: 2 [Solve] Chips: 492 = F_14 + F_11 + F_8 + F_5 = 377 + 89 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 169 (Computer); Chips: 490; Takeable: 4 [Solve] Chips: 490 = F_14 + F_11 + F_8 + F_4 = 377 + 89 + 21 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 170 (User); Chips: 487; Takeable: 6 [Solve] Chips: 487 = F_14 + F_11 + F_8 = 377 + 89 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 171 (Computer); Chips: 481; Takeable: 12 [Solve] Chips: 481 = F_14 + F_11 + F_7 + F_3 = 377 + 89 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 172 (User); Chips: 479; Takeable: 4 [Solve] Chips: 479 = F_14 + F_11 + F_7 = 377 + 89 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 173 (Computer); Chips: 475; Takeable: 8 [Solve] Chips: 475 = F_14 + F_11 + F_6 + F_2 = 377 + 89 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 174 (User); Chips: 474; Takeable: 2 [Solve] Chips: 474 = F_14 + F_11 + F_6 = 377 + 89 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 175 (Computer); Chips: 472; Takeable: 4 [Solve] Chips: 472 = F_14 + F_11 + F_5 + F_2 = 377 + 89 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 176 (User); Chips: 471; Takeable: 2 [Solve] Chips: 471 = F_14 + F_11 + F_5 = 377 + 89 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 177 (Computer); Chips: 469; Takeable: 4 [Solve] Chips: 469 = F_14 + F_11 + F_4 = 377 + 89 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 178 (User); Chips: 466; Takeable: 6 [Solve] Chips: 466 = F_14 + F_11 = 377 + 89 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 179 (Computer); Chips: 460; Takeable: 12 [Solve] Chips: 460 = F_14 + F_10 + F_8 + F_5 + F_3 = 377 + 55 + 21 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 180 (User); Chips: 458; Takeable: 4 [Solve] Chips: 458 = F_14 + F_10 + F_8 + F_5 = 377 + 55 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 181 (Computer); Chips: 454; Takeable: 8 [Solve] Chips: 454 = F_14 + F_10 + F_8 + F_2 = 377 + 55 + 21 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 182 (User); Chips: 453; Takeable: 2 [Solve] Chips: 453 = F_14 + F_10 + F_8 = 377 + 55 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 183 (Computer); Chips: 451; Takeable: 4 [Solve] Chips: 451 = F_14 + F_10 + F_7 + F_5 + F_2 = 377 + 55 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 184 (User); Chips: 450; Takeable: 2 [Solve] Chips: 450 = F_14 + F_10 + F_7 + F_5 = 377 + 55 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 185 (Computer); Chips: 448; Takeable: 4 [Solve] Chips: 448 = F_14 + F_10 + F_7 + F_4 = 377 + 55 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 186 (User); Chips: 445; Takeable: 6 [Solve] Chips: 445 = F_14 + F_10 + F_7 = 377 + 55 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 187 (Computer); Chips: 439; Takeable: 12 [Solve] Chips: 439 = F_14 + F_10 + F_5 + F_3 = 377 + 55 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 188 (User); Chips: 437; Takeable: 4 [Solve] Chips: 437 = F_14 + F_10 + F_5 = 377 + 55 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 189 (Computer); Chips: 433; Takeable: 8 [Solve] Chips: 433 = F_14 + F_10 + F_2 = 377 + 55 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 190 (User); Chips: 432; Takeable: 2 [Solve] Chips: 432 = F_14 + F_10 = 377 + 55 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 191 (Computer); Chips: 430; Takeable: 4 [Solve] Chips: 430 = F_14 + F_9 + F_7 + F_5 + F_2 = 377 + 34 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 192 (User); Chips: 429; Takeable: 2 [Solve] Chips: 429 = F_14 + F_9 + F_7 + F_5 = 377 + 34 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 193 (Computer); Chips: 427; Takeable: 4 [Solve] Chips: 427 = F_14 + F_9 + F_7 + F_4 = 377 + 34 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 194 (User); Chips: 424; Takeable: 6 [Solve] Chips: 424 = F_14 + F_9 + F_7 = 377 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 195 (Computer); Chips: 418; Takeable: 12 [Solve] Chips: 418 = F_14 + F_9 + F_5 + F_3 = 377 + 34 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 196 (User); Chips: 416; Takeable: 4 [Solve] Chips: 416 = F_14 + F_9 + F_5 = 377 + 34 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 197 (Computer); Chips: 412; Takeable: 8 [Solve] Chips: 412 = F_14 + F_9 + F_2 = 377 + 34 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 198 (User); Chips: 411; Takeable: 2 [Solve] Chips: 411 = F_14 + F_9 = 377 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 199 (Computer); Chips: 409; Takeable: 4 [Solve] Chips: 409 = F_14 + F_8 + F_6 + F_4 = 377 + 21 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 200 (User); Chips: 406; Takeable: 6 [Solve] Chips: 406 = F_14 + F_8 + F_6 = 377 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 201 (Computer); Chips: 400; Takeable: 12 [Solve] Chips: 400 = F_14 + F_8 + F_3 = 377 + 21 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 202 (User); Chips: 398; Takeable: 4 [Solve] Chips: 398 = F_14 + F_8 = 377 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 203 (Computer); Chips: 394; Takeable: 8 [Solve] Chips: 394 = F_14 + F_7 + F_4 + F_2 = 377 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 204 (User); Chips: 393; Takeable: 2 [Solve] Chips: 393 = F_14 + F_7 + F_4 = 377 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 205 (Computer); Chips: 391; Takeable: 4 [Solve] Chips: 391 = F_14 + F_7 + F_2 = 377 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 206 (User); Chips: 390; Takeable: 2 [Solve] Chips: 390 = F_14 + F_7 = 377 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 207 (Computer); Chips: 388; Takeable: 4 [Solve] Chips: 388 = F_14 + F_6 + F_4 = 377 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 208 (User); Chips: 385; Takeable: 6 [Solve] Chips: 385 = F_14 + F_6 = 377 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 209 (Computer); Chips: 379; Takeable: 12 [Solve] Chips: 379 = F_14 + F_3 = 377 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 210 (User); Chips: 377; Takeable: 4 [Solve] Chips: 377 = F_14 = 377 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 211 (Computer); Chips: 373; Takeable: 8 [Solve] Chips: 373 = F_13 + F_11 + F_9 + F_7 + F_4 + F_2 = 233 + 89 + 34 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 212 (User); Chips: 372; Takeable: 2 [Solve] Chips: 372 = F_13 + F_11 + F_9 + F_7 + F_4 = 233 + 89 + 34 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 213 (Computer); Chips: 370; Takeable: 4 [Solve] Chips: 370 = F_13 + F_11 + F_9 + F_7 + F_2 = 233 + 89 + 34 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 214 (User); Chips: 369; Takeable: 2 [Solve] Chips: 369 = F_13 + F_11 + F_9 + F_7 = 233 + 89 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 215 (Computer); Chips: 367; Takeable: 4 [Solve] Chips: 367 = F_13 + F_11 + F_9 + F_6 + F_4 = 233 + 89 + 34 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 216 (User); Chips: 364; Takeable: 6 [Solve] Chips: 364 = F_13 + F_11 + F_9 + F_6 = 233 + 89 + 34 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 217 (Computer); Chips: 358; Takeable: 12 [Solve] Chips: 358 = F_13 + F_11 + F_9 + F_3 = 233 + 89 + 34 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 218 (User); Chips: 356; Takeable: 4 [Solve] Chips: 356 = F_13 + F_11 + F_9 = 233 + 89 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 219 (Computer); Chips: 352; Takeable: 8 [Solve] Chips: 352 = F_13 + F_11 + F_8 + F_6 + F_2 = 233 + 89 + 21 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 220 (User); Chips: 351; Takeable: 2 [Solve] Chips: 351 = F_13 + F_11 + F_8 + F_6 = 233 + 89 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 221 (Computer); Chips: 349; Takeable: 4 [Solve] Chips: 349 = F_13 + F_11 + F_8 + F_5 + F_2 = 233 + 89 + 21 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 222 (User); Chips: 348; Takeable: 2 [Solve] Chips: 348 = F_13 + F_11 + F_8 + F_5 = 233 + 89 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 223 (Computer); Chips: 346; Takeable: 4 [Solve] Chips: 346 = F_13 + F_11 + F_8 + F_4 = 233 + 89 + 21 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 224 (User); Chips: 343; Takeable: 6 [Solve] Chips: 343 = F_13 + F_11 + F_8 = 233 + 89 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 225 (Computer); Chips: 337; Takeable: 12 [Solve] Chips: 337 = F_13 + F_11 + F_7 + F_3 = 233 + 89 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 226 (User); Chips: 335; Takeable: 4 [Solve] Chips: 335 = F_13 + F_11 + F_7 = 233 + 89 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 227 (Computer); Chips: 331; Takeable: 8 [Solve] Chips: 331 = F_13 + F_11 + F_6 + F_2 = 233 + 89 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 228 (User); Chips: 330; Takeable: 2 [Solve] Chips: 330 = F_13 + F_11 + F_6 = 233 + 89 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 229 (Computer); Chips: 328; Takeable: 4 [Solve] Chips: 328 = F_13 + F_11 + F_5 + F_2 = 233 + 89 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 230 (User); Chips: 327; Takeable: 2 [Solve] Chips: 327 = F_13 + F_11 + F_5 = 233 + 89 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 231 (Computer); Chips: 325; Takeable: 4 [Solve] Chips: 325 = F_13 + F_11 + F_4 = 233 + 89 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 232 (User); Chips: 322; Takeable: 6 [Solve] Chips: 322 = F_13 + F_11 = 233 + 89 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 233 (Computer); Chips: 316; Takeable: 12 [Solve] Chips: 316 = F_13 + F_10 + F_8 + F_5 + F_3 = 233 + 55 + 21 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 234 (User); Chips: 314; Takeable: 4 [Solve] Chips: 314 = F_13 + F_10 + F_8 + F_5 = 233 + 55 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 235 (Computer); Chips: 310; Takeable: 8 [Solve] Chips: 310 = F_13 + F_10 + F_8 + F_2 = 233 + 55 + 21 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 236 (User); Chips: 309; Takeable: 2 [Solve] Chips: 309 = F_13 + F_10 + F_8 = 233 + 55 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 237 (Computer); Chips: 307; Takeable: 4 [Solve] Chips: 307 = F_13 + F_10 + F_7 + F_5 + F_2 = 233 + 55 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 238 (User); Chips: 306; Takeable: 2 [Solve] Chips: 306 = F_13 + F_10 + F_7 + F_5 = 233 + 55 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 239 (Computer); Chips: 304; Takeable: 4 [Solve] Chips: 304 = F_13 + F_10 + F_7 + F_4 = 233 + 55 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 240 (User); Chips: 301; Takeable: 6 [Solve] Chips: 301 = F_13 + F_10 + F_7 = 233 + 55 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 241 (Computer); Chips: 295; Takeable: 12 [Solve] Chips: 295 = F_13 + F_10 + F_5 + F_3 = 233 + 55 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 242 (User); Chips: 293; Takeable: 4 [Solve] Chips: 293 = F_13 + F_10 + F_5 = 233 + 55 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 243 (Computer); Chips: 289; Takeable: 8 [Solve] Chips: 289 = F_13 + F_10 + F_2 = 233 + 55 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 244 (User); Chips: 288; Takeable: 2 [Solve] Chips: 288 = F_13 + F_10 = 233 + 55 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 245 (Computer); Chips: 286; Takeable: 4 [Solve] Chips: 286 = F_13 + F_9 + F_7 + F_5 + F_2 = 233 + 34 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 246 (User); Chips: 285; Takeable: 2 [Solve] Chips: 285 = F_13 + F_9 + F_7 + F_5 = 233 + 34 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 247 (Computer); Chips: 283; Takeable: 4 [Solve] Chips: 283 = F_13 + F_9 + F_7 + F_4 = 233 + 34 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 248 (User); Chips: 280; Takeable: 6 [Solve] Chips: 280 = F_13 + F_9 + F_7 = 233 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 249 (Computer); Chips: 274; Takeable: 12 [Solve] Chips: 274 = F_13 + F_9 + F_5 + F_3 = 233 + 34 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 250 (User); Chips: 272; Takeable: 4 [Solve] Chips: 272 = F_13 + F_9 + F_5 = 233 + 34 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 251 (Computer); Chips: 268; Takeable: 8 [Solve] Chips: 268 = F_13 + F_9 + F_2 = 233 + 34 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 252 (User); Chips: 267; Takeable: 2 [Solve] Chips: 267 = F_13 + F_9 = 233 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 253 (Computer); Chips: 265; Takeable: 4 [Solve] Chips: 265 = F_13 + F_8 + F_6 + F_4 = 233 + 21 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 254 (User); Chips: 262; Takeable: 6 [Solve] Chips: 262 = F_13 + F_8 + F_6 = 233 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 255 (Computer); Chips: 256; Takeable: 12 [Solve] Chips: 256 = F_13 + F_8 + F_3 = 233 + 21 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 256 (User); Chips: 254; Takeable: 4 [Solve] Chips: 254 = F_13 + F_8 = 233 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 257 (Computer); Chips: 250; Takeable: 8 [Solve] Chips: 250 = F_13 + F_7 + F_4 + F_2 = 233 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 258 (User); Chips: 249; Takeable: 2 [Solve] Chips: 249 = F_13 + F_7 + F_4 = 233 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 259 (Computer); Chips: 247; Takeable: 4 [Solve] Chips: 247 = F_13 + F_7 + F_2 = 233 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 260 (User); Chips: 246; Takeable: 2 [Solve] Chips: 246 = F_13 + F_7 = 233 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 261 (Computer); Chips: 244; Takeable: 4 [Solve] Chips: 244 = F_13 + F_6 + F_4 = 233 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 262 (User); Chips: 241; Takeable: 6 [Solve] Chips: 241 = F_13 + F_6 = 233 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 263 (Computer); Chips: 235; Takeable: 12 [Solve] Chips: 235 = F_13 + F_3 = 233 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 264 (User); Chips: 233; Takeable: 4 [Solve] Chips: 233 = F_13 = 233 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 265 (Computer); Chips: 229; Takeable: 8 [Solve] Chips: 229 = F_12 + F_10 + F_8 + F_6 + F_2 = 144 + 55 + 21 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 266 (User); Chips: 228; Takeable: 2 [Solve] Chips: 228 = F_12 + F_10 + F_8 + F_6 = 144 + 55 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 267 (Computer); Chips: 226; Takeable: 4 [Solve] Chips: 226 = F_12 + F_10 + F_8 + F_5 + F_2 = 144 + 55 + 21 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 268 (User); Chips: 225; Takeable: 2 [Solve] Chips: 225 = F_12 + F_10 + F_8 + F_5 = 144 + 55 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 269 (Computer); Chips: 223; Takeable: 4 [Solve] Chips: 223 = F_12 + F_10 + F_8 + F_4 = 144 + 55 + 21 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 270 (User); Chips: 220; Takeable: 6 [Solve] Chips: 220 = F_12 + F_10 + F_8 = 144 + 55 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 271 (Computer); Chips: 214; Takeable: 12 [Solve] Chips: 214 = F_12 + F_10 + F_7 + F_3 = 144 + 55 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 272 (User); Chips: 212; Takeable: 4 [Solve] Chips: 212 = F_12 + F_10 + F_7 = 144 + 55 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 273 (Computer); Chips: 208; Takeable: 8 [Solve] Chips: 208 = F_12 + F_10 + F_6 + F_2 = 144 + 55 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 274 (User); Chips: 207; Takeable: 2 [Solve] Chips: 207 = F_12 + F_10 + F_6 = 144 + 55 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 275 (Computer); Chips: 205; Takeable: 4 [Solve] Chips: 205 = F_12 + F_10 + F_5 + F_2 = 144 + 55 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 276 (User); Chips: 204; Takeable: 2 [Solve] Chips: 204 = F_12 + F_10 + F_5 = 144 + 55 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 277 (Computer); Chips: 202; Takeable: 4 [Solve] Chips: 202 = F_12 + F_10 + F_4 = 144 + 55 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 278 (User); Chips: 199; Takeable: 6 [Solve] Chips: 199 = F_12 + F_10 = 144 + 55 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 279 (Computer); Chips: 193; Takeable: 12 [Solve] Chips: 193 = F_12 + F_9 + F_7 + F_3 = 144 + 34 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 280 (User); Chips: 191; Takeable: 4 [Solve] Chips: 191 = F_12 + F_9 + F_7 = 144 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 281 (Computer); Chips: 187; Takeable: 8 [Solve] Chips: 187 = F_12 + F_9 + F_6 + F_2 = 144 + 34 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 282 (User); Chips: 186; Takeable: 2 [Solve] Chips: 186 = F_12 + F_9 + F_6 = 144 + 34 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 283 (Computer); Chips: 184; Takeable: 4 [Solve] Chips: 184 = F_12 + F_9 + F_5 + F_2 = 144 + 34 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 284 (User); Chips: 183; Takeable: 2 [Solve] Chips: 183 = F_12 + F_9 + F_5 = 144 + 34 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 285 (Computer); Chips: 181; Takeable: 4 [Solve] Chips: 181 = F_12 + F_9 + F_4 = 144 + 34 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 286 (User); Chips: 178; Takeable: 6 [Solve] Chips: 178 = F_12 + F_9 = 144 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 287 (Computer); Chips: 172; Takeable: 12 [Solve] Chips: 172 = F_12 + F_8 + F_5 + F_3 = 144 + 21 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 288 (User); Chips: 170; Takeable: 4 [Solve] Chips: 170 = F_12 + F_8 + F_5 = 144 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 289 (Computer); Chips: 166; Takeable: 8 [Solve] Chips: 166 = F_12 + F_8 + F_2 = 144 + 21 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 290 (User); Chips: 165; Takeable: 2 [Solve] Chips: 165 = F_12 + F_8 = 144 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 291 (Computer); Chips: 163; Takeable: 4 [Solve] Chips: 163 = F_12 + F_7 + F_5 + F_2 = 144 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 292 (User); Chips: 162; Takeable: 2 [Solve] Chips: 162 = F_12 + F_7 + F_5 = 144 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 293 (Computer); Chips: 160; Takeable: 4 [Solve] Chips: 160 = F_12 + F_7 + F_4 = 144 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 294 (User); Chips: 157; Takeable: 6 [Solve] Chips: 157 = F_12 + F_7 = 144 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 295 (Computer); Chips: 151; Takeable: 12 [Solve] Chips: 151 = F_12 + F_5 + F_3 = 144 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 296 (User); Chips: 149; Takeable: 4 [Solve] Chips: 149 = F_12 + F_5 = 144 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 297 (Computer); Chips: 145; Takeable: 8 [Solve] Chips: 145 = F_12 + F_2 = 144 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 298 (User); Chips: 144; Takeable: 2 [Solve] Chips: 144 = F_12 = 144 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 299 (Computer); Chips: 142; Takeable: 4 [Solve] Chips: 142 = F_11 + F_9 + F_7 + F_5 + F_2 = 89 + 34 + 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 300 (User); Chips: 141; Takeable: 2 [Solve] Chips: 141 = F_11 + F_9 + F_7 + F_5 = 89 + 34 + 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 301 (Computer); Chips: 139; Takeable: 4 [Solve] Chips: 139 = F_11 + F_9 + F_7 + F_4 = 89 + 34 + 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 302 (User); Chips: 136; Takeable: 6 [Solve] Chips: 136 = F_11 + F_9 + F_7 = 89 + 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 303 (Computer); Chips: 130; Takeable: 12 [Solve] Chips: 130 = F_11 + F_9 + F_5 + F_3 = 89 + 34 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 304 (User); Chips: 128; Takeable: 4 [Solve] Chips: 128 = F_11 + F_9 + F_5 = 89 + 34 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 305 (Computer); Chips: 124; Takeable: 8 [Solve] Chips: 124 = F_11 + F_9 + F_2 = 89 + 34 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 306 (User); Chips: 123; Takeable: 2 [Solve] Chips: 123 = F_11 + F_9 = 89 + 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 307 (Computer); Chips: 121; Takeable: 4 [Solve] Chips: 121 = F_11 + F_8 + F_6 + F_4 = 89 + 21 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 308 (User); Chips: 118; Takeable: 6 [Solve] Chips: 118 = F_11 + F_8 + F_6 = 89 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 309 (Computer); Chips: 112; Takeable: 12 [Solve] Chips: 112 = F_11 + F_8 + F_3 = 89 + 21 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 310 (User); Chips: 110; Takeable: 4 [Solve] Chips: 110 = F_11 + F_8 = 89 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 311 (Computer); Chips: 106; Takeable: 8 [Solve] Chips: 106 = F_11 + F_7 + F_4 + F_2 = 89 + 13 + 3 + 1 [Solve] Optimal: 1; Possible: {1, 4} [Input] Computer Takes: 1 [State] Turn: 312 (User); Chips: 105; Takeable: 2 [Solve] Chips: 105 = F_11 + F_7 + F_4 = 89 + 13 + 3 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 313 (Computer); Chips: 103; Takeable: 4 [Solve] Chips: 103 = F_11 + F_7 + F_2 = 89 + 13 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 314 (User); Chips: 102; Takeable: 2 [Solve] Chips: 102 = F_11 + F_7 = 89 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 315 (Computer); Chips: 100; Takeable: 4 [Solve] Chips: 100 = F_11 + F_6 + F_4 = 89 + 8 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 316 (User); Chips: 97; Takeable: 6 [Solve] Chips: 97 = F_11 + F_6 = 89 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 317 (Computer); Chips: 91; Takeable: 12 [Solve] Chips: 91 = F_11 + F_3 = 89 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 318 (User); Chips: 89; Takeable: 4 [Solve] Chips: 89 = F_11 = 89 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 319 (Computer); Chips: 85; Takeable: 8 [Solve] Chips: 85 = F_10 + F_8 + F_6 + F_2 = 55 + 21 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 320 (User); Chips: 84; Takeable: 2 [Solve] Chips: 84 = F_10 + F_8 + F_6 = 55 + 21 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 321 (Computer); Chips: 82; Takeable: 4 [Solve] Chips: 82 = F_10 + F_8 + F_5 + F_2 = 55 + 21 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 322 (User); Chips: 81; Takeable: 2 [Solve] Chips: 81 = F_10 + F_8 + F_5 = 55 + 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 323 (Computer); Chips: 79; Takeable: 4 [Solve] Chips: 79 = F_10 + F_8 + F_4 = 55 + 21 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 324 (User); Chips: 76; Takeable: 6 [Solve] Chips: 76 = F_10 + F_8 = 55 + 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 325 (Computer); Chips: 70; Takeable: 12 [Solve] Chips: 70 = F_10 + F_7 + F_3 = 55 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 326 (User); Chips: 68; Takeable: 4 [Solve] Chips: 68 = F_10 + F_7 = 55 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 327 (Computer); Chips: 64; Takeable: 8 [Solve] Chips: 64 = F_10 + F_6 + F_2 = 55 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 328 (User); Chips: 63; Takeable: 2 [Solve] Chips: 63 = F_10 + F_6 = 55 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 329 (Computer); Chips: 61; Takeable: 4 [Solve] Chips: 61 = F_10 + F_5 + F_2 = 55 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 330 (User); Chips: 60; Takeable: 2 [Solve] Chips: 60 = F_10 + F_5 = 55 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 331 (Computer); Chips: 58; Takeable: 4 [Solve] Chips: 58 = F_10 + F_4 = 55 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 332 (User); Chips: 55; Takeable: 6 [Solve] Chips: 55 = F_10 = 55 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 333 (Computer); Chips: 49; Takeable: 12 [Solve] Chips: 49 = F_9 + F_7 + F_3 = 34 + 13 + 2 [Solve] Optimal: 2; Possible: {2} [Input] Computer Takes: 2 [State] Turn: 334 (User); Chips: 47; Takeable: 4 [Solve] Chips: 47 = F_9 + F_7 = 34 + 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 335 (Computer); Chips: 43; Takeable: 8 [Solve] Chips: 43 = F_9 + F_6 + F_2 = 34 + 8 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 336 (User); Chips: 42; Takeable: 2 [Solve] Chips: 42 = F_9 + F_6 = 34 + 8 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 337 (Computer); Chips: 40; Takeable: 4 [Solve] Chips: 40 = F_9 + F_5 + F_2 = 34 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 338 (User); Chips: 39; Takeable: 2 [Solve] Chips: 39 = F_9 + F_5 = 34 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 339 (Computer); Chips: 37; Takeable: 4 [Solve] Chips: 37 = F_9 + F_4 = 34 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 340 (User); Chips: 34; Takeable: 6 [Solve] Chips: 34 = F_9 = 34 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 341 (Computer); Chips: 28; Takeable: 12 [Solve] Chips: 28 = F_8 + F_5 + F_3 = 21 + 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 342 (User); Chips: 26; Takeable: 4 [Solve] Chips: 26 = F_8 + F_5 = 21 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 343 (Computer); Chips: 22; Takeable: 8 [Solve] Chips: 22 = F_8 + F_2 = 21 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 344 (User); Chips: 21; Takeable: 2 [Solve] Chips: 21 = F_8 = 21 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 345 (Computer); Chips: 19; Takeable: 4 [Solve] Chips: 19 = F_7 + F_5 + F_2 = 13 + 5 + 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 [State] Turn: 346 (User); Chips: 18; Takeable: 2 [Solve] Chips: 18 = F_7 + F_5 = 13 + 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 2 [State] Turn: 347 (Computer); Chips: 16; Takeable: 4 [Solve] Chips: 16 = F_7 + F_4 = 13 + 3 [Solve] Optimal: 3; Possible: {3} [Input] Computer Takes: 3 [State] Turn: 348 (User); Chips: 13; Takeable: 6 [Solve] Chips: 13 = F_7 = 13 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 6 [State] Turn: 349 (Computer); Chips: 7; Takeable: 12 [Solve] Chips: 7 = F_5 + F_3 = 5 + 2 [Solve] Optimal: 2; Possible: {2, 7} [Input] Computer Takes: 2 [State] Turn: 350 (User); Chips: 5; Takeable: 4 [Solve] Chips: 5 = F_5 = 5 [Solve] Optimal: 1; Possible: {} [Input] User Takes: 4 [State] Turn: 351 (Computer); Chips: 1; Takeable: 8 [Solve] Chips: 1 = F_2 = 1 [Solve] Optimal: 1; Possible: {1} [Input] Computer Takes: 1 ------ Turns: 351 Winner: Computer
39. [M24] Find a closed form expression for ,
given that ,
, and
for
.
We may use the method of generating functions to find a closed form expression for
.
Let
Then,
or equivalently, using partial fractions,
That is,
40. [M25] Solve the recurrence
|
We have that
for ,
as shown below.
In the case that ,
and
|
In the case that ,
and
|
Then, assuming
for ,
we must show that
for . Note that
since , we must
have that
for , including
for ,
since and
by hypothesis.
That is, since
for , and
since
for ,
Then, to see why ,
assume it is. Then there must exist some integer
such that
, so that
; and such
that , so
that .
Then .
But
by the inductive hypothesis. That is, the assumption that
leads to a contradiction, allowing us to instead conclude that
as we needed to show.
________________________________________________________________________________
[section 6.2.1]
41. [M25] (Yuri Matiyasevich,
1990.) Let . Prove that if
is the representation of
in the Fibonacci number system
of exercise 34, then . Find
a similar formula for .
We may prove the equality.
Proposition.
if
for
and .
Proof. Let
be the unique Fibonacci representation of
,
for
and
.
We must show that
|
From exercise 11,
Then
But ,
so if is
even, ;
or if is
odd, .
This determines the upper and lower bounds of the sum of
as
|
since is strictly
less than
given an infinite number of terms. But
and
so that
|
That is,
as we needed to show. □
The formula for
is similar,
|
as shown below.
Proposition.
if
for
and .
Proof. Let
be the unique Fibonacci representation of
,
for
and
.
We must show that
|
From exercise 11,
Then
But ,
so if is
even, ;
or if is
odd, .
This determines the upper and lower bounds of the sum of
as
|
since is strictly
less than
given an infinite number of terms. But
and
so that
|
That is,
as we needed to show. □
______________________________________________________________________________________________________________________________
[CMath, §6.6]
42. [M26] (D. A. Klarner.) Show that if
and are nonnegative integers, there
is a unique sequence of indices
such that
|
(See exercise 34. The ’s
may be negative, and
may be zero.)
We may prove the existence of such a sequence.
Proposition. There exists a unique sequence of indices ,
where
for ,
,
such that
and
if .
Proof. Let
and
be nonnegative integers. We must show that there exists a unique sequence of indices
,
where
for ,
,
such that
|
If such a sequence exists, we must have for all integers
,
In the trivial case that ,
the representation is unique: in particular, the empty one. Otherwise, in the case that
,
let
and
for ,
so that
and since ,
so that
Then, by exercise 34, the representation
must be unique. Now let
be large enough so that
Since ,
and since ,
we have that
Then
Finally, setting
yields
and setting
yields
concluding our proof that there exists a unique sequence of indices
,
where
for ,
,
such that
|
as we needed to show. □
______________________________________________________________________________________________________________________________
[D. A. Klarner, Fibonacci Quarterly 6 (1968), 235–244]