The arithmetic of commerce