login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A319409 a(n) = n - A318921(n). 2
0, 1, 2, 2, 4, 5, 5, 4, 8, 9, 10, 10, 10, 12, 11, 8, 16, 17, 18, 18, 20, 21, 21, 20, 20, 23, 25, 24, 22, 26, 23, 16, 32, 33, 34, 34, 36, 37, 37, 36, 40, 41, 42, 42, 42, 44, 43, 40, 40, 45, 48, 46, 50, 52, 51, 48, 44, 51, 55, 52, 46, 54, 47, 32, 64, 65, 66, 66, 68, 69, 69, 68, 72, 73, 74, 74, 74, 76, 75, 72, 80, 81, 82, 82, 84, 85, 85, 84, 84, 87, 89, 88, 86, 90, 87, 80, 80 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

How much n decreases by when its binary runs are all shortened by one bit.

LINKS

Rémy Sigrist, Table of n, a(n) for n = 0..16384

FORMULA

a(n) = n iff n is a Fibbinary number (A003714). - Rémy Sigrist, Sep 25 2018

PROG

(PARI) a(n) = my (p=-1, d=0, b=1, r=n); while (r, my (l=r%2); if (p!=l, p=l, d+=l*b; b*=2); r\=2); n-d \\ Rémy Sigrist, Sep 25 2018

CROSSREFS

Cf. A003714, A175046, A318921, A319407.

Sequence in context: A231302 A231363 A225840 * A122543 A334149 A118003

Adjacent sequences:  A319406 A319407 A319408 * A319410 A319411 A319412

KEYWORD

nonn,base

AUTHOR

N. J. A. Sloane, Sep 19 2018

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 September 23 01:27 EDT 2021. Contains 347609 sequences. (Running on oeis4.)