Lambek–Moser theorem

From HandWiki
Short description: On integer partitions from monotonic functions

The Lambek–Moser theorem is a mathematical description of partitions of the natural numbers into two complementary sets. For instance, it applies to the partition of numbers into even and odd, or into prime and non-prime (one and the composite numbers). There are two parts to the Lambek–Moser theorem. One part states that any two non-decreasing integer functions that are inverse, in a certain sense, can be used to split the natural numbers into two complementary subsets, and the other part states that every complementary partition can be constructed in this way. When a formula is known for the [math]\displaystyle{ n }[/math]th natural number in a set, the Lambek–Moser theorem can be used to obtain a formula for the [math]\displaystyle{ n }[/math]th number not in the set.

The Lambek–Moser theorem belongs to combinatorial number theory. It is named for Joachim Lambek and Leo Moser, who published it in 1954,[1] and should be distinguished from an unrelated theorem of Lambek and Moser, later strengthened by Wild, on the number of primitive Pythagorean triples.[2] It extends Rayleigh's theorem, which describes complementary pairs of Beatty sequences, the sequences of rounded multiples of irrational numbers.

From functions to partitions

The four functions [math]\displaystyle{ f }[/math], [math]\displaystyle{ f^* }[/math], [math]\displaystyle{ F }[/math], and [math]\displaystyle{ F^* }[/math], for the two Beatty sequences 1, 3, 4, 6, ... and 2, 5, 7, 10, ... . These sequences round down the integer multiples of [math]\displaystyle{ \varphi }[/math] and [math]\displaystyle{ \varphi+1 }[/math], where [math]\displaystyle{ \varphi }[/math] is the golden ratio.

Let [math]\displaystyle{ f }[/math] be any function from positive integers to non-negative integers that is both non-decreasing (each value in the sequence [math]\displaystyle{ f(1),f(2),f(3),\dots }[/math] is at least as large as any earlier value) and unbounded (it eventually increases past any fixed value). The sequence of its values may skip some numbers, so it might not have an inverse function with the same properties. Instead, define a non-decreasing and unbounded integer function [math]\displaystyle{ f^* }[/math] that is as close as possible to the inverse in the sense that, for all positive integers [math]\displaystyle{ n }[/math], [math]\displaystyle{ f\bigl(f^*(n)\bigr) \lt n \le f\bigl(f^*(n)+1\bigr). }[/math] Equivalently, [math]\displaystyle{ f^*(n) }[/math] may be defined as the number of values [math]\displaystyle{ x }[/math] for which [math]\displaystyle{ f(x)\lt n }[/math]. It follows from either of these definitions that [math]\displaystyle{ f^*{}^*=f }[/math].[3] If the two functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ f^* }[/math] are plotted as histograms, they form mirror images of each other across the diagonal line [math]\displaystyle{ x=y }[/math].[4]

From these two functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ f^* }[/math], define two more functions [math]\displaystyle{ F }[/math] and [math]\displaystyle{ F^* }[/math], from positive integers to positive integers, by [math]\displaystyle{ \begin{align} F(n)&=f(n)+n\\ F^*(n)&=f^*(n)+n\\ \end{align} }[/math] Then the first part of the Lambek–Moser theorem states that each positive integer occurs exactly once among the values of either [math]\displaystyle{ F }[/math] or [math]\displaystyle{ F^* }[/math]. That is, the values obtained from [math]\displaystyle{ F }[/math] and the values obtained from [math]\displaystyle{ F^* }[/math] form two complementary sets of positive integers. More strongly, each of these two functions maps its argument [math]\displaystyle{ n }[/math] to the [math]\displaystyle{ n }[/math]th member of its set in the partition.[3]

As an example of the construction of a partition from a function, let [math]\displaystyle{ f(n)=n^2 }[/math], the function that squares its argument. Then its inverse is the square root function, whose closest integer approximation (in the sense used for the Lambek–Moser theorem) is [math]\displaystyle{ f^*(n)=\lfloor\sqrt{n-1}\rfloor }[/math]. These two functions give [math]\displaystyle{ F(n)=n^2+n }[/math] and [math]\displaystyle{ F^*(n)=\lfloor\sqrt{n-1}\rfloor+n. }[/math] For [math]\displaystyle{ n=1,2,3,\dots }[/math] the values of [math]\displaystyle{ F }[/math] are the pronic numbers

