Loading...
3+
3
Login

All About Numbers

Welcome to the ultimate guide to the mathematical universe. Numbers are the invisible scaffolding of our world, shaping everything from the rhythm of our music to the security of our digital lives. Whether you are counting your first apples, uncovering the ancient secrets of prime numbers, or exploring the infinite depths of the real number line, this page breaks down the foundational building blocks of mathematics in a clear, simple, and fascinating way. Dive in and discover how numbers connect, behave, and rule the cosmos!

1. Natural numbers:

Natural numbers are the numbers we use for counting and start from 1, moving upwards in whole steps. They do not include zero, negatives, or fractions. These numbers are often called "counting numbers" because we use them to count items, such as 1 apple, 2 oranges, etc. The set of natural numbers is often represented by the bold uppercase letter N = {1, 2, 3, 4, …..}

Natural numbers are the most fundamental of all mathematical concepts. Arising from basic human experiences like grouping objects, they are the building blocks of mathematics, serving both to measure quantity (cardinality) and establish sequence (ordinality). The name "natural" comes from the fact that these numbers inherently appear when we count physical items.

2. Whole numbers (Including Zero to Natural numbers):

Whole numbers are similar to natural numbers but include zero. They are the foundation of basic arithmetic and exclude fractions or decimals. Whole numbers make it easier to work with counting, quantities, and basic math operations.
Examples: {0, 1, 2, 3, 4, …}

Natural numbers are the most fundamental of all mathematical concepts. Arising from basic human experiences like grouping objects, they are the building blocks of mathematics, serving both to measure quantity (cardinality) and establish sequence (ordinality). The name "natural" comes from the fact that these numbers inherently appear when we count physical items.

Properties of Natural & Whole Numbers

Natural numbers follow several foundational rules and properties, especially under addition and multiplication:

  • Closure Property: If you add or multiply any two natural numbers, the result will always be a natural number. For example, 3 x 4 = 12 (a natural number).
  • Commutative Property: The order in which you add or multiply numbers doesn't matter. a + b = b + a, and a x b = b x a.
  • Associative Property: When adding or multiplying three or more numbers, grouping doesn't change the outcome. (a + b) + c = a + (b + c).

A defining trait of natural numbers is that the set is Infinite. There is no "largest" natural number because you can always add 1 to any number to get the next one.

3. Integers:

Integers are numbers which include all whole numbers and their negative counterparts. Integers do not have decimals or fractions. They represent complete, unbroken units.

Integers are often represented by the symbol Z. This comes from the German word Zahlen, which means "numbers." The set of integers looks like this:
Z = {...., -3, -2, -1, 0, 1, 2, 3, ….}

4. Even and Odd Numbers:

Even Numbers

Even numbers are divisible by 2, meaning they can be divided into two equal groups without any remainder. To determine if a large number is even, you only need to look at its final digit.

Numbers ending in 0, 2, 4, 6, 8 are always even.

Odd Numbers

Odd numbers are not divisible by 2, meaning they leave a remainder when divided by 2. To determine if a large number is odd, you only need to look at its final digit.

Numbers ending in 1, 3, 5, 7, 9 are always odd.

Arithmetic Rules

When you perform basic math operations, the results follow predictable patterns based on whether the inputs are even or odd.

Addition and Subtraction

Combining numbers of the same type always yields an even result. Mixing types yields an odd result.

  • Even ± Even = Even (e.g., 4 + 2 = 6)
  • Odd ± Odd = Even (e.g., 5 + 3 = 8)
  • Even ± Odd = Odd (e.g., 6 + 3 = 9)

Multiplication

An even number in a multiplication problem acts as a dominant trait, forcing the final product to be even.

  • Even × Even = Even (e.g., 4 × 2 = 8)
  • Even × Odd = Even (e.g., 4 × 3 = 12)
  • Odd × Odd = Odd (e.g., 5 × 3 = 15)

Is Zero Even or Odd?

Zero is an even number. It fulfills all mathematical criteria for parity:

  • It ends in a 0.
  • It is divisible by 2 without a remainder (0 ÷ 2 = 0).
  • It sits between two odd numbers (-1 and 1) on the number line.
  • It fits the arithmetic rules (e.g., Odd [3] + Odd [3] = Even [6], and Even [4] + Even [0] = Even [4]).

▸ Try It — Even or Odd Visualiser

Enter any whole number from 1 to 100

