The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A357522 Reverse run lengths in binary expansions of terms of A063037: for n >= 0, a(n) is the unique k such that A063037(1+k) = A056539(A063037(1+n)). 3
0, 1, 2, 3, 6, 5, 4, 7, 8, 11, 10, 9, 16, 17, 18, 15, 12, 13, 14, 19, 32, 23, 22, 21, 24, 31, 28, 27, 26, 29, 30, 25, 20, 33, 42, 49, 48, 43, 44, 47, 50, 41, 34, 37, 38, 53, 52, 39, 36, 35, 40, 51, 46, 45, 74, 75, 84, 65, 58, 59, 64, 85, 86, 63, 60, 57, 66, 83 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
This sequence is a self-inverse permutation of the nonnegative integers.
LINKS
Rémy Sigrist, PARI program
FORMULA
a(n) = n iff n = 0 or A044813(1+n) belongs to A044918.
EXAMPLE
For n = 42:
- A063037(1+42) = 86,
- the binary expansion of 86 is "1010110",
- reversing run lengths yields "1001010",
- this corresponds to 74 = A063037(1+34),
- hence a(42) = 34.
PROG
(PARI) See Links section.
CROSSREFS
See A357523 for a similar sequence.
Sequence in context: A056023 A133259 A120067 * A089843 A269378 A131145
KEYWORD
nonn,look,base
AUTHOR
Rémy Sigrist, Oct 02 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 June 5 01:34 EDT 2024. Contains 373102 sequences. (Running on oeis4.)