I am trying to find a somewhat nice general formula for the following sequence.
$2,2,6,6,10,10,14,14,\dots$
I found one on wolfram alpha, however I am not sure how to derive it; I am also wondering if there is a more simple version.
Wolfram Alpha Solution: $(-1)^n(2(-1)^nn+(-1)^{n+1}-1)$
What about
$$4\left\lfloor\frac{n-1}2\right\rfloor+2\ ?$$