Jump to content

Lambek–Moser theorem: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
nth nowrap
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 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.
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 is known for the {{nowrap|<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 {{nowrap|<math>n</math>th}} positive integer not in the set.


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.
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 {{nowrap|<math>k</math>th}} powers and non-powers.


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}}
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}}
Line 27: Line 27:


===Limits of iterated inverses===
===Limits of iterated inverses===
In the same work in which they proved the Lambek–Moser theorem, Lambek and Moser provided a method of directly constructing <math>F^*</math>, the mapping from numbers <math>n</math> to the <math>n</math>th non-member of a set whose <math>n</math>th member is given by <math>F(n)</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
In the same work in which they proved the Lambek–Moser theorem, Lambek and Moser provided a method of directly constructing <math>F^*</math>, the mapping from numbers <math>n</math> to the {{nowrap|<math>n</math>th}} non-member of a set whose {{nowrap|<math>n</math>th}} member is given by <math>F(n)</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>
<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>
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>
Line 36: Line 36:


==Examples==
==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}}
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 {{nowrap|<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>.
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>.
Line 47: Line 47:


[[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}}]]
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/>
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 {{nowrap|<math>n</math>th}} non-prime 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>


Line 106: Line 106:
| 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

Revision as of 23:02, 11 September 2022

In combinatorial number theory, the Lambek–Moser theorem defines a partition of the positive integers into two subsets from any non-decreasing integer-valued function and its inverse function. It is a generalization of Rayleigh's theorem, on the complementary Beatty sequences obtained by rounding down irrational multiples of the integers. If a formula is known for the th smallest member of a set of positive integers, the Lambek–Moser theorem can be used to derive a formula for the th positive integer not in the set.

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 numbers and the odd numbers, the evil numbers and the odious numbers, the prime numbers and the non-primes (1 and the composite numbers), and the th powers and non-powers.

The Lambek–Moser theorem 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]

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

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.

The theorem applies to any non-decreasing and unbounded function that maps positive integers to non-negative integers. From any such function , define to be the integer-valued function that is as close as possible to the inverse function of , 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 . Further, define two more functions and , from positive integers to positive integers, by Then the first part of the theorem states that and are strictly increasing and that the ranges of and form a partition of the positive integers. Each of these two functions maps any integer to the th element of its set in the partition.[3]

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

Limits of iterated inverses

In the same work in which they proved the Lambek–Moser theorem, Lambek and Moser provided a method of directly constructing , the mapping from numbers to the th non-member of a set whose th member is given by , 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 .[4]

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

Examples

For instance, consider the partition of positive integers into even and odd numbers, let be the th even positive integer, and let be the th odd positive integer. Then the two functions and 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]

As another example, 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.[7] 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]

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

Following earlier work of Viggo Brun and D. H. Lehmer,[9] Lambek and Moser discuss formulas involving the prime-counting function for the functions and arising in this way from the partition of the positive integers into prime numbers and non-primes (1 and the composite numbers). If is the prime-counting function (number of primes less than or equal to ), then the th non-prime is given by the limit of the sequence[4]

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

Rayleigh's theorem

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

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 .[1] Edsger W. Dijkstra has provided a visual proof of the result,[12] and later another proof based on algorithmic reasoning.[13] Yuval Ginosar has provided an intuitive proof based on an analogy of two athletes running in opposite directions around a circular racetrack.[14]

See also

Notes

References

  • Allouche, Jean-Paul; Dekking, F. Michel (2019), "Generalized Beatty sequences and complementary triples", Moscow Journal of Combinatorics and Number Theory, 8 (4): 325–341, arXiv:1809.03424, doi:10.2140/moscow.2019.8.325, MR 4026541
  • Angel, Myer (1964), "Partitions of the natural numbers", Canadian Mathematical Bulletin, 7: 219–236, doi:10.4153/CMB-1964-020-1, MR 0161826
  • Beatty, Samuel (1926), "Problem 3173", The American Mathematical Monthly, 33 (3): 159, doi:10.2307/2300153, JSTOR 2300153; Solutions by Beatty, A. Ostrowski, J. Hyslop, and A. C. Aitken, vol. 34 (1927), pp. 159–160, JSTOR 2298716
  • Brun, Viggo (1931), "Rechenregel zur Bildung der -ten Primzahl" [Calculating rules to build the th prime], Norsk Matematisk Tidsskrift (in Norwegian), 13: 73–79, Zbl 0003.14902, as cited by Lambek & Moser 1954
  • Chamberland, Marc (2017), "Beatty sequences", Single Digits: In Praise of Small Numbers, Princeton University Press, pp. 32–33, ISBN 978-0-691-17569-0
  • Dijkstra, Edsger W. (1980), On a theorem by Lambek and Moser (PDF), Report EWD753, University of Texas
  • Dijkstra, Edsger W. (1982), "Lambek and Moser revisited", in Broy, Manfred; Schmidt, Gunther (eds.), Theoretical Foundations of Programming Methodology: Lecture Notes of an International Summer School, directed by F. L. Bauer, E. W. Dijkstra and C. A. R. Hoare, NATO Advanced Study Institutes Series, Series C – Mathematical and Physical Sciences, vol. 91, D. Reidel Publishing Co., pp. 19–23, doi:10.1007/978-94-009-7893-5_2, Zbl 0533.40001
  • Dos Reis, A. J.; Silberger, D. M. (1990), "Generating nonpowers by formula", Mathematics Magazine, 63 (1): 53–55, doi:10.2307/2691513, MR 1042938
  • Fraenkel, Aviezri S. (1977), "Complementary systems of integers", The American Mathematical Monthly, 84 (2): 114–115, doi:10.2307/2319931, JSTOR 2319931, MR 0429815
  • Garry, Y. K. K. (1997), "Inverse sequences and complementary sequences" (PDF), Mathematical Excalibur, 3 (4): 2
  • Ginosar, Yuval (2014), "On the Lambek–Moser theorem", Integers, 14: A09:1–A09:4, arXiv:1207.5633
  • Honsberger, Ross (1970), "Essay 12: Complementary sequences", Ingenuity in Mathematics, New Mathematical Library, vol. 23, New York: Random House, Inc., pp. 93–110, ISBN 0-394-70923-3, MR 3155264
  • Lambek, Joachim (1994), "Some Galois connections in elementary number theory", Journal of Number Theory, 47 (3): 371–377, doi:10.1006/jnth.1994.1043, MR 1278405
  • Lambek, Joachim; Moser, Leo (August–September 1954), "Inverse and complementary sequences of natural numbers", The American Mathematical Monthly, 61 (7): 454–458, doi:10.2307/2308078, JSTOR 2308078
  • Lehmer, D. H. (1932), "An inversive algorithm", Bulletin of the American Mathematical Society, 38 (10): 693–694, doi:10.1090/S0002-9904-1932-05496-9, MR 1562488
  • John William Strutt, Baron Rayleigh (1894), The Theory of Sound, vol. 1 (2nd ed.), Macmillan, p. 123
  • Roberts, Joe (1992), Lure of the Integers, MAA Spectrum, Washington, DC: Mathematical Association of America, p. 11, doi:10.2307/40148160, ISBN 0-88385-502-X, MR 1189138
  • Wild, Roy E. (1955), "On the number of primitive Pythagorean triangles with area less than n", Pacific Journal of Mathematics, 5: 85–91, MR 0067912