If you feel like the least popular person among your friends, then a handy piece of maths might improve your mood, says Peter Rowlett ...