Search arXivSearch

arXiv · 2606.20783

Lectures notes on number theory for computer science

Abstract

This brief, in the form of an e-book, is a collection of notes that cover elementary and medium level number theory with a target audience of primarily computer science students. It can be used in the number theory portion of a discrete mathematics course, or a course on the mathematical foundations of computer science, or as background material for a cryptography course. Thematically it is split into five areas that map to chapters. The first chapter is introductory and covers topics including divisibility, prime numbers, and modular arithmetic including modular linear equations. The second chapter covers additional topics such as Euler's totient function, units and inverses, the Chinese remainder theorem, and Fermat's and Euler's theorems. The following chapter covers primitive roots, quadratic residues, the Jacobi and Legendre symbols, Gauss's lemma and Eisenstein's theorem, and briefly discusses applications of number theory to cryptography. The fourth chapter is focused on traditional primality testing methods covering Miller's algorithms, Rabin's conversion of a Miller algorithm into a probabilistic primality test algorithm, Solovay-Strassen's algorithm and several other peripheral results including Carmichael numbers and the equivalence of Miller's two algorithms. Finally the last brief chapter can be viewed as an introduction to more advanced elements of number theory and its coverage includes multiplicative functions, the Möbius function, Dirichlet products and Dirichlet and Möbius inversions. Different parts of this e-book are for freshman to senior undergraduate students in computing and in particular computer science. Graduate students with limited exposure to number theory can use it to acquire a background suitable for typical cryptography courses at the master's level.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Alexandros V. Gerbessiotis. 2026-06-18. Lectures notes on number theory for computer science. https://arxiv.org/abs/2606.20783

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Come for the vibe, stay for the math

This article describes our experiences in mathematical outreach over the past decade. We talk about specific activities, but also general principles that we've learned along the way.

math.HO

From foundations to applications: reverse mathematics and philosophy

Reverse mathematics is a branch of mathematical logic dedicated to determining the minimal set existence principles necessary and sufficient to derive ordinary mathematical theorems about concrete structures like the real line. Since the mid-1970s, reverse mathematics has developed a systematic classification of the strength of theorems in areas of mathematics ranging from real and complex analysis to infinitary combinatorics. This essay will place reverse mathematics in its historical and philosophical context, and reveal its relevance to central issues in the philosophy of mathematics, from the foundational programmes of Hilbert and Brouwer to contemporary debates about realism, determinacy, and applicability of mathematics. In doing so, it will discuss the role of computability theory in measuring the strength of set existence principles, as well as related questions about idealisation when these principles are applied in the physical sciences and in philosophy.

math.HO