1
The field along the axis of a finite solenoid can be found by integrating the formula you found (for a current loop) from $z_1$ to $z_2$. The current in a "slice" of width $dz$ is just $n I \, dz$, so we have
$$
d B_z = \frac{\mu_0 n I}{2} \frac{R^2}{(z^2 + R^2)^{3/2}} dz \Rightarrow B_z = \frac...