The question is a bit more complex than just a mathematical formula, and should probably be asked on the physics SE, or the space exploration SE, instead of worldbuilding.
The main problem is - how long do you want to keep your atmosphere? If you gave the moon an earth-like atmosphere right now, it wouldn't lose it in a couple of years. Your humans could live quite well there, for a while. And the earth, as well, is losing parts of its atmosphere - mainly hydrogen and helium - and at the same time, it's picking up cosmic debris, which consists at least partially of water and silicates, providing "new" oxygen and to a lesser extend hydrogen. Still, over all, the earth seems to lose weight every year.
But just like a stone you throw will eventually fall back to earth, an oxygen molecule trying to escape will "fall back" to the atmosphere as well, unless it reaches escape velocity. Once a cosmic ray hits your molecule, and accelerates it beyond that, it's going to be lost to earth.
Now, the escape velocity on earth is $11.2 km/s$, and on the moon, just $2.4 km/s$. Which means you need about $4.6$ times the speed, on earth. But the formula for energy is $E=\frac{1}{2}mv^2$, which means to achieve $4.6$ times the speed, you need $4.6^2=21.8$ times the energy. Or, to accelerate a given molecule to escape velocity on the moon, you need less than $\frac{1}{20}$ the energy, compared to earth.
And since the mass, in that formula, is linear, while the velocity is squared, you need to increase the mass much more if you want to balance the lower velocity "requirement" - you need to increase the weight of your atmoshphere molecule by a factor of 20 to make it need the same energy to leave the planet. Oxygen ($O_2$) has a molar mass of approx. 32, Argon has 40, Uraniumhexafluoride ($UF_6$) 244. But, to need the same amount of energy to accelerate to escape velocity, your "moon atmosphere" molecule needs to have a molar weight of $20*32 - 640$. (Note that Argon is a bad example here. Most gaseous forms of elements have molecules consisting of 2 atoms; noble gases do not. Which is why i multiplied the atomic weight by 2 for Oxygen, but not for Argon).
In other words, the energy needed to remove a $UF_6$ molecule from the moon is just a bit more than a third of the energy needed to remove a $O_2$ molecule from earth. So, a $UF_6$ atmosphere on the moon would probably last a lot shorter than a Oxygen atmosphere on earth; Nitrogen is slightly lighter, but not that much, so those 2 are comparable.
The situation is actually worse than "one third the energy - 3 times the loss". The cosmic particle that removes your molecule from the moon will just accelerate the molecule on the earth. You need a second particle hit the earth molecule in a short time frame after the first, from the generally same direction, to push it over the threshold. Another reason for the moon to lose its atmosphere faster.
And a problem with $UF_6$ - in many cases, your cosmic ray won't leave your molecule intact. Cosmic rays break up $O_2$ molecules to single atoms in the upper earth atmosphere all the time, where they form ozone. I wasn't able to find the bonding energy in $UF_6$, but i assume there's a good chance that in your moon atmosphere, it'll get separated into uranium and fluoride, witht the fluoride light enough to leave the planet, and metallic uranium remaining.
And i didn't even start to take the moon's missing magnetic field into account - while most particles of the solar wind get deflected from earth's atmosphere, this is not the case on the moon. More particles hitting your atmosphere - higher loss.
So, no, you won't be able to give the moon a stable long term atmosphere, no matter which gas you use.