3
3 (three) is the smallest odd prime number and the second prime overall, and it is the only prime that is one more than another prime, namely 2.1 Because 2 and 3 are the only consecutive primes, 3 anchors several distinctive facts in elementary number theory: it is the smaller member of the first two twin-prime pairs, (3, 5) and (5, 7), and the only value of n for which the triple (n, n + 2, n + 4) consists entirely of primes.2
| Key fact | Detail |
|---|---|
| Primality | Smallest odd prime; the only prime one more than another prime (2)1 |
| Consecutive primes | 2 and 3 are the only consecutive primes; every other pair of primes differs by at least 22 |
| Divisibility test | An integer is divisible by 3 if and only if its digit sum is3 |
| Sequence membership | Appears among the odd numbers, primes, Fibonacci numbers, Lucas numbers, and triangular numbers1 |
| Partitions | Exactly three partitions of 3: {1, 1, 1}, {1, 2}, and {3}1 |
| Approximate values | ; 1 |
| Representations | 11 in binary, 10 in ternary, 111 in negabinary1 |
Arithmetic character
As a prime, 3 has exactly two positive divisors, 1 and itself, and it is the building block of the smallest odd numbers in the prime sequence 2, 3, 5, 7, 11, 13, ...1 • 4 Its primality interacts with parity in a way no other prime shares: since 2 and 3 are consecutive, every prime after 3 differs from every other prime by at least 2, and the twin-prime pairs (3, 5) and (5, 7) are the only overlapping twin pairs.2 The same divisibility-by-3 obstruction explains why the prime triple (n, n + 2, n + 4) exists only for n = 3, giving (3, 5, 7): among any three numbers spaced by 2, one is divisible by 3.2
The number 3 also appears in the classical sequences: it is the third odd number, the second prime, the fourth Fibonacci number, the third Lucas number, and the second triangular number.1 In Pascal's triangle it occurs twice, and in Lozanić's triangle four times.1
The digit-sum divisibility test
The best-known practical fact about 3 is its divisibility test: an integer is divisible by 3 if and only if the sum of its digits is divisible by 3.3 The reason is that 10 is congruent to 1 modulo 3, so each power of 10 in a decimal expansion contributes only its digit:
The same argument works for 9, since 10 ≡ 1 (mod 9) as well, and the test can be iterated when the digit sum itself is large; for 8,675,038,695 the digit sum is 57, whose digit sum is 12, so the original number is divisible by 3.3 The rule is a special case of modular arithmetic, the system of congruences published by Carl Friedrich Gauss in 1801, in which two integers are congruent modulo n when they leave the same remainder on division by n.5
Powers, roots, and logarithms
The powers of 3 begin 3, 9, 27, 81, 243, 729, 2187, 6561, 19683, 59049, forming the sequence of powers of three.1 Its square root is , and the base-2 logarithm measures how many bits are needed to distinguish three states, a quantity that appears in information theory and computer science.1
Behavior in other number systems
In ordinary base-10 notation 3 is a single digit, but its representation varies with the base: it is 11 in binary, 10 in ternary (the base it generates), and 111 in negabinary, since .1
In algebraic number theory, 3 is prime in the ordinary integers but composite in some quadratic integer rings. In it factors as , and in the Eisenstein integers , where is a complex cube root of unity, it factors as .1 The ring has six units, more than any other imaginary quadratic integer ring, a distinction that traces directly back to the role of 3 in defining .1
Primality testing modulo 3 is not foolproof: composite numbers called Fermat pseudoprimes to base 3, beginning 91, 121, 286, 671, and 703, satisfy the base-3 Fermat condition without being prime.1
Sums of three triangular numbers
The triangular numbers 1, 3, 6, 10, 15, ... are the sums 1 + 2 + ... + n, and 3 is the second of them.1 • 6 Fermat's polygonal number theorem states that every positive integer is a sum of at most three triangular numbers; Carl Friedrich Gauss proved this triangular case and recorded it in his diary on July 10, 1796 with the notation "ΕΥΡΗΚΑ! num = Δ + Δ + Δ".6 The number 3 itself has two such representations, {3, 0, 0} and {1, 1, 1}.7
Historical and cultural notes
The digit 3 reached its modern European form through the Hindu-Arabic numerals, whose transmission from India through the Arabic world and into Europe took centuries; the numerals appear in the Codex Vigilanus, copied by a monk in Spain in 976, and were popularized in Europe by Fibonacci's Liber abaci of 1202.8 In the eastern Arabic empire the numerals were known as Gubar ("dust") numerals, from the dust board used for calculation.8
The number three carries heavy symbolic weight across traditions. In ancient Egyptian temple theology, divine triads such as Osiris, Isis, and Horus organized local religion, and the triangle represented harmony and balance in Egyptian mythology.9 • 10 In Christian doctrine, the Trinity defines one God existing in three co-equal, coeternal, and consubstantial divine persons: God the Father, God the Son, and God the Holy Spirit.10
References
- 3, OeisWiki
- The Prime Numbers (chapter from an AMS preliminary textbook, L. Alloza et al.)
- Divisibility tests, MST124 Book 3 Unit 17 extract, The Open University
- Prime Number, Wolfram MathWorld
- Modular Arithmetic, Discrete Mathematics I, Martin J. Dürst, Aoyama Gakuin University
- Triangular Number, Wolfram MathWorld
- Triangular numbers, OeisWiki
- The Arabic numeral system, MacTutor History of Mathematics
- The Number 3 in Sacred Traditions, Codex Numerica
- Numeral 3 in symbolism and religion, Zeitschrift für Interkulturelle Erziehungswissenschaft (2023)
Topic: Encyclopedia › Physical world and mathematics › Mathematics and statistics › Numbers and algebra › Arithmetic and number systems › Integer sequences and partitions › Special and named integers › Named individual integers
Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026
Your notes
© 2026 EdgeChat AI, a subsidiary of Biostate AI. Free to use with credit under the Edgepedia Community License. Developers: read Edgepedia by API or MCP. Embed a reference card.