I'm currently reading this article and trying hard to understand it.
According to the article, DFT is as follows:
$$ X_k=\sum_{n=0}^{N-1}x_ne^{-\frac{2\pi i}{N}nk} \\\text{where k is integer and its range is [0, N-1]} $$
And here is where my first curiosity arises. According to the sampling theorem, we can only see as many as $N/2$ frequencies if we use $N$ points to analyze a signal. If it is true, isn't a valid range for frequency (that is, $k$) is $[0, N/2 - 1]$, not $[0, N-1]$ as currently written in the article?
And my second question is that why the range of $k$ became half if we divide $x_n$ into an even part and an odd part. According to the article, $X_k$ can be rewritten as follows:
$$ X_k=\sum_{n=0}^{\frac{N}{2}-1}x_{2m}e^{-\frac{2\pi i}{N/2}mk}+e^{-\frac{2\pi i}{N}k}\cdot\sum_{n=0}^{\frac{N}{2}-1}x_{2m+1}e^{-\frac{2\pi i}{N/2}mk} \\\text{where k is integer and its range is [0, N/2-1]} $$
I suppose the reason the range of $k$ became half is because the range of $n$ became half as we divided $x_n$ into two parts. Therefore, since $n$--the number of points--became half, we end up being able to observe only half frequencies than before we divided $x_n$, due to the sampling theorem.
Thank you for reading my question and please correct me if I mistook something.