A338833 Lexicographically earliest infinite sequence of distinct positive numbers with the property that a(n) is the smallest number m not yet in the sequence such that the binary expansions of m and a(n-1) have a 1 in the same position, but the positions of the 1's in the binary expansions of m and a(n-2) are disjoint.
1, 3, 6, 12, 9, 17, 18, 10, 13, 20, 48, 33, 5, 14, 24, 49, 7, 66, 72, 25, 19, 34, 36, 21, 11, 40, 52, 22, 67, 41, 28, 68, 65, 27, 30, 100, 97, 129, 130, 26, 29, 37, 96, 74, 15, 53, 80, 192, 131, 23, 44, 104, 81, 133, 38, 42, 73, 69, 54, 56, 136, 132, 39, 43
Offset: 1
Examples
a(1)=1 is the smallest possible value and does not lead to a contradiction. a(2)=3=11_2 is the smallest value that satisfies the conditions. It does not lead to a contradiction. a(3)=2=10_2 is the smallest value that satisfies the conditions, but then there is no choice for a(4). a(3)=6=110_2 is the next possibility, and does not lead to a contradiction. a(4)=100_2 is the smallest value that satisfies the conditions, but then there is no choice for a(5). But a(4)=12=1100_2 works, and does not lead to a contradiction. (Examples added by _N. J. A. Sloane_, Mar 25 2022)
Links
- N. J. A. Sloane, Table of n, a(n) for n = 1..10000
- Nathan Nichols, Macaulay2 program
- Nathan Nichols, The binary and decimal representations of the first 102 terms
- Nathan Nichols, The Binary Enots Wolley Sequence, arXiv:2207.01448 [math.CO], 2022.
- N. J. A. Sloane, Maple program (This includes a(0)=0, for compatibility with A252867)
Crossrefs
Programs
-
Maple
See Sloane link.
Extensions
Edited, including a more precise definition. - N. J. A. Sloane, Mar 25 2022; corrected Apr 05 2022
Comments