Let 1,4,⋯ and 9,16,⋯ 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?
<spanclass=′latex−bold′>(A)</span>3722<spanclass=′latex−bold′>(B)</span>3732<spanclass=′latex−bold′>(C)</span>3914<spanclass=′latex−bold′>(D)</span>3924<spanclass=′latex−bold′>(E)</span>4007