The mean surface density of companions in a stellar-dynamical context