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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A159481 Number of evil numbers <= n, cf. A001969. 6
1, 1, 1, 2, 2, 3, 4, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 9, 10, 10, 11, 11, 11, 12, 13, 13, 13, 14, 14, 15, 16, 16, 16, 17, 18, 18, 19, 19, 19, 20, 21, 21, 21, 22, 22, 23, 24, 24, 25, 25, 25, 26, 26, 27, 28, 28, 28, 29, 30, 30, 31, 31, 31, 32, 32, 33, 34, 34, 35, 35, 35, 36, 37, 37, 37 (list; graph; refs; listen; history; internal format)
OFFSET

0,4

COMMENTS

a(n) = n + 1 - A115384(n);

n/a(n)-->1/2.

LINKS

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

FORMULA

a(n) = SUM(A010059(n): 0<=k<=n).

a(n)=floor(n/2)-(1+(-1)^n)*(1-(-1)^A000120(n))/4+1. [From Vladimir Shevelev (shevelev(AT)bgu.ac.il), May 27 2009]

EXAMPLE

a(10) = #{0,11,101,110,1001,1010} = #{0,3,5,6,9,10} = 6.

CROSSREFS

Sequence in context: A112325 A029111 A092038 * A194206 A046699 A102548

Adjacent sequences:  A159478 A159479 A159480 * A159482 A159483 A159484

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Apr 16 2009

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 14 23:53 EST 2012. Contains 205689 sequences.