An introduction to the theory of numbers - Niven, Ivan (John Wiley & Sons, 1991)