I'm a maple newbie and I would like to simplify this expression as much as i can:
$$g(q) = -8 \cdot 2^q + 8 \cdot 2^{\frac{3}{2}q} + 1$$
In such case i would like to write the expression like:
$$g(q) = -2^{q+3} + 2^{\frac{3}{2}q + 3} + 1 \;\;\;\; (1)$$
and then factorize $2^q$ in order to have:
$$g(q) = 2^{q+3}(2^{\frac{q}{2}} - 1) + 1 \;\;\;\; (2)$$
Is it possible to have at least the expression (1)? What about the (2)? assume the original one is given, $q$ is an integer positive variable, even (i don't think such detail is particularly useful).
I tried, factor, collect, simplify etc...
HINT:
Use the following factorization:
$$8=2^3$$