This book is a revised and greatly expanded version of our book Elements of Number Theory published in 1972.As with the first book the primary audience we envisage consists of upper level undergraduate mathematics majors and graduate students.We have assumed some familiarity with the materialin a standard undergraduate course in abstract algebra.A large portion of Chapters 1-11 can be read even winull