Method stop · When and why do we use it?

Existence Problems for Sequences

In the Chinese book: 数列中的存在性问题

Show existence by building it term by term, or show that “none” is absurd.

📖 Chapter 15 of 《数列与数学归纳法》M4 The Pigeonhole Principle lineM14 Coloring lineM18 Construction line

Before this stop, visit:Guess, Then Prove (Method)

One idea, one pictureArrange to in a row so that no number sits between two others as exactly their average. Click the numbers in one at a time — a number marked ✗ cannot go next right now. Can you finish?

Loading figure…

In one sentence

A problem of the form “there exists a …” can be attacked in two ways:

  • construction: build it directly. With sequences you can build term by term, or build small ones first and assemble big ones from them — that is construction by mathematical induction;
  • indirectly: do not build it, but show that “none exists” leads to a contradiction. The pigeonhole principle is the most common tool.

The problem above: can to be arranged in a row so that no number is the average of some number on its left and some number on its right (that is, there are no , , forming an arithmetic sequence)?

A recursive construction: odds first, evens after

Step 1 / 5
Loading figure…
  1. Try it any old way

    Place them in increasing order: after , the is blocked ( is arithmetic). Building term by term easily runs into a dead end; the readout in the figure tells you whether you “can still finish”.

Predict first

For , how many of the arrangements of meet the requirement?

arrangements
Choose an answer first; then you can see the result.

Stop 1 · Infinite sequences: build one term at a time

Example There is an infinite sequence of integers greater than that are pairwise coprime.

“Infinite” sounds scary, but a sequence lets us build one term at a time: just show that once the first terms are built, the -th can always be built, and by mathematical induction the whole sequence exists.

Make the next term coprime to every earlier term

Step 1 / 4
  1. Start

    Take .

Stop 2 · The pigeonhole principle: it exists, without building it

Example (a special case of the Erdős–Szekeres theorem) Any sequence of distinct real numbers has a monotone (increasing or decreasing) subsequence of length .

Nobody can “build” that subsequence here — the sequence is given to us arbitrarily. So go the other way: assume there is none, and count.

Give every term a label

Step 1 / 4
  1. Labels

    For the -th term, let be the length of the longest increasing subsequence ending at it, and the length of the longest decreasing subsequence ending at it.

Compare the two approaches: Stop 1 produces the sequence, Stop 2 only guarantees that the subsequence exists. The first answers “what is it”, the second only “is there one” — but when the object is “given arbitrarily”, the second is often the only way.

Practice

Exercise 1Basic

In the sequence of Stop 1, and . Find .

Exercise 2Basic

Arrange to by the recursive “odds first, evens after” construction. Which number is in position ?

Exercise 3Advanced

What is the smallest such that every sequence of distinct real numbers has a monotone subsequence of length ?

Exercise 4Challenge

Prove that for every positive integer there are consecutive positive integers that are all composite.

Mistake Museum · Exhibits from this stop

Before you leave, look at the traps other people fell into here.See every exhibit in the museum →

Exhibit

I could not arrange it, so it does not exist

The wrong step: Arrange to by “always place the smallest number allowed”: , and halfway through there is nothing left to place. So no such arrangement exists.
What went wrong? Think first, then open

Diagnosis One failed attempt only shows that this way of arranging does not work. “Does not exist” is a claim about every arrangement: either check them all, or give a reason that applies to every arrangement. In fact works.

The right step: To prove existence, look for a construction; to prove non-existence, find a reason that “no arrangement can escape” (counting, pigeonhole, parity, an invariant).

“One failure does not prove non-existence”

Exhibit

The pigeonhole principle says “there is one”, so you think you know which

The wrong step: Any sequence of distinct numbers has a monotone subsequence of length , so the first terms (or the last ) must be monotone.
What went wrong? Think first, then open

Diagnosis The pigeonhole principle only guarantees that such a subsequence exists; it does not say where. In neither the first nor the last terms are monotone; a monotone subsequence is , taken with gaps.

The right step: An indirect existence proof only tells you “there is one”; to point to it you must search separately (for example by following the labels used in the proof).

“An indirect proof guarantees there is one, but does not point the way”