Learning Number Theory


Welcome. This upcoming book, entitled Learning Number Theory: With Python, is slated to be released in the Summer of 2023. It will feature both paperback and hardcover editions that can be found on Amazon soon! The first draft is in progress and work continues towards turning it into a cutting-edge resource for learning number theory with Python.

Short Description

In this book, we cover the basics of elementary number theory. Topics begin with natural numbers, divisibility in the integers, and unique prime factorization. After that, we cover linear, quadratic, and polynomial congruence equations. While studying these topics we’ll also learn how to use python. In the second part, we introduce automating proofs in elementary number theory using python. We’ll do this by first studying Grobner Bases in polynomial rings and then making a connection between these rings and theorems involving integer divisibility.

Other Resources

Dive deep into this book with me by exploring not just the words, but also accompanying videos! My YouTube channel is an ideal companion to expand on its content - embedded right here for your convenience. Now you can read, watch and write like never before – all in one place.

Update History

Here is where I keep a log of the majors changes as I finish writing the book.

  1. First draft of preface published on 1/27/2023.
  2. First draft published on 1/18/2023.

Writing Philosophy

Writing effectively and with intention requires more than just a penchant for words; it necessitates an innate assurance that allows one to express unique ideas, reasoned perspectives, and engaging arguments. Establishing technical proficiency in syntax, grammar rules, and punctuation is also essential – standards I practice diligently. To learn the specifics of my writing practices visit https://directknowledge.com/writing


I cannot adequately express my gratitude for all of those who dedicated their efforts to bring this book into its finished state. Their generous aid is greatly admired, and I extend them many thanks.

David A. Smith \ Fort Worth, Texas