Number Theory Basics
Divisibility, prime factorization, GCD/LCM, and modular arithmetic — the study of integers that underlies cryptography and abstract algebra.
Number theory studies the properties of integers — especially divisibility: when does one integer divide another evenly, with no remainder?
We say divides (written ) if there's an integer with . A prime number is an integer greater than 1 whose only positive divisors are 1 and itself (2, 3, 5, 7, 11, …). Every other integer greater than 1 is composite — it can be built by multiplying smaller primes together.
.
This is the unique way (up to order) to write 60 as a product of primes — a fact important enough to have a name: the Fundamental Theorem of Arithmetic.
Is 1 a prime number? Why does the standard definition exclude it?
Solution
No — 1 is excluded by definition. If 1 were allowed to be prime, prime factorizations would no longer be unique (e.g. ), breaking the Fundamental Theorem of Arithmetic. Excluding 1 keeps factorizations clean and unique.
Related concepts
Needs first