An introduction to the theory of numbers - Niven, Ivan (John Wiley, 2004)