couple of arithmetic functions