Induction Proof

Theorem: For an integer a>1, we can divide a by two (and round down) $1+\lfloor \log(a)\rfloor$ times before we get down to zero.

Proof: For a>1, let T(a) be the number of times we can divide a by 2 (and round down) before we get down to zero.

We can express T recursively as: T(1) = 1, and for a>1, $T(a) = 1+T(\lfloor(a/2)\rfloor)$.

We want to show that $T(a)
= 1+ \lfloor \log(a) \rfloor$.


next up previous
Next: About Proofs Up: RECURSION Previous: A Recurrence Relation