I haven't thought about permutations and combinations in quite a while, and I came across an interesting problem that I am not sure how to approach.
Say you are given six $1$'s and six $0$'s. How many possible ways can you arrange those $1$'s and $0$'s into a string if the length of that string is from $1$ to $12$?
So, some valid arrangements are: ${{0}, {1}, {001}, {11000110}, {000000111111}}$
How would one approach solving this problem?
Thanks!
Rephrasing Phicar's approach into a direct combinatorial argument:
There are $\binom{14}{7}$ ways to create a string of length $14$ from seven $1$s and seven $0$s. For each string, consider the substring that appears immediately after the first $1$ that appears after the first $0$. For example, $101\mathbf{01010101010}$ or $00000001\mathbf{111111}$ or $11111101\mathbf{000000}$ (substring in bold). Any such substring consists of at most six $0$s and at most six $1$s. I claim this is [almost] a bijection.
The degenerate case and the empty string are thrown away, leaving $\binom{14}{7} - 2$.
I think Phicar's approach is the simplest, provided you know the hockey stick identity. The final answer looked too tidy not to have a direct combinatorial argument, but in the end my combinatorial argument ended up being the combinatorial proof of the hockey stick identity applied twice, which is more cumbersome to explain than I thought.