I'm looking for a technique for creating alternating negatives and positives in a series. Specifically: when n=1, the answer is +, n=2 is +, n=3 is -, n=4 is -... etc.
I have every other part of the series written but I can't figure out that last piece... here's what I have now:
$$\sum_1^\infty 2^{n-1}(1^n+(-1)^n)/(3^{n-1}n!)*x^n$$
Technically, every other term is 0 so there doesn't really need to be two negatives in a row, it just has to sync up where I need them--I'm just guessing that I'd need it to work that way. Thanks for your assistance!
Here's a little trick which you might appreciate, or which you might find to obfuscate the matter. The triangular numbers $1,3,6,10,15,\dots$, given by the formula $T_n=n(n+1)/2$, have the property that $T_{4k+1}$ and $T_{4k+2}$ are odd and that $T_{4k+3}$ and $T_{4k+4}$ are even. So the expression $-(-1)^{T_n}=(-1)^{T_n+1} = (-1)^{(n^2+n+2)/2}$ alternates in sign in the way that you are looking for. In other words, if your original series is $\sum_{n=1}^\infty a_n$, where all $a_n$ are positive, then the modified alternating series you want is $$ \sum_{n=1}^\infty (-1)^{(n^2+n+2)/2}a_n. $$