The equation which relates the pressure (p), volume (V) and temperature of the given state of an ideal gas is known as ideal gas equation
$ pV=kT $
$ 9\left( \frac{m}{\rho } \right)=kT $
$ \left[ \because V=\frac{m}{\rho } \right] $
Density of gas, $ \rho =\frac{pm}{kT} $