login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A090078 In binary expansion of n, reduce contiguous blocks of 0's to 0. 3
0, 1, 2, 3, 2, 5, 6, 7, 2, 5, 10, 11, 6, 13, 14, 15, 2, 5, 10, 11, 10, 21, 22, 23, 6, 13, 26, 27, 14, 29, 30, 31, 2, 5, 10, 11, 10, 21, 22, 23, 10, 21, 42, 43, 22, 45, 46, 47, 6, 13, 26, 27, 26, 53, 54, 55, 14, 29, 58, 59, 30, 61, 62, 63, 2, 5, 10, 11, 10, 21, 22, 23, 10, 21 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

a(a(n))=a(n); a(A090077(n))=A090077(a(n))=A090079(n).

LINKS

Table of n, a(n) for n=0..73.

Index entries for sequences related to binary expansion of n

EXAMPLE

100 -> '1100100' -> 11[00]1[00] -> 11[0]1[0] -> '11010' ->

26=a(100).

PROG

(PARI) a(n)=my(v=binary(n), t); for(i=1, #v, if(v[i], t+=t+1, t%2, t+=t)); t \\ Charles R Greathouse IV, Aug 17 2016

CROSSREFS

Cf. A007088, A090079, A090077.

Sequence in context: A175781 A072775 A243057 * A259445 A080979 A062789

Adjacent sequences:  A090075 A090076 A090077 * A090079 A090080 A090081

KEYWORD

nonn,base,easy,changed

AUTHOR

Reinhard Zumkeller, Nov 20 2003

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified August 25 21:01 EDT 2016. Contains 275841 sequences.