Problems 69
Problems 69
Combinatorial Problems
S. I. Gelfand M. L. Gerver A. A. Kirillov
N. N. Konstantinov A.G. Kushnirenko
1
SE Q U EN C ES AND C O M B IN A T O R IA L PROBLEM S
T H E P O C K E T M A T H E M A T IC A L L IB R A R Y
J acob T. S c h w a r t z , Editor
P R IM E R S :
1. T H E C O O R D IN A T E M E T H O D
by I. M. Gclfand et al.
2. F U N C T IO N S A N D G R A P H S
by I. M. Gelfand et al.
W O R K B O O K S:
1. SEQUENCES
AN D COM BIN A TO RIA L PROBLEMS:
by S. I. Gclfand et al.
2. L E A R N L IM IT S T H R O U G H P R O B L E M S !
by S. I. Gelfand et al.
3. M A TH EM ATICAL PROBLEM S:
AN ANTHOLOGY
by E. B. Dynkin et al.
CO U RSES:
1. L IM IT S A N D C O N T IN U IT Y
by P. P. Korovkin
2. D IF F E R E N T IA T IO N
by P. P. Korovkin
SEQUENCES AND
COMBINATORIAL PROBLEMS
BY
G O R D O N AN D BREACH
SCIENCE PUBLISHERS
NEW YORK • LONDON • PARIS
Copyright © 1969 by Gordon and breach science publishers in c .
150 Fifth Avenue, New York, N .Y . 10011
Preface vii
Preliminaries 1
Sample Problems 8
Detailed Solutions 25
Test Problems 81
V
Preface
1. Sequences
u i ,u 2, ...
1, 1 ,...,1 , ...
1,3, 5 ,...
Here u„ = 2n — 1.
3. Consider the sequence specified by the formula
n (#z + 1)
i—
Write out the first seven terms of the sequence, and find z/100,
u„-3 and un+1.
1
2 Sequences and Combinatorial Problems
Wioo = 5050,
_ (n — 3) (n — 3 + 1) (n — 3)(n —2)
Un —3 ' 7 ^
(n + l)(n + 2)
"n + 1 =
j/„ = 3n — 1.
Another is
w„ = (3/i — 1) x (the number of digits in n).
Nevertheless, (1) is just the sequence whose nth term is the nth
digit in the decimal representation of the number n = 3.1415926...
Hence there is actually a definite rule associating a term w„ of the
sequence (1) with every positive integer n. For example, ux = 3,
u2 = 1, «7 = 2, etc. Thus, despite the absence of an explicit
formula for the general term of this sequence, it is possible, at
least in principle, to find the number in any given position, be it
the first, seventh or 1007th position. In particular, it can be shown
that the sequence (1) is not periodic, i.e., that no block of terms
repeats itself over and over again like the underlined digits in the
decimal expansion of
\ = 0.142857142857...
1, 1,2, 3, 5 ,... ( 2)
4 Sequences and Combinatorial Problems
«1,«2, •••
whose uth term equals the sum of all the positive integers from
1 to n inclusive.
Answer. 1, 3, 6, 10, 15, 21, ...
Solution. uv = I, u2 = 1 + 2 = 3, u3 = 1 + 2 + 3 = 6,
2/4= 1 + 2 + 3 + 4 = 10, ... , u„ = 1 + 2 + ••• + n, ...
2. Mathematical Induction
we have
u„ — 1 + 2 + 3 + ••• + (w — 2) + (// — 1) + //, (5)
and
u„ = n + (ji — 1) + (// — 2) + ••• + 3 + 2 + 1 (6)
(the second sum is the first sum written backwards). Adding
equations (5) and (6), we find that
2un = [1 + /j] + [2 + (n — 1)] + [3 + (// —2)] + •••
+ [(w —2) + 3] + [(w — 1) + 2] + [/i + 1].
Each term in brackets equals n + 1, and there are exactly n such
terms. In other words,
2u„ = (n + 1) + (n + 1) + ••• + (n + 1) + (// + 1) = n (n + 1),
n times
and hence
n (n + 1)
«n = -----------,
2
which is just another way of writing (3).
Another somewhat different form of the principle of mathe
matical induction goes as follows: Given any assertion involving
an arbitrary positive integer n, suppose that
a) The assertion is true for n — 1;
b) Validity o f the assertion for n = k implies its validity for
n = k + 1.
Then the assertion is true for every positive integer n.
Warning. Note that hypothesis b) does not state that the
assertion is true for n = k + 1 but only that if it is true for
n = k, then it is true for it = k + 1.
Example 2. Prove than n5 —n is divisible by 5 for every po
sitive integer n. The proof involves two steps:
a) If n = 1, n5 —n equals 0 and hence is trivially divisible
by 5.
b) Let n = k be an arbitrary positive integer k, and suppose
k 5 — k is divisible by 5. Then (k + l ) 5 — (k + 1) is also
Preliminaries 1
Answer.-----------.
3/i + 1
4. Prove that
1 1 1
+ ••• +
a {a + 1) (q + 1) (o + 2) (a + n - 1) (<7 + «)
n
a (a + n)
8
Sample Problems 9
holds for every positive integer n and every a not equal to zero or
a negative integer.
5. Prove that
1 • 1! + 2 • 2! + ••• + n • n\ = (n + 1)! - 1,
where n is any positive integer and n ! (read “/i factorial”) denotes
the product of all positive integers from 1 to n inclusive.
6. Prove that
— )= n + 1
n2 ) 2n
for every integer n ^ 2.
Hint. The problem can be solved in two ways, either by
mathematical induction or by using the formula
j ___L = ( » - 1)(« + o
n2 n2
In using mathematical induction, start from n = 2.
7. Verify that
1 - 22 + 32 - ••• - ( - I ) " - 1 n2 - ( - 1 ) " - 1 n{n + 1}.
2
• •
\8 , Into how many parts is the plane divided by n straight lines
no two of which arc parallel and no three of which intersect in
a single point?
Hint. Suppose n lines have already been drawn, and show that
drawing the (n + l)st line increases the number of parts of the
plane by n + 1.
n2 + n + 2
Answer. ----------------.
2
9. Prove that any integer greater than 7 can be written as a
sum consisting of the integers 3 and 5 exclusively. (For example,
8 = 3 + 5, 9 = 3 + 3 + 3 , 10 = 5 + 5, 1 1 = 3 + 3 + 5, etc.)
Hint. Given that A:(A: > 7) can be written as a sum of threes
and fives, show that k + 1 can also be written as a sum of threes
2 Silverman V
10 Sequences and Combinatorial Problems
- > \!k + 1 - V k .
sjk + 1
The next group of problems (15-43) deals with sequences.
15. Consider the sequence uu u2, ... such that
17. Given a sequence ulf u2, ..., let Au,, Au2, ... be the se
quence with general term
Au„ = u„+l - u„
(the capital Greek letter A is read “delta”). This new sequence is
called the sequence of first differences of the original sequence
Mj, m2, __Given that u„ = n2, what iszlM„?
Answer. Au„ = 2n + 1.
18. Suppose two sequences uY, u 2, ... and vu v2, ... have the
same first differences, i.e., suppose z1m„ = Av„ for all n.
a) Can it be asserted that u„ — v„l
b) Can it be asserted that u„ = v„ provided it is known that
«i =
Answer, a) No; b) Yes. Use the formula uY + Aut + z!m2
+ ••• + Au„-t = U„.
19. Suppose every term of as equence ivj, iv2, ... equals the sum
of the corresponding terms of the sequences ux, u2, ... and
v u v2, ..., i.e., suppose h’„ = u„ + v„ for all n. Prove that
Aw„ — Au„ + Av„ for all it.
20. Given a sequence with general term u„ = nk, prove that
the general term z1m„ of the sequence of first differences is a
polynomial of degree k — 1 in n. Find the leading coefficient of
this polynomial.
Answer. The leading coefficient is k.
21. Given a sequence whose general term un is a polynomial
of degree k in n with leading coefficient a0, prove thatzlM„ is a
polynomial of degree k — 1 in it. Find the leading coefficient
of this polynomial.
Hint. Use the results of Problems 19 and 20.
22. Starting from a sequence
O n ■n 0
A ku„ = A k~lun+l —A k~iu„, ...
Cki
n i n3
■O c
O t-
For example, if un = n3, then the first, second and third differ
in
WO
■a ■a ences are as shown in Figure 2. Suppose un = nk. Show that all
i
i ! i the terms of the sequence of fcth differences equal the same num
) 1
2 ! 8
3 27
)13
)12
)is
)6 ber. What is this number?
;37
it
5 125
64
)61
124 ) 6
J30 J ?
Answer. k\
J SI
6 | 216
23. Given a sequence {u„} = {nk}, prove that there is another
sequence {«„} such that
a) Au„ = v„;
Fig. 2
b) un is a polynomial of degree k + 1 in n.
What is the leading coefficient of this polynomial?
Hint. Use induction in &and the results of Problems 19 and 20.
24. Suppose a sequence {w„} is such that every term of the
sequence of fourth differences {zl4j/„} vanishes. Prove that un
is a polynomial of degree 3 in n.
25. Given a sequence {i/„} such thatzlwn is a polynomial of
degree k in n, prove that un is a polynomial of degree k + 1
in n.
Hint. Use the results of Problems 19 and 23.
26. Calculate the sum
l 2 + 22 + ••• + n2.
n (n + 1) (zz + 2)
Answer. ---------- —--------- .
3
28. By an arithmetic progression is meant a sequence {w„}
such that
Mn+l d
for all n, where the number cl is called the difference of the
progression. By a geometric progression is meant a sequence {z/„}
such that
Un+1 <7wn>
where the number q is called the ratio of the progression.
a) Given an arithmetic progression {z/,,}, write a formula
for u„ in terms of Wj and the difTerer.ee d.
b) Given a geometric progression {z/„}, write a formula for un
in terms of ut and the ratio q.
Answer, a) w„ = zq + (n — 1) d; b) z/„ = qn~1u1.
29. a) Find a formula for the sum
S„ — Wi + u2 + + u„
P„ = z/,z/2 1/„
q - 1
= m„-i + »/„_ 2
for all n ^ 3.
Answer. Any progression with ratio \ + i^ /5 or —i^/5.
42. The terms of a certain sequence are sums of the corre
sponding terms of two geometric progressions. What is the
third term of the sequence?
/'^ n ju W v T h c third term also equals zero.
43. Represent the terms of the Fibonacci sequence
where the sides of the triangle are made up of ones and each of
the other numbers is the sum of the two numbers appearing
above it (to the left and right), as indicated by the dashed lines.
Show that the sum of the numbers in the (n + l)st row of Pas
cal’s triangle equals 2n.
Hint. Show that the sum of the numbers in the (« + l)st row
is twice as large as the sum of those in the nth row.
55. What is the largest number of bishops that can be put on
a chessboard without any two bishops threatening each other?
Prove that this number of bishops can be put on in iV different
ways, where N is a perfect square.
Hint. To understand the problem, recall that in chess a bishop
moves along a diagonal. For example, a bishop on the square d3
abcdef gh
can go to any of the squares shown in Figure 5 (bl, c2, etc.) in
a single move. Thus two bishops threaten each other if they Fig. 5
occupy the same diagonal.
Warning. The problem is sometimes “solved” by putting ■ lE JiD lll
14 bishops on a chessboard as shown in Figure 6. It is then
claimed that if more than 14 bishops are put on the board, then
two will necessarily threaten each other. This seems plausible, but
not completely convincing. In any event, this approach does not
lead to a solution of the second (and basic) part of the problem. ID lD lD lU
56. A mother has two apples and three pears. Every day for Fig. 6
five consecutive days she gives out one piece of fruit. How many
ways can this be done?
Answer. Cf = 10.
57. Answer the same question for k apples and n pears (given
out one at a time over the course of n + k days).
Answer. C * " . This answer will do for now, if you are unable
to write an explicit formula for C*+n in terms of n and k. Later
on, we shall find such a formula (see Probs.60, 66 and 67).
58. Answer the same question for 2 apples, 3 pears and 4 or
anges (given out one at a time over the course of 9 days).
59. In how many ways can 8 rooks be put on a chessboard
without any two rooks threatening each other?
20 Sequences and Combinatorial Problems
61. In how many ways can a class be seated if there are 26 stu
dents and 28 seats?
62. A father has five apples, all of different sizes, which he
gives to his eight sons in such a way that each son either gets a
whole apple or nothing. In how many ways can this be done?
8 8!
Answer. C 1 • 5! = — .
3!
63. Let C2 denote the number of ways of lighting n bulbs
such that k bulbs are on. Prove that Cnk is the (k + l)st number
in the (n + l)st row of Pascal’s triangle (defined in Prob. 53).
64. In how many ways can four rooks be placed on a chess
board without any two threatening each other?
65. There are 3 officers and 40 men in a company. In how
many ways can a patrol consisting of 1 officer and 3 men be
chosen?
66. In how many ways can 3 objects be chosen from n ob
jects (without regard for order)?
~ 0 (n ~ 2)
A
Answer. C3 = w(«
r"
---------- .
1-2-3
Sample Problems 21
is multiplied out and similar terms are combined. What are the
coefficients of x 11 and x 18?
73. Suppose the expression
(1 + x)56
is multiplied out and similar terms are combined. What are the
coefficients of x 8 and x-48?
22 Sequences and Combinatorial Problems
Give another proof of this fact, starting directly from the defi
nition of Pascal’s triangle.
76. Suppose k zeros are inserted between every pair of con
secutive digits of the number 14641. Prove that the resulting
number is a perfect square.
77. Suppose the expression
(o + b)n
is multiplied out and similar terms are combined. Find the term
involving ak. Prove the binomial theorem
Co + Cl + Cl + •••
Sample Problems 23
and
CI + C\ + Cns + •••.
2" = c nQ + c l + c n2 + ••• + c ;,
(see Prob.74).
80. Find the sum of the coefficients of the polynomial ob
tained when the expression
(1 + x - 3x2)1965
1 1 I k
------ + ------- + ••• + ----------- = ----------.
1 -2 2 -3 k (k + 1) k + 1
1 1 1 , 1
------ +------- + ••• + ------------ H---------------------
1 -2 2 -3 k (k + 1) (k + \)(k + 2)
k 1 k { k + 2) + \
~ k + 1 (k + 1)(k + 2) “ (fc+ 1)(A: + 2)
k 2 + 2k + 1 (k + l)2 k + 1
~ (k + 1)(k + 2) ~ (k + 1)(k + 2 ) ~ k + 2 '
1 _ _1_ _ 1
n (n + 1) n n + 1
Since all the terms except the first and the last cancel, this sum
reduces to
1 1 1 1
+ + ••• + = 1-
1 -2 2 -3 n (n + 1) n + 1 n + 1
as in the first solution.
3. First solution
The formula
1 1 1
+ + + ( 1)
1 -4 4 -7 (3n — 2) (3n + 1) 3n + 1
is easily verified by mathematical induction:
a) The formula holds for n = 1.
b) Suppose (1) holds for an arbitrary positive integer n = k,
i.e., let
1 , 1 1 k
-------- 1--------- + ••• H------------------------- = ------------ .
1 -4 4 -7 (3k — 2) (3k + 1) 3k + 1
Then (1) also holds for n = k + 1. In fact
1 1 1 1
+ + ••• + +
1 ■4 4 •7 (3k - 2) (3k + 1) (3k + 1) (3k + 4)
k 1 k (3k + 4) + 1
+
3k + 1 (3k + 1) (3k + 4) (3k + 1) (3A: + 4)
_ 3k2 + 4k + 1 _ (3k + 1) (k + 1) _ k + 1
~ (3k + 1) (3k + 4) ~ (3k + 1) (3fc + 4) “ 3k + 4 '
Therefore (1) holds for all n.
Second solution
Starting from the identity
_______ 1_______ __ 1___________ 1
(3/z - 2) (3/z + 1) ~ 3(3/2 - 2) 3(3/2 + 1)’
28 Sequences and Combinatorial Problems
1 • 1! + 2 * 2 ! + ••• + / ; • « ! = (n + 1)! — 1
!
holds for n = 1. 1
b) Suppose (1) holds for n = k, i.e., 1
1 • 1! + 2 • 2! + ••• + k • kl = (k + 1)1 - 1.
6. First solution
a) The formula
' i - r i - i = ^ ( 1)
h : n2 J In
obviously holds for n = 2.
b) Suppose (1) holds for any integer k ^ 2, i.e., let
K )('-i) ('-4 -4 4
Then (1) also holds for n = k + 1. In fact
1 1
.-I ' i-T 1- 1
4j k 2j \ (k + i y ,
k + 1 1 \ ( H 1 ) [ ( H 1 ) 2 -1]
1-
2fc \ (fc + l)2/ 2k (k + l)2
(A: + 1) k (k + 2) k + 2
2k (k + l)2 2 (k + 1)
Applying mathematical induction, we find that (1) holds for
all n ^ 2.
Second solution
Starting from the identity
, 1 (n - 1) (n + 1)
J s-rr - I
Detailed Solutions 31
1 - 22 + 32 - ••• + ( - I ) * '1 k 2 =
2
Then (1) also holds for n = k + 1, since
= ( - 1 ) — (* + - * - 1
= ( - ! ) » - ■ ( * + 1) h _ . (k + 1) (fc + 2)
2 2
_ 1 + 11 +
2
since a2 > 0 if a ^ 0.
b) Suppose (1) holds for some positive integer k ^ 2, i.e., let
(1 + a)k > 1 + ka. (2)
Detailed Solutions 35
Then (1) also holds for n = k + 1. To see this, note that 1 + a > 0
by hypothesis and multiply both sides of (2) by 1 + a, obtaining
(1 + a)k (1 + a) > (1 + ka) (1 + a)
°r (1 + a)k+1 > [1 + (k + I) a] + ka.
But ka2 > 0 if a ^ 0, and hence
(1 + a)k+l > 1 + (k + I) a.
It now follows by mathematical induction that (1) holds for
all n ^ 2 if a > —1, a ^ 0.
14. The proof (again by induction) goes as follows:
a) The inequality
1 1
1+ + + + Jr > ^ ( 1)
V2 73 V”
holds for n = 2, since then it becomes
1+
- > y/2
>/2
which is equivalent to the obvious inequality
y/2 + 1 > 2.
b) Suppose (1) holds for n = k, so that
1
. + -^ + - U ( 2)
n/2 ^3 + 7 i > '/ k '
Then (1) also holds for n = k + 1. This is an immediate conse
quence of the inequality
1
"> \ J k 1 — \jky (3 )
Jk+ 1
as we see by adding (2) and (3). To verify (3), we merely multiply
both sides by s/k + 1 4- yjk, obtaining the inequality
36 Sequences and Combinatorial Problems
+ Au„-1 — Av„-i.
Detailed Solutions 37
By hypothesis
Au j = Avy,A u2 = A v2, ...,Au„_ ! = A v„ -1,
and hence
lln ~ Vn = III - Wi
lt follows that if ux — vy ^ 0, then w„ — v„ # 0, i.e., un differs
from t’„ for every /i. On the other hand, if u2 = v2, then un = v„
for all n.
19. It need only be observed that
Aw„ = (h'b+1 - u-n) = (wn+1 + vn+1) - (w„ + v„)
= (wn+ 1 - Mn) + (vn+l - V„) = Au„ + Avn.
Aun = u„+ i - u„ = (n + 1) - n = 1 = 1!
since all the other terms vanish (if the terms of a sequence all
equal the same constant, then its first differences, second
differences, third differences,etc. all vanish). Therefore A ku„ = k\
for k = k 0 + 1, and the proof by induction is complete.
23. The proof is by induction:
a) Let k = 0 so that v„ = 1 for all n. Then the assertion is
clearly true, the required sequence being just the sequence with
general term u„ = n. Let this sequence be denoted by {wj;0)}.
b) Suppose the assertion is true for all k ^ k 0, so that there
( 1)
\ko + 2 /
is a polynomial of degree k 0 + 1 in n with leading coefficient 1.
Let this polynomial be
which agrees with (1). The induction is now complete, i.e., for
every k there exists a sequence {w(t)} such that Auik) = nk.
Moreover, it is clear from the above construction that u<k) is a
polynomial of degree + 1 in n with leading coefficient 1j(k + 1).
24. Since A Aun = 0 by hypothesis, we have A 3u„ = c (for
all n) where c is a constant. Therefore A 2un is a polynomial of
degree 1 in n. Let this polynomial be a0n + aY. Then, by the
solution of Problem 18,
= A u1 + Oj (n - 1) + a0 [1 + 2 + + (n - 1)].
Detailed Solutions 41
But
n (n — 1)
1 + 2 + ■•• + (ti — 1) =
2
(see Example 1, p. 4), and hence
n 0n - 1)
Aun = Aui + <7j (n - 1) + a0
un = uk + A u v + Au 2 + ••• + A u„ -l
where i/*10, wjj*” 15, ..., wj;15, i/£0) are the same as in the solution
of Problem 23. Then Avn = Au„ for all n. It follows from the
solution of Problem 18a that u„ — v„ = — vk for all n. There
fore
and to solve this system we subtract three times the first equation
from the third equation and twice the first equation from the
second equation. This gives
n (n + 1) (2/i + 1)
i.e.,
n (n + 1) (2/i + 1)
I2 + 22 + ••• + n2 =
Detailed Solutions 43
u„ = a0n 3 + a vn 2 + a 2n + a3.
uQ = a3 = 0,
Uy = a0 + ay + a2 + a 3 = 2,
u3 = 27a0 + 9a y + 3a2 + a3 = 2 .
Hence
a O + Oy + 0 2 = 2 ,
and to solve this system we subtract three times the first equation
from the third equation and twice the first equation from second.
This gives
24a0 + 6a! = 14,
6a0 + 2ay = 4,
which implies
6a0 = 2, a0 = i , ay = 1, a2 =
44 Sequences and Combinatorial Problems
It follows that
u„ = i /i3 + n2 + £ n
n (n2 + 3n + 2) n (n + 1) (/? + 2)
3 “ 3
i.e.,
n (n + 1) (n + 2)
1 -2 + 2 -3 + ••• + n ( n + 1) =
3
28. a) By the definition of an arithmetic progression,
u„ = un- 1 + d = un —2 + 2d = ••• = + {n - 1)d .
b) By the definition of a geometric progression,
Un = qun - 1 = q 2U„-2 = — = ^ n _ 1 » 1-
b) According to Problem 28 b,
Pn = it 1 • qtty • q 2Ui ••• q"-2ul • q " - 1ux
_ u \ q l + 2 + - , + ( " - 2) + <"-!)_
But by Example 1, p. 4,
n (n — 1)
1 + 2 + ••• + (n - 2) + (n - 1) =
and hence
P„ = k V (" - |)/2.
30. a) Using the formula
„ n (n — 1) ,
S„ = nui H------------ d
2
found in Problem 29 a, we have
_ 15-14 1
u 3 m 3 2
«i = — , «2 = — > uA. = qu3, us = q 2u3 .
<1 (1
46 Sequences and Combinatorial Problems
S„ = Uy + u2 + u3 + ••• + u„
= qnui - Mi
Sn (q - 1) = M, ( qn - 1) ,
i.e.,
q" - 1
Ml .
q - i
who learn the news 10k minutes later. This number is just
S k = 1 + 2 + 4 + ••• + 2 \
i.e., the sum of the first k + 1 terms of a geometric progression
with first term 1 and ratio 2, and according to the preceding
problem,
222 — 1 = 4,194,303.
Therefore the whole city knows the news after 210 minutes
= 3 hours and 30 minutes.
34. Suppose it takes the bicyclist a„ seconds to complete
the /ith lap (n = 1,2, 3, 4, 5), while it takes the horseback
rider b„ seconds. Then the numbers ait a2, a3, ax , a5 form a
geometric progression with ratio 1.1, while the numbers
bi, b2,b 3, f>4, 65 form an arithmetic progression with differ
ence d. Moreover, by hypothesis, ak = and
h. 1 4 10[(1.1)5- 1] - 5
a5 (Hr (l.l)4 10
1
{1 + 4[(1.1)5 — 1] —2}
air
i 1 4420
[4(0.6105) - 1] = ------ 4- * 0.985 < 1 .
(Hr 1.4641
Therefore it takes the horseback rider 0.985 less time than the
bicyclist to complete the last lap.
35. Clearly 5 = l + 3 + 5 + --- + 997 + 999 is the sum of
the first 500 terms of an arithmetic progression with first term 1
and difference 2. Therefore
500 • 499
5 = 500 • 1 + ---------- 2 = 500 + 500 • 499 = 500 • 500
2
= 250,000.
36. Suppose that from S(1), the sum of all three-digit numbers
not divisible by 2 or by 3, we subtract S (2), the sum of all three-
digit numbers not divisible by 2, and S (3), the sum of all three-
digit numbers not divisible by 3. In so doing, the numbers divis
ible by both 2 and 3, i.e., divisible by 6, have been subtracted
twice. Therefore to obtain the answer, we must add S(6), the
sum of all three-digit numbers divisible by 6, i.e.,
Each of the quantities S(1), S (2), S (3y and S (6) is the sum of a
certain number of terms of an arithmetic progression, as shown
Detailed Solutions 49
in the following table, where i/j is the first term, n the number
of terms, and the difference:
n d
sw 100 450 2
Therefore
900 ■899
5 (1) = 900 • 100 + ----------- 1 = 90,000 + 404,550 = 494,550,
2
450 • 449
S(2) = 450 • 100 + — ------ 2 = 45,000 + 202,050 = 247,050,
2
300 • 299
S(3) = 300 • 102 + — ----- - 3 = 30,600 + 134,550 = 165,150,
2
150 • 149
S(6) = 150 • 102 + —-------- 6 = 15,300 + 67,050 = 82,350,
2
and hence finally
37. Obviously the ;ith term of any sequence equals the sum
of the first n terms minus the sum of the first n — 1 terms, i.e.,
11n — 1.
In our case,
Moreover
1 = (6/» - 3) - [6(/» - 1) - 3] = 6
50 Sequences and Combinatorial Problems
27 _
= q —1,*i > 8 = qn~1u1, 12 = qp- 1u1,
and dividing the first equation by the second and third gives
22 _ nm~n £ _ nm-p
8 V i 4 •
Raising the first of these equations to the power m — p and the
second to the power n — p, we equate their right-hand sides,
obtaining
(r r -p = d r -" (i)
which implies
2 3 m—3p —2m + 2/i _ —3p —2m + 2n
or
2>m —3p-\-2n _ 2 m—3p + 2 n
( 2)
8 = qn~lUl, 27 = qm~1Ui.
This means that the numbers 27, 8 and 12 are the mth, /;th and
pth terms of a geometric progression with first term ux and
Detailed Solutions 51
and dividing the second and third equations by the first gives
2 = qn- m, 5 = qp~m.
U I2 U 13
or
»13 _ _ £ lS _
( 2)
»12 «1 3
52 Sequences and Combinatorial Problems
and hence
m12 + d m13 + 2d
*12 ‘ 13
I.C.,
i d 2d
1 + ----- = 1 + -----
*12 ‘ 13
or
2d
(3)
U 12 U 13
!h±. - o — - 4
u1 2 Ml 2
Mi 2 + d *<i3 + 2d
‘ 12 ‘ 13
I.C.,
i + = - 1— —
Ml 2 ‘ 13
or
„ d 2d
2 + -----+ ------ = 0.
111 2 111 3
It follows that
2mi2m13 + '/«i3 + 2r/M12 = 0
or
2u12 + Sdu12 + d^ = 0.
Detailed Solutions 53
Therefore
d \2 d „
----] + 5 ------ + 2 = 0,
<12, «12
so that
- 5 ± V 17
»12 2
J _ 5 V 17
a)
Wi2 2 2
_W]3. _ 1 + _ 3 [ y fiT
>12 u 12
»13
<7 =
>«12 2 2
5^ V 17
b)
«12 2
«13 3_ V 17
= 1+
u 12 «12 2
\2
»13
q = = — + — V l7 .
‘ 12 2 2
= -M i,
and then (2) in turn implies
puy - quy = (p - q )u i = 0
or p = q. It follows that
w3 = p 2Uy + q2Vy = p 2Uy - q2Uy = q2Uy - q2Uy = 0,
i.e., the third term of the given sequence also equals zero.
42. By hypothesis,
Uy + Vy = \, «2 + v2 = 1
and
Mn + V„ = U„-y + V„-y + m„_2 + v„-2. (1)
Let p and q be the ratios of the progressions {w„} and {r„}.
Clearly p ¥= q, since the sum of two geometric progressions
with the same ratio is itself a geometric progression and the
Fibonacci sequence is not a geometric progression. Equation
(1) can be written in the form
p"~1Uy + q"~1Vy = P"~2Uy + q"~2Vy + P"~3Uy +
DeatUed Solutions 55
1 ± y/5
2
and hence _
1 + %/5 1 - y/5
p = — ;— . q = — 7— >
2 2
say.
Finally, we find and vu using the pair of equations
i/i + t>i = 0,
1 + V5 1 - V5
+ = 1,
2
with solution
1 + y/5 _ - 1 + y/5
Ml
2V5 ’ ^ 2V5
56 Sequences and Combinatorial Problems
Therefore
i + \/5 / 1 + \/5 y - 1 = i / i + Vi y
u„ = pn~1ul
2 \ls \ 2 / V il 2 ) ’
-1 + V5 / 1 - s/sY ' 1
vn = qn~lVy
2^5 \ 2 )
and hence
n
1 1 + V5 i - V i VI
+ vn = —=
v5 2 2
44. First solution
The number of ways of lighting the bulbs such that one of
the five bulbs is on equals the number of ways such that one
bulb is off or equivalently such that four bulbs are on. In each
case, there are 5 ways in all (the symbol ~ means “corresponds
o • • • • • o o o 0
• o • • • o • 0 o o
• • o • • 0 o • 0 o
• • • o • o o o • o
• • • • o o o o o •
Similarly, the number of ways of lighting the bulbs such that
two bulbs are on equals the number of ways such that two bulbs
are off or equivalently such that three bulbs are on. In each
case, there are 10 ways in all:
o o• • • ~ • • o o o
o •o • • ~ • o • o o
o •• o • ~ • o o • o
o •• • o ~ • o o o •
• o o » » ~ o » » o o
• o » o » ~ o » o » o
• o » » o ~ o » o o »
• • o o » ~ o o » » o
• • o » o ~ o o » o *
• • • o o ~ o o o » *
Detailed Solutions 51
There are two further ways of lighting the bulbs, namely all the
bulbs are on
o o o o o
or all the bulbs are off
This exhausts all the possibilities and shows that in all there are
5 + 5 + 1 0 + 1 0 + 1 + 1 = 32
ways of lighting the bulbs.
Second solution
1) Suppose there is only one bulb. Then the bulb can either
be off • or on o, i.e., there are two ways of lighting the bulb.
2) Suppose there are two bulbs. The first bulb can be in two
states • or o. Each of these two states can be combined with the
two states of illumination of the second bulb. If the second bulb
is off, there are two states
o •
• o
o o
3) Three bulbs. The first two bulbs can be in four states, and
each of these 4 states can be combined with either of the two
states of the third bulb:
• •
o • o •
o
• o • o
o o o o
5 Silverman V
58 Sequences and Combinatorial Problems
• • •
o • •
• o •
o o •
• • o
0 * 0
• o o
o o o
<:
o
<:
• o \/
o
o o<
xo
Co + c i + - + c i + ••• + c ; = 2n,
since for each of the 3fc ways of lighting the group of k lights,
there are 2n~k ways of lighting the remaining lights.
48. 263 • 104 = 175,760,000 license plates (there are 26 let
ters in the alphabet).
49. Suppose there are a total of D„ u-digit numbers containing
no zeros or eights. Then Dj = 8A - i > since the extra digit can
be 1, 2, 3, 4, 5, 6, 7 or 9. But obviously Dy = 8. Therefore
A, = 8A - i = 82A -2 = - = 8- ‘A = 8".
D6 = 86 = 262,144
// = 1 + (// — 1 ) , // = (// — 1) + 1 ,
n = 2 + (n — 2), n = (n - 2) + 2,
etc., are regarded as the same. Hence the answer is now\{n — 1).
If n is even, the sum
n n
n ------ 1----
2 2
has no “mate,” but all the others do. Therefore the answer is
now
j + (h ~ 1) ~ 1 = £
2 2 '
53. First we find the number of sums where the first term
equals 1. In this case, the sum of the second and third terms
equals n — 1. Clearly there arc as many such sums as there are
ways of writing the number n — 1 as a sum of two terms, i.e.,
62 Sequences and Combinatorial Problems
we find that
Sn = (0 + 1) + (1 + a) + (a + b) + •••
+ ( / + g) + (g + 1) + (1 + 0).
Combining the first terms in each set of parentheses and then
the second terms, we have
S„ = (0 + 1 + a + + / + g + 1)
+ (1 + a + b + + g + 1 + 0)
= 2(1 + a + b + ••• + g + 1) = 2iS'n_ i.
Detailed Solutions 63
But obviously
Si = 1 + 1 = 2,
and hence
Sn = 2Sn- i = 22Sn- 2 = = 2n~1S 1 = 2",
as asserted.
55. The hint to the problem shows that it is indeed possible
to put 14 bishops on the board without any two threatening
each other. But we must still show that if more than 14 bishops
are put on the board, then two necessarily threaten each other.
First we ask how many bishops can be put on the black squares
without any two threatening each other. The answer is at least
7 (recall Figure 6), but no more as we know show. To this end,
we note that only one bishop can be put on each of the 7 verti
cal “black diagonals” shown in Figure 8, since two bishops on
the same black diagonal will necessarily threaten each other.
64 Sequences and Combinatorial Problems
(pears the first three days, apples the next two days). Thus we
must enumerate all arrays made up of two light circles and three
dark circles. But this has already been done in the solution of
Problem 44, where the answer was found to be C2 = 10.
57. Every way of giving out the apples and pears corresponds
to an array of k light circles and n dark circles, with days on
which apples are given out indicated by light circles and days
on which pears are given out indicated by dark circles. There
fore the problem is completely analogous to that of finding all
ways of lighting k + n bulbs such that k bulbs are on, a quantity
we denote by c£+n (recall Prob.45).
58. C \C \.
59. According to the hint, there is one and only one rook in
each file. Moreover, there is obviously one and only one rook
in each row. The rook in file a can be placed on any of 8 squares
if all 8 rows are previously free. But as a result of putting this
rook on the board, one row is no longer free (for example, if the
rook is on square a2, no further rooks can be put in row 2).
Hence there are now only 7 ways of putting a rook in file b
(in the case just considered, it can be placed on squares bl, b3,
b 4 ,..., b8). As a result of putting rooks in files a and b, two rows
are occupied, i.e., there are now only 6 free rows left and hence
only 6 ways of putting a rook in file c. Similarly, there are 5 ways
of putting a rook in file d, 4 ways in file e, 3 ways in file f, 2 ways
in file g and only one way in file h.
In other words, there are 8 ways of putting a rook in file a,
8 • 7 ways of putting rooks in files a and b, 8 - 7 - 6 ways of
putting rooks in files a, b and c, and so on. Hence there are
8 - 7 - 6 - 5 - 4 - 3 - 2 - 1 = 8!
(°)
Fig. 9
rook, including the square occupied by the rook itself. Then the
remaining n — 1 rooks must all occupy unshaded squares, since
otherwise one of them would threaten the first rook. Next we
delete the shaded squares, which together make up a row and a
file, leaving behind four pieces A, B, C and D (illustrated in
Fig. 9a for the case n = 4). By moving these pieces parallel to
themselves, they can be assembled into an (/j — 1) x (n — 1)
board, as shown in Figure 9b (where n = 4 again). No two
rooks on the (n — 1) x (n — 1) board threaten each other, since
otherwise they would have threatened each other on the ori
ginal n x n board. Moreover, distinct arrangements of rooks on
the new board correspond to distinct arrangements of rooks
on the original board, and every arrangement of rooks on the
Detailed Solutions 67
new board can be obtained by deleting a row and a file from the
original board. As already noted, there are n2 possible choices
of the square ossupied by the first rook. It follows that
L„ = n2L„. j , (1)
where L„ denotes the total number of arrangements of rooks on
an n x n board such that no two rooks threaten each other. But
obviously
L , = (1 !)2 = 1 ( 2)
L4 = P4/4.
P4 = 4! /4 = (4!)2.
The first number in the pair can be chosen in n ways and the
second number can be chosen in n — 1 ways, giving n(n — 1)
ways in all. But the pairs of numbers (k , m) and (m, k) are
counted twice, although they represent the same pair of objects.
It follows that
s,n _ n (/I - 1)
L-2 —------------- •
2
(« —2) (/I — 1)
c; = i
ways.
61. C28 , 26! = 281/2, where, as always, /?! denotes the product
1 • 2 ••• n.
62. Let P\ denote the number of ways of giving 5 apples, no
two of which are alike, to 8 sons. Then P5 can be calculated by
two methods:
1) The number of ways of choosing 5 of the 8 sons (namely
those to receive apples) equals Cf. But for each such group of
sons, there are 5! ways of giving out the apples (the apples arc
distinguishable). Therefore
P i = C l- 5!
P® = 8 • 7 • 6 • 5 ■4 = —
3!
63. The proof is by induction:
a) The result is true for n = 1. In fact, the first number in the
second row of Pascal’s triangle is 1 = C q and the second number
is 1 = C[.
b) Suppose the result is true for n = j. Then it is also true for
n = j + 1. This is obvious for k = 0 or k = j + 1, since
CJ0+1 = 1, CjXi = 1, while the first and last numbers in any
row of Pascal’s triangle are both 1. Recalling that C[ is the num
ber of ways of turning on k out of j bulbs, we now ask how many
ways there are of turning on k out of / + 1 bulbs. If the (J + l)st
bulb is on, there are C*_ 1 ways of illuminating the other bulbs
(any k — 1 of the remaining j bulbs can be turned on). On the
other hand, if the (j + l)st bulb is off, there are CJk ways of
illuminating the other bulbs (any k of the remaining./ bulbs can
be turned on). It follows that
C{+1 = C { -1 + Cl (1)
by definition (recall Prob. 53). Using (1) we can write this row as
1 +1 +1 /"ij+1 1
W > 2 J •••> w y 1•
^n _ H (n - 1) (n - 2) n (n - 1) {n - 2)
^3 — ------------------------ —-----------------------
6 1*2-3
1! 1!
C1 — = 1, C\ = = 1.
0!1! 1! 0 !
72 Sequences and Combinatorial Problems
Cfc+ 1 — J! +
(k — \)\ (j — k + 1)! k ! (J - k) !
j'-
— '
(k - 1)! (j - k ) \ \ j - k + 1 kj
J'- k + (j - k + 1)
(A; _ ] ) ! (_/_/;)! k ( j — k + 1)
J'- j+ 1
(k - 1 ) l ( j - k ) l k (j — k + 1)
where in the second step we use the obvious relations
k\ = k ( k — 1)!, (j - k + 1)! = (j - k + 1 ) ( ; - ^ ) !
Therefore
/'C*
-»./+ 1 — ( j + !)•'
k) (j + 1 - A:)!
(1 + o ) ( l + 6 ) ( 1 + c ) ( l + r f ) 0 + e ) ( \ + / ) ( 1 +g )
1-2-3
and ask for the number of terms which arc products of k letters.
Clearly the answer is now Cl by exactly the same reasoning.
6 Silverman V
74 Sequences and Combinatorial Problems
( l+ x + ;v ) 20
is multiplied out without combining terms is a product of 20 fac
tors, where each factor is 1, x or y. Thus we must find the num
ber of products of 20 factors each of which can be “in three
states.” In other words, our problem is equivalent to that of
finding all ways of lighting 20 traffic lights, each of which can be
green, yellow or red. The answer is clearly 320 (cf. Prob. 46).
72. The coefficient of jc17 is
20- 19 • 18
9
2
The coefficient of x 18 is 0.
73. The expression
(1 + tfj) (1 + a2) ••• (1 + a56) (1)
reduces to
(1 + x)56
if we set
ax = a2 = — = a56 = x. (2)
74. The proof is almost literally the same as that of Problem 73.
Detailed Solutions 75
75. The proof is by induction:
a) The formula
(1 + ,x)B = a0 + a^x + a2x 2 + ••• + an- lxn~l + anx" (1)
holds for n = 1, since
(1 + x )1 = 1 + 1 • x
and in this case the binomial coefficients obviously coincide with
the numbers in the second row of Pascal’s triangle.
b) Suppose (1) holds for n = j — 1, so that
(1 + a:)-'-1 = a0 + axx + ••• + akx k + ••• + aj
where a0, a l5 ak, ..., a j - k are the numbers in theyth row of
Pascal’s triangle. Then (1) also holds for n = j, i.e.,
(1 + x)J = b0 + bk + bkx + ••• + bkx k + ••• + bjXJ, (2)
where b0, bu ..., bk, ..., bj are the numbers in the (J + l)st row
of Pascal’s triangle. To see this, we note that
bo = o0 (= 1), by = a0 + ax, ..., bk = + ak, ...,
bj-1 = Oj-2 + Oj -1, bj = ffj-i (= 1),
by the definition of Pascal’s triangle, so that (2) becomes
(1 + x)J = 1 + (a0 + ak) x + ••• + (o*-i + ak) x k
+ + (aj -2 + aJ- l) x J~l + xJ. (3)
But (3) is obviously true, since
(1 + x)J = (1 + x)J- 1(l + x)
= (a0 + akx + ••• + akx k + ••• + aJ- lxJ~l) ( 1 +
= a0 + axX + ••• + akx k + ••• +
+ a0x + ••• + ak- i Xk + ••• + aJ- 2 xJ~i + Qj-iXJ
= fl0 + (°0 + Q\)x + •" + iflk- 1 + ak) X>1
+ ■■■ + (aj - 2 + aJ- 1) x J- 1 + xs .
It follows by induction that (1) holds for all n.
76 Sequences and Combinatorial Problems
C t = 1, C \ = 4, C l = 6, C t = 4, C t = 1.
Therefore
100 ••• 0400 0600 ••• 0400 ••• 01
H im e s k times H im es A; times
= (10k+1 + l)4
CnkCnr kx ky lzn- k- 1.
c nc n -k _ (» - k)\ = n\___
* ' k\ (n — k)\ /! (n — k — /)! k \ /! (« - k - /)! '
(1 + x)n = Cn
0 + Cl x + C"x2 + ••• + O - ,
Detailed Solutions 77
we obtain
2" = Cl + C" + Cl + ••• + c ; ( 1)
and
0 = Cl - Cl + Cl + ••• + (-1)" Cn
n ( 2)
Adding (1) and (2), and then subtracting (2) from (1), we find
that
CnQ + Cl + Cl + ••• = C\ + Cl + Cl + ••• = 2”- 1.
(1 + x —3a-2)1965
a0 + ax • 1 + a2 • l 2 + a3 • l 3 + •••
= Oq + a3 + a2 + a3 + •••.
and hence
C n1 + 1 ,
+
/-in + 1
C2
-
~T C 3
/-in + 2
+
, ,
+
/-in + k
v-'jfc
/-in + fc+1
— C*
|
— 1,
since C0 = 1.
86. C lnc l n = (3rt)
(n!)3
57. The condition of the problem can be written concisely in
the form e F G EF EG FG EFG
6 7 6 2 4 3 1
(E for English, F for French and G for German). Suppose the
person who knows all three languages leaves the room. Then
among the remaining people, nobody knows more than two
languages, and we have the following problem:
E F G EF EG FG EFG
5 6 5 1 3 2 0
Detailed Solutions 79
Now suppose the three people who know both English and Ger
man leave the room. Then the number of people who know other
pairs of languages does not change (since nobody in the room
knows all three languages):
E F G EF EG FG EFG
2 6 2 1 0 2 0
Finally suppose the two people who know both French and
German leave, together with the person who knows both
English and French. Then we have
E F G EF EG FG EFG
1 3 0 0 0 0 0
But this problem is trivial, i.e., there is one person in the room
who knows only English and three who know only French.
Moreover, 7 people in all left the room. Hence the room ori
ginally contained 11 people, one of whom knows only English.
88. Suppose the number of subscribers who have borrowed k
given books is summed over all possible sets of k books, and let
S k denote this sum. Then
S = 5 , - 5 2 + 5 3 - S 4 + . . . + ( - l ) " - 1^ (1)
is the number of people subscribing to the library. To see this,
consider a subscriber who has taken out exactly k books, and
examine the contribution he makes to each term in the sum (1).
There is no loss of generality in assuming that our subscriber
has borrowed the first k books. Then he contributes Cy = k to
the term S ly since he is one of those who borrowed the first
book, one of those who borrowed the second book, etc., up to
and including the kth book. Our subscriber contributes C\ to S2,
since he is one of those who borrowed every pair of books from
among the first k books. Similarly, he contributes C„* to Sm if
m < k and 0 to Sm if m > k. In other words, he contributes
Cy - C k2 + C \ - C \ + ••• + ( - l ) k- l Ckk
80 Sequences and Combinatorial Problems
A B C
1 2 -------- - 1 2 ------ - - 12 --
D E
------1 2 - ----------12
where the spaces indicate missing digits (for example, D is the
set consisting of all numbers with 12 in the second and third
places and arbitrary digits elsewhere). Each of the sets A, R, C,
D and E contains 104 numbers. The sets A and D have no num
bers in common, but the sets A and C share 102 numbers, i.c.,
all numbers of the form 12 1 2 __ It is easy to see that there
are 6 • 102 numbers which belong to two sets, but only one
number, namely 12 12 12, which belongs to three sets. There
fore by the result of the preceding problem, there arc a total of
where // ^ 3.
4. Prove that
(// + 1) (/i + 2) ••• (2/2 — 1) 2n
1 • 3 • 5 ••• (2// - 1)
5. Prove that
1 1 1 13
-----------1-----------+ ••• + — > ——
n + 1 n + 2 2« 24
for every integer n > 1.
6. For what positive integers does the inequality
2" > 2 / 2 + 1
hold?
81
82 Sequences and Combinatorial Problems
7. Prove that
2n~l (an + bn) > (a + b)n,