I'm trying to input the following recursive function into Maple but am not sure how? The recursive equations are as follows: \begin{align} h(2n)&=h(n),\\ h(4n+1)&= h(2n+1)+h(n), \\ h(4n+3)&=2\cdot h(2n+1)-h(n). \end{align}
Any help would be much appreciated!
You need initial conditions at $n=1$ and $n=3$. Below, I just set them to the symbols $h1$ and $h3$.