On the arithmetic of density