Let $1$, $4$, $\ldots$ and $9$, $16$, $\ldots$ be two arithmetic progressions. The set $S$ is the union of the first $2004$ terms of each sequence. How many distinct numbers are in $S$? $\textbf{(A)}\ 3722 \qquad \textbf{(B)}\ 3732 \qquad \textbf{(C)}\ 3914 \qquad \textbf{(D)}\ 3924 \qquad \textbf{(E)}\ 4007$
Let $1,5,9,\dots$ and $3,10,17,\dots$ be two arithmetic progressions. The set $S$ is the union of the first $1000$ terms of each sequence. How many distinct numbers are in $S$?