login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A372128 Lexicographically earliest sequence of distinct positive integers such that for any n > 0, a(2*n+1) = a(2*n) OR a(n) (where OR denotes the bitwise OR operator). 3
1, 2, 3, 4, 6, 5, 7, 8, 12, 9, 15, 16, 21, 17, 23, 18, 26, 10, 14, 19, 27, 20, 31, 13, 29, 32, 53, 24, 25, 33, 55, 28, 30, 34, 58, 35, 43, 36, 46, 40, 59, 37, 63, 38, 54, 64, 95, 39, 47, 41, 61, 65, 97, 66, 119, 44, 60, 48, 57, 50, 51, 72, 127, 42, 62, 68, 94 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Conjecture: this sequence is a permutation of the positive integers.
LINKS
Rémy Sigrist, PARI program
EXAMPLE
The first terms, arranged alongside a binary tree where each right child equals its parent OR its sibling, are:
|
.-------1-------.
| |
.---2---. .---3---.
| | | |
.-4-. .-6-. .-5-. .-7-.
| | | | | | | |
8 12 9 15 16 21 17 23
PROG
(PARI) \\ See Links section.
CROSSREFS
See A372030 for similar sequences.
Cf. A372032 (analog for bitwise XOR operator).
Sequence in context: A072758 A104464 A352725 * A367307 A139706 A333777
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 20 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 13 13:25 EDT 2024. Contains 375907 sequences. (Running on oeis4.)