First, you should apply the finite population correction factor (FPCF) to the standard deviation of for a small mean or proportion if your sample is in excess of 5% of the parent population. The FPCF is given by:
${FPCF =\sqrt{\frac{(N-1)}{(N-n)}}}$
Reference: See Example 7.1 (click Answer).
Now, if all N2 students said no, then N2/N1 is the proportion of students who are not intending to take the course. Construct a two-sided confidence interval (per my provided source) including the FPCF center at the sample mean.
Now, the count below the mean may (or more likely not) actually attend with probability specified by the confidence interval conditional on other factors (in essence, closer to an upper limit). For example, other available courses meeting an elective for graduation, limit on class sizes in popular courses, and required credit load that a student must carry. These constraints could, in essence, force students to select from available courses, including the one in question, for which there was no prior intent.