David W. answered 08/21/15
Experienced Prof
Jon P. has given a simple solution that works for f(8) and other powers of 2. So, if you want a quick solution, read his answer. Shradha S. has given a more general solution [that could answer, for example, the question, "What is f(13)?"].