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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073139 Difference between the largest and smallest number having in binary representation the same number of 0's and 1's as n. 5
0, 0, 0, 0, 0, 1, 1, 0, 0, 3, 3, 3, 3, 3, 3, 0, 0, 7, 7, 9, 7, 9, 9, 7, 7, 9, 9, 7, 9, 7, 7, 0, 0, 15, 15, 21, 15, 21, 21, 21, 15, 21, 21, 21, 21, 21, 21, 15, 15, 21, 21, 21, 21, 21, 21, 15, 21, 21, 21, 15, 21, 15, 15, 0, 0, 31, 31, 45, 31, 45, 45, 49, 31, 45, 45, 49, 45, 49, 49, 45, 31 (list; graph; refs; listen; history; internal format)
OFFSET

0,10

COMMENTS

a(n) = A073138(n) - A073137(n).

LINKS

Index entries for sequences related to binary expansion of n

Harvey P. Dale, Table of n, a(n) for n = 0..1000

MATHEMATICA

d[n_]:=Module[{idn2=IntegerDigits[n, 2]}, FromDigits[Sort[idn2, #1>#2&], 2]- FromDigits[ RotateRight[Sort[idn2], 1], 2]]; Array[d, 90, 0] (* From Harvey P. Dale, Oct 22 2011 *)

CROSSREFS

Cf. A007088, A073140, A073141.

Sequence in context: A177228 A097675 A141605 * A122845 A135203 A179804

Adjacent sequences:  A073136 A073137 A073138 * A073140 A073141 A073142

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Jul 16 2002

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

Content is available under The OEIS End-User License Agreement .

Last modified February 13 19:52 EST 2012. Contains 205536 sequences.