I should preface this question with the fact that I'm not familiar with the meaning/utility of the Fourier transform. Perhaps more accurately: I may have learned them, but have since forgotten; in any case, I'm just looking into some info about it to help a student out with its calculation, as I figured that would be easy enough. The Wikipedia page on the Discrete Fourier transform defines the transform as $$X_k=\sum_{n=0}^{N-1}x_n\exp\left(-\frac{2\pi i nk}{N}\right)$$ for a sequence $\{x_0,x_1,\ldots,x_{N-1}\}$, with $k\in\mathbb{Z}$.
Given the sequence $\{1,0,1,-1\}$, I have
$$\begin{align*}
X_k&=\sum_{n=0}^3x_n\exp\left(-\frac{2\pi ink}{4}\right)\\[1ex]
&=\underbrace{1}_{n=0}+\underbrace{\exp\left(-\pi ik\right)}_{n=2}-\underbrace{\exp\left(-\frac{3\pi ik}{2}\right)}_{n=3}\\[1ex]
&=1+\left(e^{-i\pi}\right)^k-\left(e^{-3i\pi/2}\right)^k\\[1ex]
&=1+(-1)^k-i^k
\end{align*}$$
I then have $X_k=\{1,-i,3,i\}$, where $k\in\{0,1,2,3\}$. However, checking with Mathematica, I should be getting $\dfrac{1}{2}\left\{1,i,3,-i\right\}$. As it turns out, there's a slight modification in the definition that accounts for the difference in our results. (Fourier is defined with $\frac{1}{\sqrt n}$ multiplied by a sum containing a positive exponent.)
Now, the factor of $\dfrac{1}{\sqrt n}$, I can wrap my mind around (sort of): in the article about the continuous transform, MathWorld mentions that the use of $\dfrac{1}{\sqrt{2\pi}}$ as opposed to $\dfrac{1}{2\pi}$ is a way of "restoring symmetry". But why the sign change in the exponent? The same disparity can be seen in the Mathematica documentation and Wikipedia article. Does using one sign over the other confer any special advantage?