It's something like a sequence I'm working with and a part of it has coefficients, which go $3$, $5$, $11$, $21$ and so on. I was wondering if it's possible to find a (closed) formula dependent on say $n$.
The only thing I can contribute is that $(-1)^n$ for the plus and minus ones doesn't seem to lead anywhere (since one has to include the value of the preceding addition/subtraction).
With closed formula I mean a formula where you can plug in your $n$ and obtain the corresponding coefficient immediately, without having to know any of the previous ones.
So observe that $u_{n+1}=2u_n-(-1)^{n}$ and $u_n=2u_{n-1}+(-1)^n$
Add these to obtain $u_{n+1}+u_n=2u_n+2u_{n-1}$ or $u_{n+1}-u_n-2u_{n-1}=0$
Unsurprisingly standard methods give $u_n=A2^n+B(-1)^n$ and if $u_1=3, u_2=5$ you can compute $A=\frac 43, B=-\frac 13$