To solve this concept we will apply the mathematical equations concerning the calculation of Volume in a sphere and the relation of density as a function of mass and volume, that is
The volume of the neutron star is
[tex]V = \frac{4\pi }{3}R^3[/tex]
[tex]V = \frac{4 \pi}{3} (\frac{17*10^{5}cm}{2})^3[/tex]
[tex]V = 25.72^{17}cm^3[/tex]
Now the density of the neutron star is
[tex]\rho = \frac{M}{V}[/tex]
[tex]\rho = \frac{1.989*10^{30}kg(\frac{10^3g}{1kg})}{25.72*10^{17}cm^3}[/tex]
[tex]\rho = 7.733*10^{14}g/cm^3[/tex]
Therefore the density of the neutron star is [tex]\rho = 7.733*10^{14}g/cm^3[/tex]