Programmed Arithmetic