The Arithmetic of Bell and Stirling Numbers