Professional Documents
Culture Documents
Selected Exercises
Exercise 10
Let ( xi, yi ), i = 1, 2, 3, 4, 5, be a set of 5 distinct points with
integer coordinates in the xy plane.
Show that the midpoint of the line joining at least 1 pair of
these points has integer coordinates.
(x1, y1)
( (x1+ x2 )/2 , (y1+ y2 )/2 )
(x , y )
Copyright 2 Peter
2 Cappello 2011
Exercise 10 Solution
1.
2.
3.
4.
A line connecting 2 points in the same category has a midpoint with integer
coordinates.
Copyright Peter Cappello
Exercise 30
Show: If there are 100,000,000 wage earners in the US
who earn < $1,000,000, there are 2 with the same
income, to the penny.
(Assume each wage earners income > 0.)
Exercise 30 Solution
Show that if there are 100,000,000 wage earners in the US who earn
< $1,000,000, there are 2 with the same income, to the penny.
Solution:
Exercise 40
There are 51 houses on a street.
Each house has an integer address between 1000
and 1099, inclusive.
Show that at least 2 houses have consecutive
addresses.
Exercise 40 Solution
There are 51 houses on a street. Each house has an integer
address between 1000 and 1099, inclusive.
Show that at least 2 houses have consecutive addresses.
Solution:
End
20
Find an increasing subsequence of maximal length and a
decreasing subsequence of maximal length in the sequence
22, 5, 7, 2, 23, 10, 15, 21, 3, 17.
Solution: Brute force.
5, 7, 10, 15, 21 is an increasing subsequence of length 5.
22, 10, 3 is a decreasing subsequence of length 3 (not unique).
10