Suppose we have a function $f:\mathbb{N}\rightarrow\mathbb{M},$ where $\mathbb{M}$ is any commutative monoid with respect to $+,$: it could be the natural numbers, the rational numbers, the real numbers, the complex numbers, a ring of matrices, a vector space, etc. The way sigma notation works is that we say $$\sum_{m=0}^{n+1}f(m)=f(n+1)+\sum_{m=0}^nf(m).$$ As others have commented, $\log_2(7)\notin\mathbb{N},$ so as is, the symbol $$\sum_{m=0}^{\log_2(7)}2^m$$ is meaningless. However, there is the possibility of extending the meaning of the symbol. One thing you will realize is that if $\mathbb{M}^\mathbb{N}=\{\text{functions}\, f:\mathbb{N}\rightarrow\mathbb{M}\},$ then there exists a linear operator $S:\mathbb{M}^\mathbb{N}\rightarrow\mathbb{M}^\mathbb{N}$ such that $S[f](0)=f(0),$ $S[f](n+1)=S[f](n)+f(n+1).$ Now we have a recursion for $S[f]$ that does not rely on using sigma notation. We can find the extension of $f$ to $\mathbb{R},$ $*f:\mathbb{R}\rightarrow\mathbb{M}.$ by finding a solution to the equations $g_{*f}(x)=f(0),$ $g_{*f}(x+1)=*f(x+1)+g_{*f}(x).$
The issue is that, depending on what $\mathbb{M}$ is, there may be multiple solutions to the equation. For example, this is the case if $\mathbb{M}=\mathbb{R}.$ We have that if $f(n)=2^n,$ then the equation $g(x+1)=2^{x+1}+g(x)$ has multiple solutions satisfying $g(0)=1.$ In fact, there are uncountably many solutions (specifically, $2^{2^{\aleph_0}}$). One solution is given by $g(x)=2^{x+1}-1,$ but another solution is given by $g(x)=\cos(2\pi{x})(2^{x+1}-1).$
To uniquely determine a solution, $g$ needs to be uniquely specified in $[0,1),$ and with the condition $g(0)=1,$ you have yet to determine what $g$ is in $(0,1).$ One very natural requirement that will be helpful is if you require $g$ to be real-analytic, and also convex. This uniquely determines $g$ on $(0,1),$ and thus, uniquely determines $g$ everywhere. With this, it turns out that $g(x)=2^{x+1}-1$ is the unique solution. What this implies now is that $g[\log_2(7)]=2^{\log_2(7)}-1=13.$
Now, you said that $g[\log_2(7)]=2^{\log_2(7)}-1=13$ is the wrong answer. I have no idea of how you went about determining this. There are infinitely many solutions, without the analytic convexity requirement, that give that answer, and infinitely many that do not. So I do not know which of the extensions you are searching for. But if you are going with the most natural extension of them all, then $g[\log_2(7)]=2^{\log_2(7)}-1=13$ is definitely the correct answer.