login
This site is supported by donations 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

Francois Alcover, Table of n, a(n) for n = 0..16384

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. A030101, A325402.

Cf. A068636 (analog in base 10).

Sequence in context: A036233 A145799 A244568 * A327656 A098985 A072963

Adjacent sequences:  A325398 A325399 A325400 * A325402 A325403 A325404

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 18 13:31 EDT 2019. Contains 328161 sequences. (Running on oeis4.)