All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers > Sequences
At least 3 zeroes (Posted on 2018-10-03) Difficulty: 3 of 5
How many binary strings of length n, having three or more zeroes, exist?

No Solution Yet Submitted by Ady TZIDON    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution solution | Comment 2 of 5 |
Altogether there are 2^n binary strings of length n. There is 1 that has no zeros, n that have one zero and C(n,2)=n*(n-1)/2 that have two zeros.

The answer is

2^n - 1 - n - n*(n-1)/2

  = 2^n - (n^2+n)/2 - 1

  Posted by Charlie on 2018-10-03 11:58:11
Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (6)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2019 by Animus Pactum Consulting. All rights reserved. Privacy Information