Stuck with a simple induction problem

1. Dec 6, 2011

leden

Suppose you are building a sequence consisting of 0 and 1 in such a way that:
- no consecutive 0s are allowed
Examples of such sequences are: 1, 1010, 110111101 etc. Empty sequence is also allowed.

I want to prove by induction that the number of 0s in such a sequence is never greater than the number of 1s.

(Btw, I managed to prove that the length of such a sequence is at least the number of 1s inside, but I am not sure that the proof for this is any similar to this one.)

I tried almost every form of induction I could think of (except nested induction), but simply couldn't prove it. Please help.

2. Dec 7, 2011

Number Nine

Try strong induction and break the string of length k into fragments.

3. Dec 7, 2011

willem2

If a string with more 0's then 1's is possible, there has to be a smallest string.
It must have a lenght at least 3, because 1, 10 and 11 are the only possible smaller strings, and they don't have more 0's then ones

This string can't have the form x1, because x would also have more 0s then 1s, so it must end in a 0.

The string can't end with 2 zero's because no consecutive 0's are allowed, so the string must have the form x10. If x10 has more zero's then ones, then so has x, wich isn't possible, because x was the smallest string with more zeros then ones.