5. Prime and Composite Numbers:

All positive integers greater than 1 are split into two categories: prime numbers and composite numbers. This classification forms the bedrock of number theory, a major branch of mathematics.

Prime Numbers: The Mathematical Building Blocks

A prime number is a whole number greater than 1 that has exactly two factors: 1 and itself. They cannot be broken down into smaller whole-number factors.

  • The First Few Primes: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, …..
  • The Unique Number Two: The number 2 is the first prime number. It is also the only even prime number. Every other even number can be divided by 2, which makes them composite.
  • Infinitude: There is an infinite supply of prime numbers. This was famously proved by the ancient Greek mathematician Euclid around 300 BCE.

Composite Numbers: Built from Primes

A composite number is a positive integer greater than 1 that has more than two factors. This means it can be divided evenly by numbers other than 1 and itself.

  • The First Few Composites: 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, ….
  • The Smallest Composite: The number 4 is the smallest composite number (its factors are 1, 2, and 4).
  • Composition: Every composite number can be constructed by multiplying prime numbers together.

Why are 0 and 1 Neither Prime nor Composite?

  • The Number 0: Prime and composite definitions only apply to positive integers greater than 1. Zero has an infinite number of factors, so it does not fit either category.
  • The Number 1: The number 1 only has one factor (itself). Since primes must have exactly two factors and composites must have more than two, 1 is excluded from both groups.

The Fundamental Theorem of Arithmetic

The most important rule connecting these two types of numbers is the Fundamental Theorem of Arithmetic. It states that every composite number can be written as a product of prime numbers, and this prime product is completely unique for every number (ignoring the order of the factors).

Because of this rule, prime numbers are often called the "atoms" of the mathematical world. Just as chemical elements combine to form molecules, prime numbers multiply to create all composite numbers.

Examples of Prime Factorization:

  • 12 = 2 × 2 × 3 = 2² × 3
  • 45 = 3 × 3 × 5 = 3² × 5
  • 100 = 2 × 2 × 5 × 5 = 2² × 5²

How to Identify Prime Numbers

As numbers get larger, it becomes harder to tell if they are prime or composite. Mathematicians use a few primary methods to test them.

1. Trial Division

To test if a number n is prime, divide it by every prime number less than or equal to its square root (√n). If none of these primes divide evenly, the number is prime.

Example: Is 97 prime?
√97 is roughly 9.8. Test the primes up to 9.8: 2, 3, 5, and 7.
97 is not divisible by 2, 3, 5, or 7. Therefore, 97 is prime.

2. The Sieve of Eratosthenes

This ancient algorithm is an efficient way to find all prime numbers up to a specific limit (e.g., up to 100).

  • Write down all numbers from 2 to your limit.
  • Circle 2, then cross out every multiple of 2 (4, 6, 8, …).
  • Move to the next un-crossed number 3, circle it, and cross out all its multiples (6, 9, 12, …).
  • Repeat this process. The circled numbers left behind are your primes.
1 (neither)
÷ 2
÷ 3
÷ 5
÷ 7
Prime!
Click Step 1 or ▶ Auto Play to begin!

Real-World Application: Modern Cryptography

Prime numbers are not just a theoretical concept; they secure global digital infrastructure. Modern data encryption — like RSA encryption, which protects credit cards, bank transactions, and private emails — relies entirely on prime numbers. Computers can easily choose two massive prime numbers (hundreds of digits long) and multiply them together to get an even larger composite number. However, it is incredibly difficult and time-consuming for an outside computer to reverse that process and find the original prime factors. This mathematical asymmetry keeps encrypted data safe from hackers.

6. Rational, Irrational and Real Numbers:

Rational Numbers

A rational number is any number that can be expressed as the quotient or fraction p/q of two integers, where the numerator p is an integer and the denominator q is a non-zero integer. Rational numbers are often represented by the symbol Q (from the Italian word quoziente, meaning "quotient").

  • Integers are Rational: Any integer can be expressed as a fraction with a denominator of 1. For example, 5 = 5/1, -3 = -3/1, and 0 = 0/1. Therefore, the entire set of integers (ℤ) is a subset of rational numbers (ℚ).
  • Fractions: All common fractions are rational. For example, 1/2, 3/4, -7/8, and 22/7 are all rational numbers.
  • Terminating Decimals: Any decimal that has a finite number of digits is rational. For example, 0.75 = 75/100 = 3/4, and 0.2 = 2/10 = 1/5.
  • Repeating Decimals: Any decimal that eventually repeats a pattern of digits is rational. For example: 0.333... = 1/3, 0.142857142857... = 1/7, and 0.1666... = 1/6.

