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- 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?
The only possible three-term arithmetic sequence is itself, and it needs in the middle. The arrangements with in the middle are and ; the other all meet the requirement.
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- 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- 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
In the sequence of Stop 1, and . Find .
Arrange to by the recursive “odds first, evens after” construction. Which number is in position ?
What is the smallest such that every sequence of distinct real numbers has a monotone subsequence of length ?
Prove that for every positive integer there are consecutive positive integers that are all composite.