The Arithmetic of Functions