An introduction to the theory of numbers - Niven, Ivan (new york JW&S, 1991)