(N/A) The number of moles $(n)$ of a gas is given by the formula:
$n = \frac{m}{M}$....(Eq.-$i$)
where $m$ is the mass of the gas in grams and $M$ is the molar mass.
According to the Ideal Gas Law,$PV = nRT$,which can be rearranged as:
$V = \frac{nRT}{P}$....(Eq.-$ii$)
Substituting $n = \frac{m}{M}$ into the equation:
$V = \frac{mRT}{MP}$....(Eq.-$iii$)
Rearranging to solve for density $(d = \frac{m}{V})$:
$\frac{m}{V} = \frac{MP}{RT}$
Since $d = \frac{m}{V}$,we get:
$d = \frac{MP}{RT}$
Thus,the density of a gas is directly proportional to its molar mass $(M)$ and pressure $(P)$,and inversely proportional to the temperature $(T)$.