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!)
A352725 Lexicographically earliest sequence of distinct nonnegative integers such that for any n >= 0, the binary expansions of a(n) and a(n+1) have no common runs of consecutive 1's. 1
0, 1, 2, 3, 4, 6, 5, 7, 8, 12, 9, 14, 10, 13, 11, 15, 16, 24, 17, 26, 19, 25, 18, 27, 20, 28, 21, 30, 22, 29, 23, 31, 32, 48, 33, 50, 35, 49, 34, 51, 36, 54, 37, 55, 38, 52, 39, 53, 40, 56, 41, 58, 43, 57, 42, 59, 44, 60, 45, 62, 46, 61, 47, 63, 64, 96, 65, 98 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
This sequence is a variant of A109812; here we consider runs of consecutive 1's, there individual 1's in binary expansions.
The binary expansions of two consecutive terms may share some 1's, but cannot have a common run of consecutive 1's (as given by A352724).
LINKS
Rémy Sigrist, PARI program
EXAMPLE
The first terms, alongside the corresponding partitions into runs of 1's, are:
n a(n) runs in a(n)
-- ---- ------------
0 0 []
1 1 [1]
2 2 [2]
3 3 [3]
4 4 [4]
5 6 [6]
6 5 [1, 4]
7 7 [7]
8 8 [8]
9 12 [12]
10 9 [1, 8]
11 14 [14]
12 10 [2, 8]
13 13 [1, 12]
14 11 [3, 8]
15 15 [15]
16 16 [16]
PROG
(PARI) See Links section.
CROSSREFS
Sequence in context: A330090 A072758 A104464 * A372128 A367307 A139706
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 30 2022
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 August 8 22:44 EDT 2024. Contains 375024 sequences. (Running on oeis4.)