This book is a concise introduction to number theory and some related algebra, with an emphasis on solving equations in integers. This is the only elementary number theory book that includes significant applications of ideal theory. It is clearly written, well illustrated, and supplied with carefully designed exercises, making it a pleasure to use as an undergraduate textbook or for independent study.