How does atomic mass affect density?
there is no specific mathematical relation, but the elements who have biggest atomic mass (with the exception of the alkali metals and others who have also large volume) , have also high density (mass/volume).
Also in organic chemical if you insert an atom of a halogen element (especially bromine and iodine) the density of a hydrocarbon molecule increases very much.
For example, gold (
However, osmium (