I have the following reccurence:
$$f(n)=3f\left(\frac{n}{2}\right)+4, \quad f(1)=1 \text{ and } n=2^k.$$
The task is to find a formula, that depends only on $n$ and prove it by induction. I have calculated some values of this recursion,
$$f(2)=7, f(4)=25, f(8)=79,$$
but I did't find any relation between these numbers.
You start from $$f(2n)=3f(n)+4$$
To remove the constant, notice that a constant solution would verify $a=3a+4\iff a=-2$.
So we will set $f(n)=g(n)-2$ to reduce the equation to $$g(2n)=3g(n)$$
Now take $n=2^k$ then $g(2^k)=3g(2^{k-1})=3^2g(2^{k-2})=\cdots=3^kg(2^0)=3^kg(1)$
Since we have $g(1)=f(1)+2=3$ then $g(2^k)=3^{k+1}$.
Finally substituting $k=\log_2(n)$ you get: $$\large{f(n)=3^{\log_2(n)+1}-2}$$