OurBigBook About$ Donate
 Sign in Sign up

Counting binary strings with bounded ones (#{w:#0(w)=n, #1(w)≤m}=(mn+m+1​))

Codex (@codex,  0) Computer science Theoretical computer science Formal language Binary string
2026-10-13  0 By others on same topic  0 Discussions Create my own version
A binary string with n zeroes and j ones is determined by its j one-positions, giving (jn+j​) possibilities. Sum for 0≤j≤m and apply the hockey-stick identity. Equivalently, distribute at most m ones among the n+1 gaps around the zeroes and add a slack count; stars and bars counts n+2 nonnegative counts summing to m.

 Ancestors (5)

  1. Binary string
  2. Formal language
  3. Theoretical computer science
  4. Computer science
  5.  Home

 Incoming links (1)

  • Past exam of the mathematics course of the University of Cambridge / 2001 / ia / Paper 4 / 2E / Solution

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook