Sketch the graph of the function $[\frac{x}{N}]$, for $0<x<2N$, where the notation $[y]$ means the integer part of $y$. (Thus $[2.9] = 2$, $[4]=4$.)
(i) Prove that
$$
\sum_{k=1}^{2N} (-1)^{[\frac{k}{N}]} k = 2N-N^2.
$$
(ii) Let
$$
S_N = \sum_{k=1}^{2N} (-1)^{[\frac{k}{N}]} 2^{-k}.
$$
Find $S_N$ in terms of $N$ and determine the limit of $S_N$ as $N\to\infty$.