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!)
A338252 Nonpositive values in A317050, in order of appearance and negated. 3
0, 1, 2, 4, 3, 5, 6, 10, 9, 7, 8, 16, 15, 17, 18, 14, 13, 11, 12, 20, 19, 21, 22, 26, 25, 23, 24, 40, 39, 41, 42, 38, 37, 35, 36, 28, 27, 29, 30, 34, 33, 31, 32, 64, 63, 65, 66, 62, 61, 59, 60, 68, 67, 69, 70, 74, 73, 71, 72, 56, 55, 57, 58, 54, 53, 51, 52, 44 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
This sequence is a permutation of the nonnegative integers, with inverse A338254 (the offset has been set to 0 so as to have a permutation).
LINKS
FORMULA
a(n) = -A317050(A053754(n+1)) for any n >= 0.
a(n) = n iff n belongs to A136324.
EXAMPLE
A338251 = 0, 1, -1, -2, 2, 3, 5, 4, -4, -3, -5, -6, -10, -9, -7, -8, ...
We keep: 0, 1, 2, 4, 3, 5, 6, 10, 9, 7, 8, ...
PROG
(PARI) A317050(n) = fromdigits(binary(bitxor(n, n>>1)), -2)
print (-select(v -> v<=0, apply(A317050, [0..152])))
CROSSREFS
Sequence in context: A132949 A275899 A304971 * A086434 A086433 A102568
KEYWORD
nonn,look,base
AUTHOR
Rémy Sigrist, Oct 18 2020
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 April 23 15:20 EDT 2024. Contains 371916 sequences. (Running on oeis4.)