FOUNDATIONS · MATH
Induction and recurrences — prove it works, solve the cost.
Base + step = all n (dominoes).
Unroll T(n) = T(n/2) + 1 → O(log n).