1000/1000
Hot
Most Recent
There is no comment~
More
In number theory, the Moser–De Bruijn sequence is an integer sequence named after Leo Moser and Nicolaas Govert de Bruijn, consisting of the sums of distinct powers of 4, or equivalently the numbers whose binary representations are nonzero only in even positions. These numbers grow in proportion to the square numbers, and are the squares for a modified form of arithmetic without carrying. No two doubled sequence members differ by a square, and every non-negative integer has a unique representation as the sum of a sequence member and a doubled sequence member. This decomposition into sums can be used to define a bijection between the integers and pairs of integers, to define coordinates for the Z-order curve, and to construct inverse pairs of transcendental numbers with simple decimal representations. A simple recurrence relation allows values of the Moser–De Bruijn sequence to be calculated from earlier values, and can be used to prove that the Moser–De Bruijn sequence is a 2-regular sequence.
The Moser–De Bruijn sequence begins[1]
For instance, 69 belongs to this sequence because it equals 64 + 4 + 1, a sum of three distinct powers of 4.
Another definition of the Moser–De Bruijn sequence is that it is the ordered sequence of numbers whose binary representation has nonzero digits only in the even positions. For instance, 69 belongs to the sequence, because its binary representation 10001012 has nonzero digits in the positions for 26, 22, and 20, all of which have even exponents. The numbers in the sequence can also be described as the numbers whose base-4 representation uses only the digits 0 or 1.[1] For a number in this sequence, the base-4 representation can be found from the binary representation by skipping the binary digits in odd positions, which should all be zero. The hexadecimal representation of these numbers contains only the digits 0, 1, 4, 5. For instance, 69 = 10114 = 4516. Equivalently, they are the numbers whose binary and negabinary representations are equal.[1][2] Because there are no two consecutive nonzeros in their binary representations, the Moser–De Bruijn sequence forms a subsequence of the fibbinary numbers.
It follows from either the binary or base-4 definitions of these numbers that they grow roughly in proportion to the square numbers. The number of elements in the Moser–De Bruijn sequence that are below any given threshold
In connection with the Furstenberg–Sárközy theorem on sequences of numbers with no square difference, Imre Z. Ruzsa found a construction for large square-difference-free sets that, like the binary definition of the Moser–De Bruijn sequence, restricts the digits in alternating positions in the base-
The Moser–De Bruijn sequence obeys a property similar to that of a Sidon sequence: the sums
The Moser–De Bruijn sequence is the only sequence with this property, that all integers have a unique expression as
Decomposing a number
In connection with this application, it is convenient to have a formula to generate each successive element of the Moser–De Bruijn sequence from its predecessor. This can be done as follows. If
(Golomb 1966) investigated a subtraction game, analogous to subtract a square, based on this sequence. In Golomb's game, two players take turns removing coins from a pile of
The Moser–De Bruijn sequence forms the basis of an example of an irrational number
Alternatively, one can write:
Similar examples also work in other bases. For instance, the two binary numbers whose nonzero bits are in the same positions as the nonzero digits of the two decimal numbers above are also irrational reciprocals.[13] These binary and decimal numbers, and the numbers defined in the same way for any other base by repeating a single nonzero digit in the positions given by the Moser–De Bruijn sequence, are transcendental numbers. Their transcendence can be proven from the fact that the long strings of zeros in their digits allow them to be approximated more accurately by rational numbers than would be allowed by Roth's theorem if they were algebraic numbers.[12]
The generating function
The Moser–De Bruijn sequence obeys a recurrence relation that allows the nth value of the sequence,