An Introduction to the theory of numbers - Ivan Niven and Herbert S. Zuckerman (John Wiley and Sons)