Background: I was solving a programming problem and I got to a point where I'm trying to decide whether it is possible to solve a reccurence relation explicitly making the solution complexity better.
I have a set of two reccurence relations: \begin{align}a_{2n+1}&=a_n+2\tag{1}\\a_{2n}&=a_n+1\tag{2}\end{align} with $a_1=1$ and I'm trying to decide whether an explicit form exists.
Thanks.