Number Theory Symbols


By Peter Faber
Last reviewed: November 24, 2026

Number theory uses symbols for number sets, divisibility, and congruence. For example, ℤ denotes the integers and ℚ denotes the rational numbers. The table shows how to read these symbols and others used in number theory. Explore the Math Symbols guide for the full collection. Tap or click a symbol to copy it.

Symbol Name Description
ℕNatural numbersℕ is the set used for counting. It starts at 0 or 1, depending on the convention. For example, 3 ∈ ℕ.
ℤIntegersℤ includes negative integers, zero, and positive integers. For example, −5 ∈ ℤ.
ℚRational numbersℚ includes numbers that can be written as a ratio of two integers with a nonzero denominator. For example, 3/4 ∈ ℚ.
ℝReal numbersℝ covers the entire number line, including irrational numbers such as −π and √2.
ℂComplex numbersIn ℂ, i² = −1. For example, 2 + 3i is a complex number.
|a|Absolute valueThe absolute value of a is its distance from zero. For example, |−7| = 7.
a ∣ bDividesa ∣ b means a divides b with no remainder.
a ∤ bDoes not dividea ∤ b means a does not divide b evenly.
≡ (mod)Congruence modulo n5 ≡ 2 (mod 3) means 5 and 2 give the same remainder when divided by 3.
gcd(a,b)Greatest common divisorgcd(12,18) = 6 because 6 is the largest integer that divides both 12 and 18.
lcm(a,b)Least common multiplelcm(a,b) gives the smallest positive common multiple of the two positive integers.
pPrime numberp often represents an arbitrary prime number in number theory.
φ(n)Euler’s totient functionφ(n) counts the positive integers up to n that are coprime to n.