0% found this document useful (0 votes)
24 views6 pages

Training Rec

1. The document lists 8 exercises involving recurrences. It provides hints for solving each exercise and worked out solutions for some of the exercises. 2. The exercises involve topics like counting subsets, tilings, derangements, and solving recurrence relations. 3. Recurrence relations are a common technique used to solve many of the exercises, with the key being to identify a recurrence and then solve it either explicitly or using an inductive proof.

Uploaded by

Rijal Abedin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views6 pages

Training Rec

1. The document lists 8 exercises involving recurrences. It provides hints for solving each exercise and worked out solutions for some of the exercises. 2. The exercises involve topics like counting subsets, tilings, derangements, and solving recurrence relations. 3. Recurrence relations are a common technique used to solve many of the exercises, with the key being to identify a recurrence and then solve it either explicitly or using an inductive proof.

Uploaded by

Rijal Abedin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

PUTNAM TRAINING

RECURRENCES
(Last updated: December 7, 2021)

Remark. This is a list of exercises on recurrences. —Miguel A. Lerma

Exercises
1. Find the number of subsets of {1, 2, . . . , n} that contain no two consecutive elements
of {1, 2, . . . , n}.
2. Determine the maximum number of regions in the plane that are determined by n
“vee”s. A “vee” is two rays which meet at a point. The angle between them is any
positive number.

3. Define a domino to be a 1 × 2 rectangle. In how many ways can an n × 2 rectangle


be tiled by dominoes?

4. (Putnam 1996) Define a selfish set to be a set which has its own cardinality (number
of elements) as an element. Find, with proof, the number of subsets of {1, 2, . . . , n}
which are minimal selfish sets, that is, selfish sets none of whose proper subsets are
selfish.
5. Let a1 , a2 , . . . , an be an ordered sequence of n distinct objects. A derangement of this
sequence is a permutation that leaves no object in its original place. For example, if
the original sequence is 1, 2, 3, 4, then 2, 4, 3, 1 is not a derangement, but 2, 1, 4, 3 is.
Let Dn denote the number of derangements of an n-element sequence. Show that
Dn = (n − 1)(Dn−1 + Dn−2 ) .

6. Let α, β be two (real or complex) numbers, and define the sequence an = αn + β n


(n = 1, 2, 3, . . . ). Assume that a1 and a2 are integers with the same parity (both even
or both odd). Prove that an is an integer for every n ≥ 1.
7. Let t1 , t2 , t3 be integers, and let λ1 , λ2 , λ3 be real or complex numbers. Define the
sequence an = λ1 tn1 + λ2 tn2 + λ3 tn3 for n = 0, 1, 2. Prove that if a0 , a1 , and a2 are
integers then an is an integer for every n ≥ 0.
10xn
8. Suppose that x0 = 18, xn+1 = − xn−1 , and that the sequence {xn } converges to
3
some real number. Find x1 .

9. (Putnam 2015-A2) Let a0 = 1, a1 = 2, and an = 4an−1 − an−2 for n ≥ 2.


1
PUTNAM TRAINING RECURRENCES 2

Find an odd prime factor of a2015 .


PUTNAM TRAINING RECURRENCES 3

Hints
1. The subsets of {1, 2, . . . , n} that contain no two consecutive elements can be divided
into two classes, the ones not containing n, and the ones containing n.
2. The (n + 1)th “vee” divides the existing regions into how many further regions?
3. The tilings of a n × 2 rectangle by dominoes can be divided into two classes depending
on whether we place the rightmost domino vertically or horizontally.
4. The minimal selfish subsets of {1, 2, . . . , n} can be divided into two classes depending
on whether they contain n or not.
5. Assume that b1 , b2 , . . . , bn is a derangement of the sequence a1 , a2 , . . . , an . How many
possible values can bn have? Once we have fixed the value of bn , divide the possible
derangements into two appropriate classes.
6. Find a recurrence for an .
7. Find a recurrence for an .

8. Find a general solution to the recurrence and determine for which value(s) of x1 the
sequence converges.
9. Prove that an divides ank if k is odd.
PUTNAM TRAINING RECURRENCES 4

Solutions
1. Let f (n) be that number. Then we easily find f (0) = 1 (the empty subset), f (1) = 2
(including the empty subset), f (2) = 3, f (3) = 5, f (4) = 8, . . . suggesting that
f (n) = Fn+2 (shifted Fibonacci sequence). We prove this by showing that f (n)
verifies the same recurrence as the Fibonacci sequence. The subsets of {1, 2, . . . , n}
that contain no two consecutive elements can be divided into two classes, the ones
not containing n, and the ones containing n. The number of the ones not containing
n is just f (n − 1). On the other hand the ones containing n cannot contain n − 1, so
their number equals f (n − 2). Hence f (n) = f (n − 1) + f (n − 2), QED.
2. Let xn be the number of regions in the plane determined by n “vee”s. Then x1 = 2,
and xn+1 = xn + 4n + 1. We justify the recursion by noticing that the (n + 1)th “vee”
intersects each of the other “vee”s at 4 points, so it is divided into 4n + 1 pieces, and
each piece divides one of the existing regions of the plane into two, increasing the
total number of regions by 4n + 1. So the answer is