2, 6, 12, 20, 30, 42, 56, 72, 90, 110, ...

while the values of [math]\displaystyle{ F^* }[/math] are

1, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, ....

These two sequences are complementary: each positive integer belongs to exactly one of them.[4] The Lambek–Moser theorem states that this phenomenon is not specific to the pronic numbers, but rather it arises for any choice of [math]\displaystyle{ f }[/math] with the appropriate properties.[3]

From partitions to functions

The two functions [math]\displaystyle{ f }[/math] (rightward blue arrows) and [math]\displaystyle{ f^* }[/math] (leftward red arrows) arising from the partition of positive integers into primes (2, 3, 5, 7, ...) and non-primes (1, 4, 6, 8, ...). Visualization based on a method of Angel.[5]

The second part of the Lambek–Moser theorem states that this construction of partitions from inverse functions is universal, in the sense that it can explain any partition of the positive integers into two infinite parts. If [math]\displaystyle{ S=s_1,s_2,\dots }[/math] and [math]\displaystyle{ S^*=s^*_1,s^*_2,\dots }[/math] are any two complementary increasing sequences of integers, one may construct a pair of functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ f^* }[/math] from which this partition may be derived using the Lambek–Moser theorem. To do so, define [math]\displaystyle{ f(n)=s_n-n }[/math] and [math]\displaystyle{ f^*(n)=s^*_n-n }[/math].[3]

One of the simplest examples to which this could be applied is the partition of positive integers into even and odd numbers. The functions [math]\displaystyle{ F(n) }[/math] and [math]\displaystyle{ F^*(n) }[/math] should give the [math]\displaystyle{ n }[/math]th even or odd number, respectively, so [math]\displaystyle{ F(n)=2n }[/math] and [math]\displaystyle{ F^*(n)=2n-1 }[/math]. From these are derived the two functions [math]\displaystyle{ f(n)=F(n)-n=n }[/math] and [math]\displaystyle{ f^*(n)=F^*(n)-n=n-1 }[/math]. They form an inverse pair, and the partition generated via the Lambek–Moser theorem from this pair is just the partition of the positive integers into even and odd numbers. Another integer partition, into evil numbers and odious numbers (by the parity of the binary representation) uses almost the same functions, adjusted by the values of the Thue–Morse sequence.[6]

Limit formula