Converting Repeating Decimals to Fractions

This is a classic algebraic technique that proves the rationality of repeating decimals.

Example: Convert 0.333... into a fraction.
Step 1: Let x = 0.333...
Step 2: Multiply both sides by 10: 10x = 3.333...
Step 3: Subtract the original equation: 10x − x = 3.333... − 0.333... → 9x = 3
Step 4: Solve for x: x = 3/9 = 1/3

Density of Rational Numbers

The rational numbers have a very special property: they are dense. This means that between any two distinct rational numbers, no matter how close together they are, there is always another rational number. The simplest way to find one is to calculate the average (arithmetic mean) of the two numbers.

Irrational Numbers

An irrational number is a real number that cannot be expressed as a simple fraction p/q, where p and q are integers and q ≠ 0. The decimal representation of an irrational number never terminates and never settles into a permanent repeating pattern.

The Classic Example: √2

The most famous irrational number is the square root of 2, √2. Its decimal expansion begins as 1.4142135623730950488... and goes on forever without repetition.

Proof that √2 is irrational (by contradiction):

  • Assume √2 = p/q in its simplest form (no common factors).
  • Squaring both sides: 2 = p²/q², so p² = 2q².
  • This means p² is even, so p must be even. Write p = 2k.
  • Substituting: (2k)² = 2q² → 4k² = 2q² → 2k² = q².
  • This means q² is even, so q must also be even.
  • Contradiction: Both p and q are even, meaning they share a common factor of 2 — but we assumed the fraction was in its simplest form.
  • Conclusion: √2 is irrational.

Other Famous Irrational Numbers

  • π (Pi): Approximately 3.1415926535..., the ratio of a circle's circumference to its diameter. Note: 22/7 is only an approximation of π, not equal to it.
  • e (Euler's Number): Approximately 2.7182818284..., the base of natural logarithms. It appears in calculus and compound interest.
  • √3, √5, √7, etc.: The square root of any non-perfect square positive integer is irrational.

Real Numbers (ℝ)

The set of real numbers is the union of all rational and irrational numbers. It is the set of all numbers that can be found on the continuous, unbroken number line.

Formal Relationship: ℝ = ℚ ∪ ℚ' (where ℚ' is the set of irrational numbers).

Properties of Real Numbers

  • Closure: If you add, subtract, multiply, or divide (except by zero) any two real numbers, the result is always another real number.
  • Order: For any two distinct real numbers a and b, exactly one of the following is true: a < b, a = b, or a > b.
  • Completeness (Least Upper Bound Property): If you have a non-empty set of real numbers bounded above, there exists a real number that is the smallest upper bound (the supremum). This guarantees that the number line has no "holes." The rational numbers lack this property — for example, the set of rationals whose square is less than 2 has no rational least upper bound (its least upper bound is √2, which is irrational).

Key Points to Remember

  • Natural numbers start from 1 and go on forever — they are used for counting and do not include zero, negatives, or fractions.
  • Whole numbers are natural numbers plus zero: {0, 1, 2, 3, …}.
  • Integers include all whole numbers and their negative counterparts: {…, -3, -2, -1, 0, 1, 2, 3, …} — represented by the symbol Z.
  • Even numbers end in 0, 2, 4, 6, or 8 and are divisible by 2; odd numbers end in 1, 3, 5, 7, or 9. Zero is even.
  • Even ± Even = Even, Odd ± Odd = Even, and Even ± Odd = Odd. Any number multiplied by an even number gives an even result.
  • A prime number has exactly two factors (1 and itself); a composite number has more than two factors. The numbers 0 and 1 are neither prime nor composite.
  • 2 is the only even prime number. Every composite number can be broken down into a unique product of prime numbers (Fundamental Theorem of Arithmetic).
  • A rational number can be written as a fraction p/q (e.g., 1/2, 0.75, 0.333…). All terminating and repeating decimals are rational.
  • An irrational number cannot be written as a fraction — its decimal never terminates and never repeats (e.g., √2, π, e).
  • Real numbers (ℝ) are all rational and irrational numbers combined — every point on the number line is a real number.
Home About Resources Dashboard