Discrete Continuity in Combinatorics

This blog post corresponds to my newest olympiad handout on discrete continuity.

The concept of discrete continuity is an extremely effective and versatile method in tackling a wide variety of combinatorics problems. This technique has been used extensively for many years especially in particular classes of problems. Here, after a quick recap of the basics we shall look at the solutions to some of the more interesting problems from the Practice Problems section of the handout.

The idea behind the notion of discrete continuity is that if an integer valued function changes by at most one at each step it must be surjective within its range.

A common style of problems which falls prey to this technique are number theory problems which ask you to show there exists a string of m consecutive integers of which exactly k satisfy a desired property X for some choice of (m,k).

The recipe for these problems is quite simple – show there exists strings of m consecutive integers with at least and at most k integers which satisfy X respectively, and use the discrete intermediate value theorem to win.

Here is Serbia 2014 Problem 4.

A natural number n is said to be crazy if and only if there exists positive integers a,b>1 for which n=a^b+b. Show that there exists a set of 2014 consecutive natural numbers of which exactly 2012 are crazy.

We look at the function f(i) which records the number of crazy integers in the set \{i,i+1,\dots , i+2013\}.

Let a number be called sane if it is not crazy. Note that since 1,2,3,4,5 are all sane due to size restrictions, f(1)<2012. Furthermore, for all positive integers 2015 \ge i>1 we have 2^{2015!}+i = \left(2^{\frac{2015!}{i}}\right)^i +i which is clearly crazy. Hence, f(2^{2015!}+2)=2014.

Now comes the punchline – since |f(i+1)-f(i)| \le 1 (think about why this is true), f(1)<2012 and f(2^{2015!}+2)>2012 there must have been some point where f was exactly equal to 2012.

Part of the reason why this method is so effective is that it is an existential technique. It guarantees the existence of objects satisfying the criteria you need without explicitly mentioning what they are. For example, in the above problem we don’t even have any idea about the size of the set of 2014 consecutive integers which work (except that it lies between the two extremes – 1 and 2^{2015!}+2).

Next, we shall look at an interesting problem which appeared on the 2004 Putnam.

Basketball star Yang Liu’s team statistician keeps track of the number, S(N), of successful free throws he has made in his first N attempts of the season. Early in the season, S(N) was less than 80% of N, but by the end of the season, S(N) was more than 80% of N. Was there necessarily a moment in between when S(N) was exactly 80% of N?

The key idea is to define the function f(i) = 5S(i)-4i.

Before we proceed, a natural question to ask is – ‘why this function?’. The answer is simple. It is zero precisely when S(N) was exactly 80% of N. It is in a sense, a measure of how ‘close’ a moment is to being an 80% success rate.

Our hope is that f would satisfy discrete continuity. Indeed, when Liu makes a successful throw both S and i increase by one, causing f to increase by one as well. However, when Liu fails a throw, i increases by one without changing S causing f to drop by four.

Clearly, f does not satisfy discrete continuity, so are we cooked? Thankfully, no! In fact, we do not care how f decreases. Since f may only increase one at a time, and we know there is a moment when S(n) moves from below to above 80% of N, f must have been exactly zero at this moment.

An interesting thing to note is that this solution only worked since 0.8 is the ratio of two consecutive integers. For example, if 80% were replaced by 60% the argument would break since the corresponding function would then be f(i)=10S(i)-6i which does not satisfy discrete continuity when either increasing nor decreasing, so it is possible for f to jump right over zero.

To finish things off we play with some windmills on Brazil 2018 Problem 6.

Consider a set S of 4n points in the plane, no three collinear, and the \binom{4n}{3} triangles with vertices in S. Prove that some point in the plane lies in the interior of at least 2n^3 of these triangles.

What I like most about this problem is that at a glance discrete continuity is an idea that you would never come up with – even if you had 14 bottles of 34% w/w hydrochloric acid to drink last night. Global approaches like pigeonhole seem more promising.

However, experimenting with small cases we make an interesting observation – the ‘center’ of the distribution of points always seems to work. That is, if we consider two lines which divide the plane into four regions such that there are exactly n points (note how the total number of points was conveniently set to 4n) in each quadrant of the plane.

The idea is that if we pick one point from each quadrant, the resulting quadrilateral has at least two triangles pick cover X, simply because X must lie strictly inside the quadrilateral. Thus, there exists at least,

2n^4 \cdot \frac{1}{n} = 2n^3

triangles which cover the point X.

With this observation in hand, we have suddenly turned the tides – this is simply a stronger version of Example 11 in the handout!

We first show that for any line \ell in the plane, there exists a line \mathcal{L}_\ell which is parallel to \ell and has exactly 2n points on each side of it. This is clear since starting with a line parallel to \ell not intersecting the convex hull of our set of points, we may push it along until we pass right through the convex hull.

We begin with 0,4n points on each side of the line and end with 4n,0 implying that by the discrete intermediate value theorem, there exists some intermediate moment where the line split the set of points into two equal groups.

We can also tweak this argument to divide the plane into four quadrants. Simply fix a line \ell and let a variable line m start off as \ell and rotate clockwise continuously until it makes a half rotation.

At any moment, \mathcal{L}_\ell and \mathcal{L}_m split the plane into four regions. We begin with the regions having exactly 0,2n,0,2n points each and end with them having 2n,0,2n,0 points each implying that at some moment we must have had exactly n points in each quadrant, which is exactly what we wanted.

4 thoughts on “Discrete Continuity in Combinatorics”

  1. I love that basketball one! Maybe you can add in the problem named SILLY (exactly the same with the basketball one) in OTIS.

    Like

Leave a comment