First I would start by writing out the sequence: $$f(0)=1, f(1) = 2, f(2) = 3, f(3) = 6, f(4) = 7, f(5) = 14, f(6) = 15, ...$$
Now notice that $f(0) = 2 - 1 = 2^{0+1} - 1$, $f(2) = 4-1 = 2^{1+1} - 1$, $f(4) = 8-1 = 2^{2+1} - 1$, and $f(6) = 16 - 1 = 2^{3+1}-1$. So we conjecture that $$f(2n) = 2^{n+1} - 1$$
Now it is also clear that $$f(2n-1) = 2f(2n-2) = 2^{n+1}-2$$
From here we just need to verify the conjectures with induction. We see that it certainly holds for $f(k)$ up to $k=6$. Now suppose it holds for $f(k)$ where $k=2n$.
Consider $$f(k+1) = f(2n+1) = 2f(2n) = 2(2^{n+1} - 1) = 2^{n+2} - 2$$ so we have verified this for the odd case.
Now if the conjecture holds for $f(k)$ where $k=2n+1$ then we have $$f(k+1) = f(2n+2) = f(2n+1) + 1 = 2^{n+2}-2+1 = 2^{n+2} - 1$$
Thus we see by induction that $$f(2n) = 2^{n+1}-1$$ and $$f(2n+1) = 2^{n+2} - 2$$ as we conjectured.
Now if you want this in one equation, we write $$f(k) = 2^{[(k+1)/2]+1} - 1.5 + (0.5)(-1)^{k}$$
I gather that a good way of approaching such questions seems to be enumerating the sequence first and making observations. Are there any specific approaches that you use when tackling similar problems?
– Winster Jun 09 '14 at 17:36