Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A037861
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A037861 (Number of 0's)-(number of 1's) in base 2 representation of n. +0
20
1, -1, 0, -2, 1, -1, -1, -3, 2, 0, 0, -2, 0, -2, -2, -4, 3, 1, 1, -1, 1, -1, -1, -3, 1, -1, -1, -3, -1, -3, -3, -5, 4, 2, 2, 0, 2, 0, 0, -2, 2, 0, 0, -2, 0, -2, -2, -4, 2, 0, 0, -2, 0, -2, -2, -4, 0, -2, -2, -4, -2, -4, -4, -6, 5, 3, 3, 1, 3, 1, 1, -1, 3 (list; graph; listen)
OFFSET

0,4

COMMENT

Sum(n=1 to infinity, a(n)/((2n)(2n+1))) = log Pi/4 = -0.24156... . - Jonathan Sondow (jsondow(AT)alumni.princeton.edu), Aug 01 2005

REFERENCES

J. Sondow, Double integrals for Euler's constant and ln(4/Pi) and an analogue of Hadjicostas's formula, Amer. Math. Monthly 112 (2005) 61-65.

LINKS

R. Zumkeller, Table of n, a(n) for n = 0..10000

R. Stephan, Some divide-and-conquer sequences ...

R. Stephan, Table of generating functions

R. Stephan, Divide-and-conquer generating functions. I. Elementary sequences

J. Sondow, New Vacca-Type Rational Series for Euler's Constant and Its "Alternating" Analog ln(4/Pi)

FORMULA

a(n) = A023416(n) - A000120(n) = A029837(n) - 2*A000120(n) = 2*A023416(n) - A029837(n); a(2n) = a(n)+1; a(2n+1) = a(2n) - 2 = a(n) - 1: Henry Bottomley (se16(AT)btinternet.com), Oct 27 2000

G.f. satisfies A(x) = (1+x)A(x^2) - x(2+x)/(1+x) - Franklin T. Adams-Watters (FrankTAW(AT)Netscape.net), Dec 26 2006

a(n) = b(n) for n>0 with b(0)=0 and b(n) = b(floor(n/2)) + (-1)^(n mod 2). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Dec 31 2007

MATHEMATICA

Table[ Abs[ Count[ IntegerDigits[n, 2], 0] - Count[ IntegerDigits[n, 2], 1] ], {n, 0, 75} ]

CROSSREFS

Cf. A031443 for n when a(n)=0, A053738 for n when a(n) odd, A053754 for n when a(n) even, A030300 for a(n+1) mod 2.

Cf. A094640, A110625.

Sequence in context: A090379 A077254 A074761 this_sequence A145037 A158052 A158378

Adjacent sequences: A037858 A037859 A037860 this_sequence A037862 A037863 A037864

KEYWORD

base,sign

AUTHOR

Clark Kimberling (ck6(AT)evansville.edu)

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 22 15:28 EST 2009. Contains 167310 sequences.


AT&T Labs Research