Here's an example sequence:
$$a_n=\{1, 2, 4, 8, 10, 20, 22, 44, 46, \ldots\}$$
The sequence is constructed by an alternating pattern of doubling and adding $2$. Recursively, this can be written as
$$\begin{cases}a_0=1\\[1ex]a_{2n-1}=2a_{2n-2}&\text{for }n\ge1\\[1ex]a_{2n}=a_{2n-1}+2&\text{for }n\ge1\end{cases}$$
One method I've considered is to split up $a_n$ into two subsequences $b_n$ and $c_n$ to handle the even- and odd-indexed terms individually. Recursively,
$$\begin{cases}b_0=1\\[1ex]b_n=2b_{n-1}+2&\text{for }n\ge1\end{cases}\quad\quad\text{and}\quad\quad\begin{cases}c_0=2\\[1ex]c_n=2(c_{n-1}+2)&\text{for }n\ge1\end{cases}$$
which have solutions $b_n=3\times2^n-2$ and $c_n=3\times2^{n+1}-4$. Therefore one closed form for $a_n$ might be written as $$a_n=\begin{cases}b_k&\text{for }n=2k,\,k\in\mathbb{N}\cup\{0\}\\[1ex]c_k&\text{for }n=2k-1,\,k\in\mathbb{N}\end{cases}$$ Is there some way I can consolidate these two solutions to get a closed form for $a_n$ that's independent of $b_n$ and $c_n$?
More generally, is it possible to find a solution to a recurrence relation for a sequence that's constructed by a periodic pattern without splitting into cases? i.e. do $\mathrm X_1$, then do $\mathrm X_2$, ..., then do $\mathrm X_i$; repeat. To make things easy, suppose $\mathrm X_i$ is a pattern that, in order to get the next term in the sequence, either adds a real number to the preceding term or scales the preceding term by a real number.