xn = 2 + (4 + 1) + (4 · 2 + 1) + · · · + (4 · (n − 1) + 1) = 2n2 − n + 1 .
3. Let xn be the number of tilings of an n × 2 rectangle by dominoes. We easily find
x1 = 1, x2 = 2. For n ≥ 3 we can place the rightmost domino vertically and tile the
rest of the rectangle in xn−1 ways, or we can place two horizontal dominoes to the
right and tile the rest in xn−2 ways, so xn = xn−1 + xn−2 . So the answer is the shifted
Fibonacci sequence, xn = Fn+1 .
4. Let fn denote the number of minimal selfish subsets of {1, 2, . . . , n}. For n = 1 we
have that the only selfish set of {1} is {1}, and it is minimal. For n = 2 we have two
selfish sets, namely {1} and {1, 2}, but only {1} is minimal. So f1 = 1 and f2 = 1.
For n > 2 the number of minimal selfish subsets of {1, 2, . . . , n} not containing n
is equal to fn−1 . On the other hand, for any minimal selfish set containing n, by
removing n from the set and subtracting 1 from each remaining element we obtain
a minimal selfish subset of {1, 2, . . . , n}. Conversely, any minimal selfish subset of
{1, 2, . . . , n − 2} gives raise to a minimal selfish subset of {1, 2, . . . , n} containing n by
the inverse procedure. Hence the number of minimal selfish subsets of {1, 2, . . . , n}
containing n is fn−2 . Thus fn = fn−1 + fn−2 , which together with f1 = f2 = 1 implies
that fn = Fn (nth Fibonacci number.)

5. Assume that b1 , b2 , . . . , bn is a derangement of the sequence a1 , a2 , . . . , an . The element


bn can be any of a1 , . . . , an−1 , so there are n − 1 possibilities for its value. Once we
have fixed the value of bn = ak for some k = 1, . . . , n − 1, the derangement can be
of one of two classes: either bk = an , or bk 6= an . The first class coincides with the
derangements of a1 , . . . , ak−1 , ak+1 , . . . , an−1 , and there are Dn−2 of them. The second
class coincides with the derangements of a1 , . . . , an−1 with ak replaced with an , and
there are Dn−1 of them.
PUTNAM TRAINING RECURRENCES 5

6. Let s = α + β, p = αβ. We have that s = a1 is an integer. On the other hand we


a2 − a2
know that a1 and a2 have the same parity, hence a21 − a2 is even, and p = 1 is
2
an integer. Note also that
αn+2 + β n+2 = (α + β)(αn+1 + β n+1 ) − αβ(αn + β n ) ,
i.e.,
an+2 = s an+1 − p an ,
and we get the desired result by induction.

7. Consider the polynomial


p(x) = (x − t1 )(x − t2 )(x − t3 ) = x3 − c1 x2 − c2 x − c3 ,
where c1 = t1 + t2 + t3 , c2 = −t1 t2 − t1 t3 − t2 t3 , c3 = t1 t2 t3 . Note that since t1 , t2 , t3
are integers, then c1 , c2 , c3 are also integers. Also, the ti ’s are roots of p, i.e., p(ti ) = 0,
hence t3i = c1 t2i + c2 ti + c3 (i = 1, 2, 3). Multiplying by tni we get tn+3 i = c1 tn+2
i +
c2 tn+1
i + c 3 t n
i . By definition a n = λ 1 tn
1 + λ2 tn
2 + λ3 tn
3 , so by linearity:
an+3 = c1 an+2 + c2 an+1 + c3 an (n = 0, 1, 2, . . . ) .
Finally, given that a0 , a1 , a2 are integers by hypothesis, and that c1 , c2 , c3 are also
integers, the result follows by induction.
8. The general solution for the recurrence can be expressed using the roots of its char-
acteristic polynomial
10x
x2 − + 1 = 0.
3
The roots are 3 and 1/3, hence a general solution is xn = A · 3n + B · 3−n . If the
sequence converges then A = 0, and the condition x0 = 18 yields B = 18, hence the
sequence is xn = 18 · 3−n , the limit is 0, and x1 = 18/3 = 6.

9. First we prove that an divides ank if k is odd. One way to do it is by solving the √
recurrence explicitly.
√ Its characteristic polynomial is x2 −4x+1, with roots α = 2+ 3
and β = 2 − 3 = α−1 , so that an = Aαn + Bα−n . Using a0 = 1, a1 = 2 we get
A = B = 1/2, hence an = 12 (αn + α−n ).
We next use the identity xk + y k = (x + y)(xk−1 − xk−2 y + · · · + y k−1 ), valid when k
is odd, replacing x = αn , and y = α−n , and grouping terms of the form αj + α−j :
1
ank = (αnk + α−nk )
2
1
= (αn + α−n ))(αn(k−1) − αn(k−3) + · · · + αn(1−k) )
2
1
= (αn + β n ){(αn(k−1) + αn(1−k) ) − (αn(k−3) αn(3−k) ) + · · · + 1}
2
= an (2an(k−1) − 2an(k−3) + · · · + 1) .
This proves that in fact an divides ank for k odd.
PUTNAM TRAINING RECURRENCES 6

An alternative way to do it without solving the recurrence explicitly is to look at


the sequence modulo a positive integer m ≥ 2. First notice that we can extend the
recurrence backwards using an−2 = 4an−1 − an . Since a−1 = 2 = a1 the sequence turns
out to be symmetric: a−n = an for every n. On the other hand, if an ≡ 0 (mod m),
then an+1 ≡ 4an − an−1 ≡ −an−1 (mod m), and from here (working the recurrence
forward and backwards), an+j ≡ −an−j ≡ −aj−n (mod m) for every j. In particular
for j = 2in we get an(2i+1) ≡ −an(2i−1) (mod m), and from here (by induction on i)
we get an(2i+1) ≡ 0 (mod m). Letting m = an we get an(2i+1) ≡ 0 (mod an ), i.e., an
divides an(2i+1) .

Finally we notice that 2015 = 5·403, hence a5 divides a2015 . We have a5 = 362 = 2·181,
so 181 is a prime dividing a2015 .

You might also like