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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A039004 Numbers n such that representation in base 4 has same number of 1's and 2's. 11
0, 3, 6, 9, 12, 15, 18, 24, 27, 30, 33, 36, 39, 45, 48, 51, 54, 57, 60, 63, 66, 72, 75, 78, 90, 96, 99, 102, 105, 108, 111, 114, 120, 123, 126, 129, 132, 135, 141, 144, 147, 150, 153, 156, 159, 165, 177, 180, 183, 189, 192, 195, 198, 201, 204, 207, 210, 216, 219 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

Numbers such that sum (-1)^k*b(k) = 0 where b(k)=k-th binary digit of n. - Benoit Cloitre (benoit7848c(AT)orange.fr), Nov 18 2003

Conjecture: a(C(2n,n)-1) = 4^n - 1. (A000984 is C(2n,n). - Gerald McGarvey (gerald.mcgarvey(AT)comcast.net), Nov 18 2007

FORMULA

Conjecture : there is a constant c around 5 such that a(n) is asymptotic to c*n. - Benoit Cloitre, Nov 24, 2002

PROG

(PARI) for(n=0, 219, if(sum(i=1, length(binary(n)), (-1)^i*component(binary(n), i))==0, print1(n, ", ")))

See link in A139351 for Fortran program.

CROSSREFS

Cf. A139370-A139373, A139351-A139355.

Sequence in context: A028251 A194226 A193803 * A070021 A083354 A156242

Adjacent sequences:  A039001 A039002 A039003 * A039005 A039006 A039007

KEYWORD

nonn,base,easy

AUTHOR

Olivier Gerard (olivier.gerard(AT)gmail.com)

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 15 08:20 EST 2012. Contains 205729 sequences.