Math4575 HW Chapter7
Math4575 HW Chapter7
• #1
Let f0 , f1 , f2 , . . . denote the Fibonacci sequence. By evaluating each of the
following expressions for small values of n, conjecture a general formula and
then prove it, using mathematical induction and the Fibonacci recurrence.
(Comment: we observe the convention that f0 = 0, f1 = 1, etc.)
(a)
f1 + f3 + · · · + f2n−1 = f2n
The proof is by induction. The formula holds for n = 1, and suppose it
holds for some n ≥ 1, adding f2n+1 to both sides gives
so the identity holds for n + 1 as well. By induction, the result holds for all
n ≥ 1.
(b)
f0 + f2 + · · · + f2n = f2n+1 − 1
The formula holds for n = 0, and suppose it holds for some n ≥ 0, adding
f2n+2 to both sides gives
(c)
f0 − f1 + f2 − · · · + (−1)n fn = (−1)n fn−1 − 1
as desired.
1
(d)
f02 + f12 + · · · + fn2 = fn fn+1
2
The formula holds for n = 0. Now suppose it holds for n and add fn+1 to
both sides. We have
√ √ n
but this is clear. Indeed, (1/ 5) < 1/2 and (1 − 5)/2 ≤ 1 for n ≥ 0.
• #8
Consider a 1-by-n chessboard. Suppose we color each square of the chessboard
with one of the two colors red and blue. Let hn be the number of colorings in
which no two squares that are colored red are adjacent. Find and verify a recur-
rence relation that hn satisfies. Then derive a formula for hn .
2
initial conditions are straightforward: there is one (empty) tiling of the 1-by-0
chessboard, and both tilings of the 1-by-1 chessboard are allowable, so h = 1
and h2 = 2.
This has the same recurrence as the Fibonacci numbers, and almost the same
initial values, except shifted. In other words hn = fn+2 .
Then our formula for the Fibonacci numbers implies that
√ !n+2 √ !n+2
1 1+ 5 1 1− 5
hn = √ −√ .
5 2 5 2
Other forms for the answer are possible, for example if you would rather have n
in the exponent than n + 2, after a little algebra we have
√ √ !n √ √ !n
5+3 5 1+ 5 5−3 5 1− 5
hn = + .
10 2 10 2
• #31
Solve the recurrence relation hn = 4hn−2 , (n ≥ 2) with initial values h0 = 0
and h1 = 1.
• #32
Solve the recurrence relation hn = (n + 2)hn−1 , (n ≥ 1) with initial value
h0 = 2.
3
• #33
Solve the recurrence relation hn = hn−1 + 9hn−2 − 9hn−3 , (n ≥ 3) with initial
values h0 = 0, h1 = 1, and h2 = 2.
• #37
Determine a recurrence relation for the number an of ternary strings (made up
of 0’s, 1’s, and 2’s) of length n that do not contain two consecutive 0’s or two
consecutive 1’s. Then find a formula for an .
4
Other forms for the answer are possible. For example,
√ ! √ !
1+ 2 √ n 1− 2 √ n
an = 1+ 2 + 1− 2 .
2 2
• #38
Solve the following recurrence relations by examining the first few values for a
formula and then proving your conjectured formula by induction.
(a) hn = 3hn−1 , (n ≥ 1); h0 = 1.
2, 4, 5, 5, 4, 2, −1, −5, . . .
We guess that hn is quadratic, i.e. hn = an2 + bn + c for some constants
a, b, and c that don’t depend on n. (We didn’t talk about it in class, but
the following idea is covered in this chapter of the book: the “difference
sequence” for a polynomial of degree n should be a polynomial of degree
n − 1. If so, a little computation gives that a = −1/2, b = 5/2, and c = 2.
Verifying the recurrence is now straightforward proof by induction. We
have
1 5
hn = − n2 + n + 2.
2 2
0, 1, 0, 1, 0, 1, 0, 1, . . .
It seems that hn = 0 for n even and hn = 1 for n odd, easily proved by
induction. (This answer may be written in various forms.)
(d) hn = −hn−1 + 2, (n ≥ 1); h0 = 1
1, 1, 1, 1, 1, . . .
It seems that hn = 1 for every n ≥ 0. The proof? By induction.
5
(e) hn = 2hn−1 + 1, (n ≥ 1); h0 = 1
We claim that
hn = hn−1 + hn−3 , (n ≥ 3)
with initial conditions h0 = 1, h1 = 1, and h2 = 2. Indeed, if the rightmost
tile is a monomino, remove it to obtain a tiling of a 1 × (n − 1) board. If it is a
domino and n ≥ 3 then the domino must have been preceded by a monomino.
So remove both the domino and monomino to obtain a tiling of an 1 × (n − 3)
board.
This algorithm is reversible. Given a tiling of a 1×(n−1) board, one can always
add a monomino on the right. And given a tiling of a 1 × (n − 3) board, one can
always add a monomino and then a domino. So this gives a bijection between
sequences of length n and the disjoint union of sequences of length n − 1 and
n − 3.
• #40
Let an equal the number of ternary strings of length n made up of 0’s, 1’s,
and 2’s, such that the substrings 00, 01, 10, and 11 never occur. Prove that
an = an−1 + 2an−2 , (n ≥ 2), with ao = 1 and a1 = 3. Find a formula for an .
Given any allowable sequence of length n − 1, one can append a 2 to the end to
obtain an allowable sequence of length n. Given an allowable sequence of length
n − 2, one can append 21 or 20 an obtain an allowable sequence of length n.
This algorithm is reversible. Given an allowable sequence of length n ≥ 2, if
it ends in 0 or 1, it must end with 20 or 21 respectively. Removing this gives a
sequence of length n − 2. If it ends in 2, one can remove the 2 to have a sequence
of length n − 1.
Now, to solve the recurrence is straightforward. The characteristic polynomial is
x2 − x − 2 = 0, which has roots x = 2 and x = −1. The general form of the
solution is an = c1 2n + c2 (−1)n . Putting in the initial conditions allows us to
solve for c1 and c2 . We have
4 n 1
an = 2 − (−1)n .
3 3