SearcharxivSearch

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\"obius function, Dirichlet products and Dirichlet and M\"obius 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

Perspectives on the unit distance problem

This is a survey on an old open problem in combinatorics called the unit distance problem, and the field of mathematics around it, called incidence geometry. What do we know about the problem? Why is it difficult? How does it connect with other parts of math?

math.HO

A Categorical Approach to Euclidean Ratios and Proportions

A categorial approach to the non-metric geometry in Books V and VI of Euclid's \textit{Elements} is presented. Specifically, we introduce a diagrammatic syntax that can be overlaid immediately on his diagrams, thus bridging intuitive presentation with fidelity to Euclid's arguments. This syntax makes complicated definitions like V.5, and indeed the arguments throughout books V and VI, including arguments about similar figures, intuitively clear. We show in an appendix that this syntax can be used to solve a puzzle regarding ancient mathematics. Finally, we offer evidence that this approach to Euclidean diagrams is rooted in the Aristotelian tradition itself, and that a similar syntax was utilized, in antiquity, for related questions of numeric and proportions. Thus the syntax is plausibly faithful to Euclid's own thought-world, and not an outside-imposition.

math.HO

Some Early Results by Tutte Regarding the Cycle Double Cover Conjecture in 1948

OpenAI recently announced a proof of the Cycle Double Cover (CDC) Conjecture. Most media reports have characterized it as a 50-year-old open problem. In reality, according to a 1987 letter from Tutte to Fleischner, the Cycle Double Cover Problem has been open for at least 80 years. Two early results regarding the CDC conjecture were established in one of Tutte's 1949 publications.

math.HO