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!)
A325401 minflip(n) = min(n, r(n)) where r(n) is the binary reverse of n. 2
0, 1, 1, 3, 1, 5, 3, 7, 1, 9, 5, 11, 3, 11, 7, 15, 1, 17, 9, 19, 5, 21, 13, 23, 3, 19, 11, 27, 7, 23, 15, 31, 1, 33, 17, 35, 9, 37, 25, 39, 5, 37, 21, 43, 13, 45, 29, 47, 3, 35, 19, 51, 11, 43, 27, 55, 7, 39, 23, 55, 15, 47, 31, 63 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) = min(n,A030101(n)).
EXAMPLE
a(2) = min(2, r(2))
= min(2, b'01')
= min(2,1)
= 1.
MAPLE
a:= proc(n) local m, r; m:=n; r:=0;
while m>0 do r:=r*2+irem(m, 2, 'm') od;
min(n, r)
end:
seq(a(n), n=0..127); # Alois P. Heinz, Apr 23 2019
PROG
(PARI) a(n) = min(n, fromdigits(Vecrev(binary(n)), 2)); \\ Michel Marcus, Apr 23 2019
CROSSREFS
Cf. A068636 (analog in base 10).
Sequence in context: A331804 A244568 A331471 * A336650 A343249 A327656
KEYWORD
nonn,look,base
AUTHOR
Francois Alcover, Apr 23 2019
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 25 10:22 EDT 2024. Contains 371967 sequences. (Running on oeis4.)