Jump to content

Lambek–Moser theorem: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
gloss complementation in lead
Citation bot (talk | contribs)
Added isbn. | Use this bot. Report bugs. | Suggested by LeapTorchGear | Category:Integer sequences | #UCB_Category 44/220
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{short description|On integer partitions from monotonic functions}}
{{short description|On integer partitions from monotonic functions}}
In [[combinatorial number theory]], the '''Lambek–Moser theorem''' defines a [[partition (number theory)|partition]] of the positive [[integer]]s into two subsets from any [[monotonic function|non-decreasing]] integer-valued function and its [[inverse function]]. It is a generalization of [[Beatty sequence|Rayleigh's theorem]], on the complementary [[Beatty sequence]]s obtained by rounding down irrational multiples of the integers. If a formula or function is known for the <math>n</math>th smallest member of a set of positive integers, the Lambek–Moser theorem can be used to derive a formula for the <math>n</math>th positive integer not in the set.
The '''Lambek–Moser theorem''' is a mathematical description of partitions of the [[natural number]]s into two [[Complement (set theory)|complementary sets]]. For instance, it applies to the partition of numbers into [[even number|even]] and [[odd number|odd]], or into [[prime number|prime]] and non-prime (one and the [[composite number]]s). There are two parts to the Lambek–Moser theorem. One part states that any two [[monotonic function|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 {{nowrap|<math>n</math>th}} natural number in a set, the Lambek–Moser theorem can be used to obtain a formula for the {{nowrap|<math>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,{{sfn|Lambek|Moser|1954}} and should be distinguished from an unrelated theorem of Lambek and Moser, later strengthened by Wild, on the number of [[primitive Pythagorean triple]]s.{{sfn|Wild|1955}} It extends Rayleigh's theorem, which describes complementary pairs of [[Beatty sequence]]s, the sequences of rounded multiples of irrational numbers.
Any partition of the positive integers into two complementary subsets may be defined from a non-decreasing function using the Lambek–Moser theorem. As well as the Beatty sequences, other pairs of complementary sets of positive integers to which the Lambek–Moser theorem can be applied include the [[even number]]s and the [[odd number]]s, the [[evil number]]s and the [[odious number]]s, the [[prime number]]s and the non-primes (1 and the [[composite number]]s), and the <math>k</math>th powers and non-powers.


==From functions to partitions==
The Lambek–Moser theorem is named for [[Joachim Lambek]] and [[Leo Moser]], who published it in 1954,{{sfn|Lambek|Moser|1954}} and should be distinguished from an unrelated theorem of Lambek and Moser, later strengthened by Wild, on the number of [[primitive Pythagorean triple]]s.{{sfn|Wild|1955}}

==Statement==
There are two parts to the Lambek–Moser theorem. One part states that two integers functions that are inverse, in a certain sense, can be used to construct a partition of the positive integers into two complementary subsets, and the other part states that every complementary partition can be constructed in this way.

===From functions to partitions===
[[File:Lambek–Moser.svg|thumb|upright=1.35|The four functions <math>f</math>, <math>f^*</math>, <math>F</math>, and <math>F^*</math>, for the two [[Beatty sequence]]s {{nowrap|1, 3, 4, 6, ...}} and {{nowrap|2, 5, 7, 10, ... .}} These sequences round down the integer multiples of <math>\varphi</math> and <math>\varphi+1</math>, where <math>\varphi</math> is the [[golden ratio]].]]
[[File:Lambek–Moser.svg|thumb|upright=1.35|The four functions <math>f</math>, <math>f^*</math>, <math>F</math>, and <math>F^*</math>, for the two [[Beatty sequence]]s {{nowrap|1, 3, 4, 6, ...}} and {{nowrap|2, 5, 7, 10, ... .}} These sequences round down the integer multiples of <math>\varphi</math> and <math>\varphi+1</math>, where <math>\varphi</math> is the [[golden ratio]].]]
The theorem applies to any [[monotonic function|non-decreasing]] and un[[bounded function]] <math>f</math> that maps positive integers to non-negative integers. From any such function <math>f</math>, define <math>f^*</math> to be the integer-valued function that is as close as possible to the [[inverse function]] of <math>f</math>, in the sense that, for all positive integers <math>n</math>,
Let <math>f</math> be any function from positive [[integer]]s to non-negative integers that is both [[monotonic function|non-decreasing]] (each value in the sequence <math>f(1),f(2),f(3),\dots</math> is at least as large as any earlier value) and [[bounded function|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>f^*</math> that is as close as possible to the inverse in the sense that, for all positive integers <math>n</math>,
<math display=block>f\bigl(f^*(n)\bigr) < n \le f\bigl(f^*(n)+1\bigr).</math>
<math display=block>f\bigl(f^*(n)\bigr) < n \le f\bigl(f^*(n)+1\bigr).</math>
Equivalently, <math>f^*(n)</math> may be defined as the number of values <math>x</math> for which <math>f(x)<n</math>.
Equivalently, <math>f^*(n)</math> may be defined as the number of values <math>x</math> for which <math>f(x)<n</math>.
It follows from either of these definitions that <math>f^*{}^*=f</math>.
It follows from either of these definitions that <math>f^*{}^*=f</math>.<ref name=statement/> If the two functions <math>f</math> and <math>f^*</math> are plotted as [[histogram]]s, they form mirror images of each other across the diagonal line <math>x=y</math>.{{sfn|Garry|1997}}

Further, define two more functions <math>F</math> and <math>F^*</math>, from positive integers to positive integers, by
From these two functions <math>f</math> and <math>f^*</math>, define two more functions <math>F</math> and <math>F^*</math>, from positive integers to positive integers, by
<math display=block>
<math display=block>
\begin{align}
\begin{align}
Line 21: Line 18:
F^*(n)&=f^*(n)+n\\
F^*(n)&=f^*(n)+n\\
\end{align}</math>
\end{align}</math>
Then the first part of the theorem states that <math>F</math> and <math>F^*</math> are strictly increasing and that the ranges of <math>F</math> and <math>F^*</math> form a partition of the positive integers. Each of these two functions maps any integer <math>i</math> to the <math>i</math>th element of its set in the partition.<ref name=statement>{{harvnb|Lambek|Moser|1954}}; {{harvnb|Honsberger|1970}}, pp. 95–96; {{harvnb|Fraenkel|1977}}.</ref>
Then the first part of the Lambek–Moser theorem states that each positive integer occurs exactly once among the values of either <math>F</math> or <math>F^*</math>.
That is, the values obtained from <math>F</math> and the values obtained from <math>F^*</math> form two complementary sets of positive integers. More strongly, each of these two functions maps its argument <math>n</math> to the <math>n</math>th member of its set in the partition.<ref name=statement>{{harvnb|Lambek|Moser|1954}}; {{harvnb|Honsberger|1970}}, pp. 95–96; {{harvnb|Fraenkel|1977}}.</ref>


As an example of the construction of a partition from a function, let <math>f(n)=n^2</math>, the function that [[Square (algebra)|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>f^*(n)=\lfloor\sqrt{n-1}\rfloor</math>.
===From partitions to functions===
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>S=s_1,s_2,\dots</math> and <math>S^*=s^*_1,s^*_2,\dots</math> are any two complementary increasing sequences of integers, one may construct a pair of functions <math>f</math> and <math>f^*</math> from which this partition may be derived using the Lambek–Moser theorem. To do so, define <math>f(n)=s_n-n</math> and <math>f^*(n)=s^*_n-n</math>.<ref name=statement/>

===Limits of iterated inverses===
In the same work in which they proved the Lambek–Moser theorem, Lambek and Moser provided a method of reconstructing <math>F^*</math> directly from <math>F</math>, without going through <math>f</math> and <math>f^*</math>. Let <math>F^{\#}(n)</math> denote the number of values of <math>x</math> for which <math>F(x)\le n</math>; this is an approximation to the inverse function of <math>F</math>, but (because it uses <math>\le</math> in place of <math><</math>) offset by one from the type of inverse used to define <math>f^*</math> from <math>f</math>. Then, for any <math>n</math>, <math>F^*(n)</math> is the limit of the sequence
<math display=block>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>F^*(n)</math>.<ref name=lure>{{harvnb|Lambek|Moser|1954}}; {{harvnb|Roberts|1992}}.</ref>

===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>(f,f^*)</math> with the property that, for all <math>x</math> and <math>y</math>, <math>f(x)\le y</math> if and only if <math>x\le f(y)</math>. The corresponding functions <math>F</math> and <math>F^*</math> are defined slightly less symmetrically by <math>F(n)=f(n)+n</math> and <math>F^*(n)=f^*(n)+n+1</math>. For functions defined in this way, the values of <math>F</math> and <math>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.{{sfn|Lambek|1994}}

==Examples==
For instance, consider the partition of positive integers into [[Parity (mathematics)|even and odd numbers]], let <math>F(n)=2n</math> be the <math>n</math>th even positive integer, and let <math>F^*(n)=2n-1</math> be the <math>n</math>th odd positive integer. Then the two functions <math>f(n)=F(n)-n=n</math> and <math>f^*(n)=F^*(n)-n=n-1</math> 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 number]]s and [[odious number]]s (by the parity of the [[binary representation]]) uses almost the same functions, adjusted by the values of the [[Thue–Morse sequence]].{{sfn|Allouche|Dekking|2019}}

As another example, let <math>f(n)=n^2</math>, the function that [[Square (algebra)|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>f^*(n)=\lfloor\sqrt{n-1}\rfloor</math>.
These two functions give <math>F(n)=n^2+n</math> and <math>F^*(n)=\lfloor\sqrt{n-1}\rfloor+n.</math>
These two functions give <math>F(n)=n^2+n</math> and <math>F^*(n)=\lfloor\sqrt{n-1}\rfloor+n.</math>
For <math>n=1,2,3,\dots</math> the values of <math>F</math> are the [[pronic number]]s
For <math>n=1,2,3,\dots</math> the values of <math>F</math> are the [[pronic number]]s
Line 46: Line 29:
These two sequences are complementary: each positive integer belongs to exactly one of them.{{sfn|Garry|1997}} The Lambek–Moser theorem states that this phenomenon is not specific to the pronic numbers, but rather it arises for any choice of <math>f</math> with the appropriate properties.<ref name=statement/>
These two sequences are complementary: each positive integer belongs to exactly one of them.{{sfn|Garry|1997}} The Lambek–Moser theorem states that this phenomenon is not specific to the pronic numbers, but rather it arises for any choice of <math>f</math> with the appropriate properties.<ref name=statement/>


==From partitions to functions==
[[File:Prime Lambek–Moser.svg|thumb|The two functions <math>f</math> (rightward blue arrows) and <math>f^*</math> (leftward red arrows) arising from the partition of positive integers into [[prime number|primes]] (2, 3, 5, 7, ...) and non-primes (1, 4, 6, 8, ...). Visualization based on a method of Angel.{{sfn|Angel|1964}}]]
[[File:Prime Lambek–Moser.svg|thumb|The two functions <math>f</math> (rightward blue arrows) and <math>f^*</math> (leftward red arrows) arising from the partition of positive integers into [[prime number|primes]] (2, 3, 5, 7, ...) and non-primes (1, 4, 6, 8, ...). Visualization based on a method of Angel.{{sfn|Angel|1964}}]]
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>S=s_1,s_2,\dots</math> and <math>S^*=s^*_1,s^*_2,\dots</math> are any two complementary increasing sequences of integers, one may construct a pair of functions <math>f</math> and <math>f^*</math> from which this partition may be derived using the Lambek–Moser theorem. To do so, define <math>f(n)=s_n-n</math> and <math>f^*(n)=s^*_n-n</math>.<ref name=statement/>
Following earlier work of [[Viggo Brun]] and [[D. H. Lehmer]],<ref>{{harvnb|Brun|1931}}; {{harvnb|Lehmer|1932}}.</ref> Lambek and Moser discuss formulas involving the [[prime-counting function]] for the functions <math>f</math> and <math>f^*</math> arising in this way from the partition of the positive integers into [[prime number]]s and non-primes (1 and the [[composite number]]s). If <math>\pi(n)</math> is the prime-counting function (number of primes less than or equal to <math>n</math>), then the <math>n</math>th non-prime is given by the limit of the sequence<ref name=lure/>

One of the simplest examples to which this could be applied is the partition of positive integers into [[Parity (mathematics)|even and odd numbers]]. The functions <math>F(n)</math> and <math>F^*(n)</math> should give the {{nowrap|<math>n</math>th}} even or odd number, respectively, so <math>F(n)=2n</math> and <math>F^*(n)=2n-1</math>. From these are derived the two functions <math>f(n)=F(n)-n=n</math> and <math>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 number]]s and [[odious number]]s (by the parity of the [[binary representation]]) uses almost the same functions, adjusted by the values of the [[Thue–Morse sequence]].{{sfn|Allouche|Dekking|2019}}

==Limit formula==
In the same work in which they proved the Lambek–Moser theorem, Lambek and Moser provided a method of going directly {{nowrap|from <math>F</math>,}} the function giving the {{nowrap|<math>n</math>th}} member of a set of positive integers, {{nowrap|to <math>F^*</math>,}} the function giving the {{nowrap|<math>n</math>th}} non-member, without going through <math>f</math> {{nowrap|and <math>f^*</math>.}} Let <math>F^{\#}(n)</math> denote the number of values of <math>x</math> for which <math>F(x)\le n</math>; this is an approximation to the inverse function {{nowrap|of <math>F</math>,}} but (because it uses <math>\le</math> in place {{nowrap|of <math><</math>)}} offset by one from the type of inverse used to define <math>f^*</math> {{nowrap|from <math>f</math>.}} Then, for {{nowrap|any <math>n</math>,}} <math>F^*(n)</math> is the limit of the sequence
<math display=block>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 {{nowrap|is <math>F^*(n)</math>.<ref name=lure>{{harvnb|Lambek|Moser|1954}}; {{harvnb|Roberts|1992}}.</ref>}}

Lambek and Moser used the [[prime number]]s as an example, following earlier work by [[Viggo Brun]] and [[D. H. Lehmer]].<ref>{{harvnb|Brun|1931}}; {{harvnb|Lehmer|1932}}.</ref> If <math>\pi(n)</math> is the [[prime-counting function]] (the number of primes less than or equal {{nowrap|to <math>n</math>),}} then the {{nowrap|<math>n</math>th}} non-prime (1 or a [[composite number]]) is given by the limit of the sequence<ref name=lure/>
<math display=block>n, n+\pi(n), n+\pi\bigl(n+\pi(n)\bigr), \dots</math>
<math display=block>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>n</math>th positive integer that is not a <math>k</math>th power can be obtained from the limiting formula as<ref>{{harvnb|Honsberger|1970}}, pp. 97–100; {{harvnb|Dos Reis|Silberger|1990}}; {{harvnb|Roberts|1992}}.</ref>
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 {{nowrap|<math>n</math>th}} positive integer that is not a {{nowrap|<math>k</math>th}} power can be obtained from the limiting formula as<ref>{{harvnb|Honsberger|1970}}, pp. 97–100; {{harvnb|Dos Reis|Silberger|1990}}; {{harvnb|Roberts|1992}}.</ref>
<math display=block>n+\left\lfloor\sqrt[k]{n + \lfloor\sqrt[k]{n}\rfloor}\right\rfloor.</math>
<math display=block>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 (mathematician)|Samuel Beatty]] on [[Beatty sequence]]s 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>F^*</math>.{{sfn|Lambek|Moser|1954}} [[Edsger W. Dijkstra]] has provided a [[proof without words|visual proof]] of the result,{{sfn|Dijkstra|1980}} and later another proof based on [[algorithm]]ic reasoning.{{sfn|Dijkstra|1982}} Yuval Ginosar has provided an intuitive proof based on an analogy of two athletes running in opposite directions around a circular racetrack.{{sfn|Ginosar|2014}}

==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>(f,f^*)</math> with the property that, for all <math>x</math> and <math>y</math>, <math>f(x)\le y</math> if and only if <math>x\le f(y)</math>. The corresponding functions <math>F</math> and <math>F^*</math> are defined slightly less symmetrically by <math>F(n)=f(n)+n</math> and <math>F^*(n)=f^*(n)+n+1</math>. For functions defined in this way, the values of <math>F</math> and <math>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.{{sfn|Lambek|1994}}


===Rayleigh's theorem===
===Rayleigh's theorem===
Line 57: Line 58:
[[Beatty sequence|Rayleigh's theorem]] states that for two positive [[irrational number]]s <math>r</math> and <math>s</math>, both greater than one, with <math>\tfrac1r+\tfrac1s=1</math>,
[[Beatty sequence|Rayleigh's theorem]] states that for two positive [[irrational number]]s <math>r</math> and <math>s</math>, both greater than one, with <math>\tfrac1r+\tfrac1s=1</math>,
the two sequences <math>\lfloor i\cdot r\rfloor</math> and <math>\lfloor i\cdot s\rfloor</math> for <math>i=1,2,3,\dots</math>, obtained by rounding down to an integer the multiples of <math>r</math> and <math>s</math>, are complementary. It can be seen as an instance of the Lambek–Moser theorem with <math>f(n)=\lfloor rn\rfloor-n</math> and <math>f^\ast(n)=\lfloor sn\rfloor-n</math>. The condition that <math>r</math> and <math>s</math> be greater than one implies that these two functions are non-decreasing; the derived functions are <math>F(n)=\lfloor rn\rfloor</math> and <math>F^*(n)=\lfloor sn\rfloor.</math> The sequences of values of <math>F</math> and <math>F^*</math> forming the derived partition are known as [[Beatty sequence]]s, after [[Samuel Beatty (mathematician)|Samuel Beatty]]'s 1926 rediscovery of Rayleigh's theorem.<ref>{{harvnb|Rayleigh|1894}}; {{harvnb|Beatty|1926}}; {{harvnb|Honsberger|1970}}, pp. 93–95; {{harvnb|Chamberland|2017}}.</ref>
the two sequences <math>\lfloor i\cdot r\rfloor</math> and <math>\lfloor i\cdot s\rfloor</math> for <math>i=1,2,3,\dots</math>, obtained by rounding down to an integer the multiples of <math>r</math> and <math>s</math>, are complementary. It can be seen as an instance of the Lambek–Moser theorem with <math>f(n)=\lfloor rn\rfloor-n</math> and <math>f^\ast(n)=\lfloor sn\rfloor-n</math>. The condition that <math>r</math> and <math>s</math> be greater than one implies that these two functions are non-decreasing; the derived functions are <math>F(n)=\lfloor rn\rfloor</math> and <math>F^*(n)=\lfloor sn\rfloor.</math> The sequences of values of <math>F</math> and <math>F^*</math> forming the derived partition are known as [[Beatty sequence]]s, after [[Samuel Beatty (mathematician)|Samuel Beatty]]'s 1926 rediscovery of Rayleigh's theorem.<ref>{{harvnb|Rayleigh|1894}}; {{harvnb|Beatty|1926}}; {{harvnb|Honsberger|1970}}, pp. 93–95; {{harvnb|Chamberland|2017}}.</ref>

==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 (mathematician)|Samuel Beatty]] on [[Beatty sequence]]s 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>F^*</math>.{{sfn|Lambek|Moser|1954}} [[Edsger W. Dijkstra]] has provided a [[proof without words|visual proof]] of the result,{{sfn|Dijkstra|1980}} and later another proof based on [[algorithm]]ic reasoning.{{sfn|Dijkstra|1982}} Yuval Ginosar has provided an intuitive proof based on an analogy of two athletes running in opposite directions around a circular racetrack.{{sfn|Ginosar|2014}}


==See also==
==See also==
Line 80: Line 78:
| title = Generalized Beatty sequences and complementary triples
| title = Generalized Beatty sequences and complementary triples
| volume = 8
| volume = 8
| year = 2019}}
| year = 2019| s2cid = 119176190
}}
*{{citation
*{{citation
| last = Angel | first = Myer
| last = Angel | first = Myer
Line 89: Line 88:
| title = Partitions of the natural numbers
| title = Partitions of the natural numbers
| volume = 7
| volume = 7
| year = 1964}}
| year = 1964| issue = 2
| s2cid = 123729929
| doi-access = free
}}
*{{citation
*{{citation
| last = Beatty | first = Samuel | author-link = Samuel Beatty (mathematician)
| last = Beatty | first = Samuel | author-link = Samuel Beatty (mathematician)
Line 99: Line 101:
| title = Problem 3173
| title = Problem 3173
| volume = 33
| volume = 33
| year = 1926}}; Solutions by Beatty, A. Ostrowski, J. Hyslop, and A. C. Aitken, vol. 34 (1927), pp.&nbsp;159–160, {{jstor|2298716}}
| year = 1926}}; Solutions by Beatty, A. Ostrowski, J. Hyslop, and A. C. Aitken, vol. 34 (1927), pp.&nbsp;159–160, {{JSTOR|2298716}}
*{{citation
*{{citation
| last = Brun | first = Viggo | author-link = Viggo Brun
| last = Brun | first = Viggo | author-link = Viggo Brun
Line 106: Line 108:
| pages = 73–79
| pages = 73–79
| title = Rechenregel zur Bildung der <math>n</math>-ten Primzahl
| title = Rechenregel zur Bildung der <math>n</math>-ten Primzahl
| trans-title = Calculating rules to build the <math>n</math>th prime
| trans-title = Calculating rules to build the {{nowrap|<math>n</math>th}} prime
| volume = 13
| volume = 13
| year = 1931
| year = 1931
Line 139: Line 141:
| volume = 91
| volume = 91
| year = 1982
| year = 1982
| zbl = 0533.40001}}
| isbn = 978-90-277-1462-6 | zbl = 0533.40001}}
*{{citation
*{{citation
| last1 = Dos Reis | first1 = A. J.
| last1 = Dos Reis | first1 = A. J.
| last2 = Silberger | first2 = D. M.
| last2 = Silberger | first2 = D. M.
| doi = 10.2307/2691513
| doi = 10.1080/0025570X.1990.11977485
| issue = 1
| issue = 1
| journal = Mathematics Magazine
| journal = Mathematics Magazine
| jstor = 2691513
| mr = 1042938
| mr = 1042938
| pages = 53–55
| pages = 53–55
| title = Generating nonpowers by formula
| title = Generating nonpowers by formula
| url = https://www.maa.org/programs/faculty-and-departments/classroom-capsules-and-notes/generating-nonpowers-by-formula
| volume = 63
| volume = 63
| year = 1990}}
| year = 1990}}
Line 200: Line 204:
| title = Some Galois connections in elementary number theory
| title = Some Galois connections in elementary number theory
| volume = 47
| volume = 47
| year = 1994}}
| year = 1994| doi-access = free
}}
*{{citation
*{{citation
| last1 = Lambek | first1 = Joachim | author1-link = Joachim Lambek
| last1 = Lambek | first1 = Joachim | author1-link = Joachim Lambek
| last2 = Moser | first2 = Leo | author2-link = Leo Moser
| last2 = Moser | first2 = Leo | author2-link = Leo Moser
| date = August–September 1954
| date = August–September 1954
| doi = 10.2307/2308078
| doi = 10.1080/00029890.1954.11988496
| issue = 7
| issue = 7
| journal = [[The American Mathematical Monthly]]
| journal = [[The American Mathematical Monthly]]
Line 221: Line 226:
| title = An inversive algorithm
| title = An inversive algorithm
| volume = 38
| volume = 38
| year = 1932}}
| year = 1932| doi-access = free
}}
*{{citation
*{{citation
| author = John William Strutt, Baron Rayleigh
| author = John William Strutt, Baron Rayleigh
Line 243: Line 249:
| title = Lure of the Integers
| title = Lure of the Integers
| url = https://books.google.com/books?id=DvX90EKMxGwC&pg=PA11
| url = https://books.google.com/books?id=DvX90EKMxGwC&pg=PA11
| year = 1992}}
| year = 1992| jstor = 40148160
}}
*{{citation
*{{citation
| last = Wild | first = Roy E.
| last = Wild | first = Roy E.
Line 252: Line 259:
| url = https://projecteuclid.org/euclid.pjm/1103044611
| url = https://projecteuclid.org/euclid.pjm/1103044611
| volume = 5
| volume = 5
| year = 1955}}
| year = 1955| doi = 10.2140/pjm.1955.5.85
| doi-access = free
}}
{{refend}}
{{refend}}



Latest revision as of 14:14, 3 March 2024

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 th natural number in a set, the Lambek–Moser theorem can be used to obtain a formula for the 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

[edit]
The four functions , , , and , for the two Beatty sequences 1, 3, 4, 6, ... and 2, 5, 7, 10, ... . These sequences round down the integer multiples of and , where is the golden ratio.

Let be any function from positive integers to non-negative integers that is both non-decreasing (each value in the sequence 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 that is as close as possible to the inverse in the sense that, for all positive integers , Equivalently, may be defined as the number of values for which . It follows from either of these definitions that .[3] If the two functions and are plotted as histograms, they form mirror images of each other across the diagonal line .[4]

From these two functions and , define two more functions and , from positive integers to positive integers, by Then the first part of the Lambek–Moser theorem states that each positive integer occurs exactly once among the values of either or . That is, the values obtained from and the values obtained from form two complementary sets of positive integers. More strongly, each of these two functions maps its argument to the th member of its set in the partition.[3]

As an example of the construction of a partition from a function, let , 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 . These two functions give and For the values of are the pronic numbers

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

while the values of 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 with the appropriate properties.[3]

From partitions to functions

[edit]
The two functions (rightward blue arrows) and (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 and are any two complementary increasing sequences of integers, one may construct a pair of functions and from which this partition may be derived using the Lambek–Moser theorem. To do so, define and .[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 and should give the th even or odd number, respectively, so and . From these are derived the two functions and . 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

[edit]

In the same work in which they proved the Lambek–Moser theorem, Lambek and Moser provided a method of going directly from , the function giving the th member of a set of positive integers, to , the function giving the th non-member, without going through and . Let denote the number of values of for which ; this is an approximation to the inverse function of , but (because it uses in place of ) offset by one from the type of inverse used to define from . Then, for any , is the limit of the sequence meaning that this sequence eventually becomes constant and the value it takes when it does is .[7]

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

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 th positive integer that is not a th power can be obtained from the limiting formula as[9]

History and proofs

[edit]

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 .[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]

[edit]

For non-negative integers

[edit]

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 with the property that, for all and , if and only if . The corresponding functions and are defined slightly less symmetrically by and . For functions defined in this way, the values of and (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

[edit]

Rayleigh's theorem states that for two positive irrational numbers and , both greater than one, with , the two sequences and for , obtained by rounding down to an integer the multiples of and , are complementary. It can be seen as an instance of the Lambek–Moser theorem with and . The condition that and be greater than one implies that these two functions are non-decreasing; the derived functions are and The sequences of values of and forming the derived partition are known as Beatty sequences, after Samuel Beatty's 1926 rediscovery of Rayleigh's theorem.[14]

See also

[edit]

Notes

[edit]

References

[edit]