How to use pigeonhole principle to demonstrate lower bound in this problem is $\frac{k(n+1)}{2}$?

492 Views Asked by At

Background

This is not a homework problem, but I am reading through a discrete mathematics book since I am trying to formalize my background in computer science. I came across the following.

Problem

Suppose the integers from $1$ to $n$ are arranged in some order around a circle, and let $k$ be an integer with $1 ≤ k ≤ n$. Show that there must exist a sequence of k adjacent numbers in the arrangement whose sum is at least $$ \frac{k(n+1)}{2} $$

Pseudo proof

Based on the formula of an arithmetic series, let us consider any k such that, at least initially our choice for $k < n$. Thus, we can enumerate through the first $k - 1$ objects and select $n$ to make sure we have $k$ adjacent numbers. In other words, this particular choices gives us $a_1 = 1$ and $a_n = n$ so that we have $$ S_n = \frac{n(a_1 + a_n)}{2} = \frac{k(n+1)}{2}$$.

I contend that we know this is at least the above since I chose all $ k - 1 $ consecutive numbers below $ k $ and the maximum in the set $ n$. I can choose whatever I want, so it stands to reason that larger numbers will be larger than the sum above and thus represents a lower bound. This concludes my pseudo proof.

Issue

Just one. How could I prove this with the pigeonhole principle?

I have some beef with my above logic. First, the chapter in my book is about the pigeonhole principle. Which is easy to understand, but I am not quite sure how to apply that property to solve the above problem. The second is the proof is a little handwavy by appealing to intuition. I think this would suffice on a napkin during cocktails, ahem, but not stand up to rigorous standards.

1

There are 1 best solutions below

7
On BEST ANSWER

It is actually simple.

Let the arrangement be $a_1,a_2,...,a_n$ where each $a_i$ correspond to the $i$th element in the circle clockwisely.

Consider all the $k$ consecutive elements clockwisely, that is, the set of $(a_1,a_2,...,a_k),(a_2,a_3,...,a_k,a_{k+1}),(a_3,a_4,...,a_{k+2})...(a_{n-k+1},a_{n-k+2},...,a_n)...(a_n,a_1,a_2,...,a_{k-1})$.

There are totally $n$ groups and if we sum them all up, each element is added $k$ times and we get $ka_1+ka_2+...+ka_n=k(a_1+a_2+...+a_n)=k\large{n(n+1)\over2}$.

Hence there exist at least one set of $k$ consecutive number greater or equal to the average: $\large{{k{n(n+1)\over2}}\over n}={k(n+1)\over 2}$.