I had to find the Taylor series for the function $f(x)=\cos(x)$ centred at $a=\frac{\pi}{4}$.
I found the pattern but the only part I'm missing is the sign. Since the series is centred at $\frac{\pi}{4}$, no value of $f^{\{n\}}(a)$ is equal to zero, and the pattern is $+, -, -, +, +, -, -, +$.
I have checked the answer that my teacher put in the document, but he just wrote
$$f(x) = \sum_{n=0}^{\infty}{\text{sign} \frac{\sqrt{2}}{2(n!)}}\left(x-\frac{\pi}{4}\right)^n$$ here $\text{sign} =+--++--++--+ \cdots$
which I find rather disappointing...
Is there a mathematical way to insert the sign pattern into the series, similarly to $(-1)^n$ for a normal alternating series?