In the same work in which they proved the Lambek–Moser theorem, Lambek and Moser provided a method of going directly from [math]\displaystyle{ F }[/math], the function giving the [math]\displaystyle{ n }[/math]th member of a set of positive integers, to [math]\displaystyle{ F^* }[/math], the function giving the [math]\displaystyle{ n }[/math]th non-member, without going through [math]\displaystyle{ f }[/math] and [math]\displaystyle{ f^* }[/math]. Let [math]\displaystyle{ F^{\#}(n) }[/math] denote the number of values of [math]\displaystyle{ x }[/math] for which [math]\displaystyle{ F(x)\le n }[/math]; this is an approximation to the inverse function of [math]\displaystyle{ F }[/math], but (because it uses [math]\displaystyle{ \le }[/math] in place of [math]\displaystyle{ \lt }[/math]) offset by one from the type of inverse used to define [math]\displaystyle{ f^* }[/math] from [math]\displaystyle{ f }[/math]. Then, for any [math]\displaystyle{ n }[/math], [math]\displaystyle{ F^*(n) }[/math] is the limit of the sequence [math]\displaystyle{ n, n+F^{\#}(n), n+F^{\#}\bigl(n+F^{\#}(n)\bigr), \dots, }[/math] meaning that this sequence eventually becomes constant and the value it takes when it does is [math]\displaystyle{ F^*(n) }[/math].[7]

Lambek and Moser used the prime numbers as an example, following earlier work by Viggo Brun and D. H. Lehmer.[8] If [math]\displaystyle{ \pi(n) }[/math] is the prime-counting function (the number of primes less than or equal to [math]\displaystyle{ n }[/math]), then the [math]\displaystyle{ n }[/math]th non-prime (1 or a composite number) is given by the limit of the sequence[7] [math]\displaystyle{ n, n+\pi(n), n+\pi\bigl(n+\pi(n)\bigr), \dots }[/math]

For some other sequences of integers, the corresponding limit converges in a fixed number of steps, and a direct formula for the complementary sequence is possible. In particular, the [math]\displaystyle{ n }[/math]th positive integer that is not a [math]\displaystyle{ k }[/math]th power can be obtained from the limiting formula as[9] [math]\displaystyle{ n+\left\lfloor\sqrt[k]{n + \lfloor\sqrt[k]{n}\rfloor}\right\rfloor. }[/math]

History and proofs

The theorem was discovered by Leo Moser and Joachim Lambek, who published it in 1954. Moser and Lambek cite the previous work of Samuel Beatty on Beatty sequences as their inspiration, and also cite the work of Viggo Brun and D. H. Lehmer from the early 1930s on methods related to their limiting formula for [math]\displaystyle{ F^* }[/math].[1] Edsger W. Dijkstra has provided a visual proof of the result,[10] and later another proof based on algorithmic reasoning.[11] Yuval Ginosar has provided an intuitive proof based on an analogy of two athletes running in opposite directions around a circular racetrack.[12]

Related results

For non-negative integers

A variation of the theorem applies to partitions of the non-negative integers, rather than to partitions of the positive integers. For this variation, every partition corresponds to a Galois connection of the ordered non-negative integers to themselves. This is a pair of non-decreasing functions [math]\displaystyle{ (f,f^*) }[/math] with the property that, for all [math]\displaystyle{ x }[/math] and [math]\displaystyle{ y }[/math], [math]\displaystyle{ f(x)\le y }[/math] if and only if [math]\displaystyle{ x\le f(y) }[/math]. The corresponding functions [math]\displaystyle{ F }[/math] and [math]\displaystyle{ F^* }[/math] are defined slightly less symmetrically by [math]\displaystyle{ F(n)=f(n)+n }[/math] and [math]\displaystyle{ F^*(n)=f^*(n)+n+1 }[/math]. For functions defined in this way, the values of [math]\displaystyle{ F }[/math] and [math]\displaystyle{ F^* }[/math] (for non-negative arguments, rather than positive arguments) form a partition of the non-negative integers, and every partition can be constructed in this way.[13]

Rayleigh's theorem

Main page: Beatty sequence

Rayleigh's theorem states that for two positive irrational numbers [math]\displaystyle{ r }[/math] and [math]\displaystyle{ s }[/math], both greater than one, with [math]\displaystyle{ \tfrac1r+\tfrac1s=1 }[/math], the two sequences [math]\displaystyle{ \lfloor i\cdot r\rfloor }[/math] and [math]\displaystyle{ \lfloor i\cdot s\rfloor }[/math] for [math]\displaystyle{ i=1,2,3,\dots }[/math], obtained by rounding down to an integer the multiples of [math]\displaystyle{ r }[/math] and [math]\displaystyle{ s }[/math], are complementary. It can be seen as an instance of the Lambek–Moser theorem with [math]\displaystyle{ f(n)=\lfloor rn\rfloor-n }[/math] and [math]\displaystyle{ f^\ast(n)=\lfloor sn\rfloor-n }[/math]. The condition that [math]\displaystyle{ r }[/math] and [math]\displaystyle{ s }[/math] be greater than one implies that these two functions are non-decreasing; the derived functions are [math]\displaystyle{ F(n)=\lfloor rn\rfloor }[/math] and [math]\displaystyle{ F^*(n)=\lfloor sn\rfloor. }[/math] The sequences of values of [math]\displaystyle{ F }[/math] and [math]\displaystyle{ F^* }[/math] forming the derived partition are known as Beatty sequences, after Samuel Beatty's 1926 rediscovery of Rayleigh's theorem.[14]

See also

Notes

References