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 natural number in a set, the Lambek–Moser theorem can be used to obtain a formula for the 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, and should be distinguished from an unrelated theorem of Lambek and Moser, later strengthened by Wild, on the number of primitive Pythagorean triples. It extends Rayleigh's theorem, which describes complementary pairs of Beatty sequences, the sequences of rounded multiples of irrational numbers.
Let
f
f(1),f(2),f(3),...
f*
n
f*(n)
x
f(x)<n
f*{}*=f
f
f*
x=y
From these two functions
f
f*
F
F*
F
F*
F
F*
n
n
As an example of the construction of a partition from a function, let
f(n)=n2
f*(n)=\lfloor\sqrt{n-1}\rfloor
F(n)=n2+n
F*(n)=\lfloor\sqrt{n-1}\rfloor+n.
n=1,2,3,...
F
2, 6, 12, 20, 30, 42, 56, 72, 90, 110, ...while the values of
F*
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. The Lambek–Moser theorem states that this phenomenon is not specific to the pronic numbers, but rather it arises for any choice of
f
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
S=s1,s2,...
S*=s
* | |
2,... |
f
f*
f(n)=sn-n
f*(n)=s
* | |
n-n |
One of the simplest examples to which this could be applied is the partition of positive integers into even and odd numbers. The functions
F(n)
F*(n)
F(n)=2n
F*(n)=2n-1
f(n)=F(n)-n=n
f*(n)=F*(n)-n=n-1
In the same work in which they proved the Lambek–Moser theorem, Lambek and Moser provided a method of going directly the function giving the member of a set of positive integers, the function giving the non-member, without going through
f
F\#(n)
x
F(x)\len
\le
f*
F*(n)
Lambek and Moser used the prime numbers as an example, following earlier work by Viggo Brun and D. H. Lehmer.[2] If
\pi(n)
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 positive integer that is not a power can be obtained from the limiting formula as[3]
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
F*
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
(f,f*)
x
y
f(x)\ley
x\lef(y)
F
F*
F(n)=f(n)+n
F*(n)=f*(n)+n+1
F
F*
See main article: Beatty sequence. Rayleigh's theorem states that for two positive irrational numbers
r
s
\tfrac1r+\tfrac1s=1
\lfloori ⋅ r\rfloor
\lfloori ⋅ s\rfloor
i=1,2,3,...
r
s
f(n)=\lfloorrn\rfloor-n
f\ast(n)=\lfloorsn\rfloor-n
r
s
F(n)=\lfloorrn\rfloor
F*(n)=\lfloorsn\rfloor.
F
F*