The World of Numbers
Long before anyone wrote an equation, a herder in an ancient settlement placed one pebble in a pot for every cow that walked into the forest, and removed one pebble for every cow that walked back. That simple act of matching — one pebble, one cow — is where mathematics begins, and where this chapter begins too. The Lebombo bone and the Ishango bone, carved with tally marks tens of thousands of years ago, show that the natural numbers ℕ = {1, 2, 3, …} are humanity's oldest mathematical tool. But counting was never enough. Traders needed to record an empty stall, so India gave the world śhūnya — zero — and Brahmagupta turned it into a working number with explicit rules. Merchants needed to record debt, so the number line grew leftward into negative numbers, and the integers ℤ were born from Brahmagupta's language of dhana (fortune) and ṛiṇa (debt). Farmers needed to split a field into thirds, so fractions arrived, and combining them with the integers gave the rational numbers ℚ — every number expressible as p/q. Then geometry delivered a shock: the diagonal of a unit square is a length no fraction can ever equal exactly. That length, √2, forced open a new category, the irrational numbers, first proved impossible-to-fraction by Hippasus using proof by contradiction, a technique you will learn to wield yourself. Uniting the rational and irrational numbers fills every last gap on the line, producing the real numbers ℝ — the complete number system used to measure every length, temperature and quantity in the observable universe. This chapter retraces that entire five-thousand-year expedition: from tally bones to Brahmagupta's arithmetic, from fractions on a number line to the proof that √2 cannot be a fraction, and from terminating decimals to the strange, beautiful fact that 0.999… equals 1 exactly. By the end, you will know precisely which number lives in which set, how to prove it, and how to locate it exactly on the line.
- Natural numbers ℕ = {1, 2, 3, …} arose from one-to-one correspondence (tally marks); adding 0 and negative numbers gives the integers ℤ.
- Brahmagupta (628 CE) gave the first rigorous rules for zero and signed numbers: a + 0 = a, a × 0 = 0, and (−) × (−) = (+).
- A rational number is any number p/q with p, q integers and q ≠ 0, set ℚ; a/b = c/d exactly when ad = bc.
- ℚ is closed under addition, subtraction and multiplication, and under division whenever the divisor is not zero.
- Between any two distinct rationals there is always another one, for example their average (a + b)/2 — this property is density.
- √2 is irrational, proved by Hippasus by contradiction: assume p/q in lowest terms, derive that both p and q are even — a contradiction.
- Every rational's decimal expansion terminates or repeats in a cyclic block; every irrational's decimal is non-terminating and non-repeating.
- A fraction p/q in lowest terms terminates exactly when the prime factors of q are only 2s, only 5s, or both.
- Uniting ℚ with the irrational numbers fills every gap on the number line, giving the real numbers ℝ.
- Key idea: every real number is either rational (terminating or repeating decimal) or irrational (non-terminating, non-repeating decimal), and together they fill the number line with no gaps left over.
The real number line ℝ is built by uniting the rational numbers ℚ, which fill it densely but leave gaps, with the irrational numbers, which fill precisely those gaps.
What this chapter covers
This chapter tells the story of how the number system grew, layer by layer, to meet human need, and then teaches you to work precisely within each layer.
- The historical arc. Tally marks give natural numbers; Brahmagupta's work in India gives zero and negative numbers, producing the integers.
- Rational numbers ℚ. Their definition as p/q, the rules of equality and arithmetic, closure, and density on the number line.
- Locating numbers exactly. Placing any rational number, and even irrational lengths such as √2, at an exact point using ruler-and-compass construction.
- Irrational numbers. What they are, why √2 cannot be a fraction (proof by contradiction), and why π needs an infinite series.
- Decimal expansions. Why rational decimals terminate or repeat, how to predict which without long division, and how to reverse a repeating decimal back to p/q.
- The complete real number line ℝ, formed by uniting the rational and irrational numbers, and a glimpse of what lies beyond it.
The core ideas
From counting to zero: the birth of integers
The natural numbers ℕ = {1, 2, 3, 4, …} are the numbers you count with; they came from the physical act of one-to-one correspondence, matching a pebble to a cow, a notch to a day. For centuries no symbol existed for "nothing." Brahmagupta, in his 628 CE treatise the Brāhmasphuṭasiddhānta, defined zero explicitly as the result of subtracting a number from itself, and gave it working rules of arithmetic.
where: stands for any number. These three rules look obvious today only because Brahmagupta made zero a genuine number rather than a placeholder or a blank. Brahmagupta then asked what happens when a smaller number is subtracted from a larger one, and answered by grounding the question in commerce: he called positive numbers dhana (fortunes) and negative numbers ṛiṇa (debts). Combining the positive whole numbers, their negative counterparts, and zero gives the integers, written ℤ (from the German Zahlen, numbers). Brahmagupta's rules for combining fortunes and debts are exactly the sign rules used today:
where: are positive numbers, so and represent debts. The last rule — a debt times a debt is a fortune — is the one students find hardest to accept. Brahmagupta's own reasoning was economic: if someone removes four debts of ₹3 each from your account, you become ₹12 richer, so . Removing a negative action is a positive outcome.
Rational numbers: definition, equality and closure
A rational number is any number that can be written as , with integers and . The set is denoted ℚ (for quotient).
where: is the numerator and is the denominator; every natural number and every integer is also rational, since , so ℕ ⊂ ℤ ⊂ ℚ. A single rational number has infinitely many equivalent fraction names — — so we need a rule to check whether two of them represent the same value:
where: cross-multiplying and comparing and decides equality without a common denominator. By convention, "the rational number " takes and co-prime (no common factor other than 1) with , so each rational number has exactly one simplest representative. Brahmagupta also fixed the arithmetic of fractions, still taught exactly as he stated it:
where: the addition rule works for any denominators, because and are first rewritten over the common denominator . Under these rules ℚ is closed under addition, subtraction, multiplication, and division whenever the divisor is not zero: combining two rationals this way always produces another rational.
Locating rationals and the density of ℚ
To place on the number line, divide the unit interval between two consecutive integers into equal parts, then count of those parts from 0 (rightward if positive, leftward if negative). The figure below marks and this way.
The absolute value of a rational number , written , is its distance from 0 on the number line:
where: is always non-negative. More generally, the distance between any two rational numbers and on the line is . Rational numbers are dense: between any two distinct rationals there is always another one, and therefore infinitely many. The simplest proof of this uses their average.
where: is itself a ratio of integers whenever and are, so it is automatically rational, and it sits exactly halfway between and , strictly inside the interval.
Irrational numbers and the real number line
Not every length on the number line is a fraction. Consider a square of side 1 unit; by the Baudhāyana–Pythagoras theorem its diagonal satisfies
where: is the diagonal's length. Hippasus, of the Pythagorean school, proved around 400 BCE that cannot be written as any fraction — the first derivation below reconstructs his argument in full. Numbers like , and that cannot be expressed as a ratio of integers are called irrational numbers. Remarkably, an irrational length such as can still be constructed exactly with ruler and compass and marked precisely on the number line — geometry reaches a point that arithmetic-by-fractions cannot name. The circle constant is irrational too (proved by Johann Lambert in 1761); no single fraction equals it exactly — Āryabhaṭa's famous was only an asanna (approximation). Centuries later, Mādhava of Sangamagrama found an infinite sum of fractions that closes in on exactly:
where: each added term nudges the running total closer to 's true value; no finite number of terms ever reaches it exactly, which is precisely why needs an infinite series rather than a fraction. Uniting all rational numbers with all irrational numbers fills every remaining gap on the number line and produces the real numbers, written ℝ. Every measurable length, temperature or quantity corresponds to exactly one point on this line.
The goal is to show, with pure logic and no measurement, that no fraction p/q can ever equal exactly — a fact first established by Hippasus using proof by contradiction, where we deliberately assume the opposite of what we want to prove and show the assumption collapses. The subtlety students most often miss is why insisting p/q be in lowest terms (no common factor between p and q) is essential — it is exactly this assumption that eventually breaks.
Step 1. Assume, for the sake of contradiction, that is rational. Then it can be written as where and are integers, , and the fraction is in its simplest form — meaning and share no common factor other than 1, that is, they are co-prime.
Step 2. Square both sides of the equation to remove the square root: .
Step 3. Multiply both sides by to clear the denominator: .
Step 4. Examine what this says about . Since , is even. A basic fact about integers is that if a number's square is even, the number itself must be even (if were odd, would be odd too). So is even; write for some integer .
Step 5. Substitute back into the equation from Step 3: .
Step 6. Divide both sides by 2: .
Step 7. By exactly the same reasoning as Step 4, since equals 2 times the integer , is even, and therefore itself must be even.
Step 8. Reach the contradiction. Step 4 showed is even and Step 7 showed is even, so both share the common factor 2 — contradicting Step 1's assumption that are co-prime. Since every step of algebra was valid, the fault lies in the original assumption: cannot be written as a fraction, so it is irrational. The same eight steps, with 2 replaced by 3, 5, 7 or 10, prove , , and irrational too — the argument only needs "if divides then divides ," true whenever is prime.
Go deeper · Derivation B · 1 minMethod for converting a repeating decimal into the form p over q
The goal is a reliable algebraic procedure — not guesswork — for turning any repeating decimal, however long its repeating block, back into an exact fraction p/q. The core trick is to multiply the decimal by a power of 10 large enough to shift one full repeating block across the decimal point, then subtract the original equation from the shifted one so the infinitely repeating tail cancels completely, leaving an ordinary linear equation in one unknown.
Step 1. Set up the unknown. Let equal the repeating decimal. In a pure repeating decimal such as , the repeating block starts immediately after the decimal point. In a general repeating decimal such as , some non-repeating digits appear first, then the repeating block begins.
Step 2. Multiply to align blocks. If the decimal is pure repeating with repeating digits, multiply by once. If it is a general repeating decimal with non-repeating digits followed by an -digit repeating block, multiply by first to push the non-repeating part in front of the decimal point, then by a further to slide one complete repeating block across the point too. For : multiplying by gives , and multiplying that by again gives .
Step 3. Subtract to cancel the infinite tail. Both and share the same infinite string of 5s after the decimal point, so subtracting makes that tail vanish: , giving .
Step 4. Solve for : here . Check by confirming the division regenerates the original decimal. The same procedure, with two repeating digits, converts into a fraction: let , so and ; subtracting, , so .
Worked examples
Board level - Converting a general repeating decimal into p over q
Convert (that is, , where the digits 5 and 3 repeat) into the form .
Step 1. Let . The non-repeating part after the decimal point is "4" (1 digit), and the repeating block is "53" (2 digits).
Step 2. Multiply by to move the non-repeating digit before the decimal point: .
Step 3. Multiply that result by to slide one full repeating block across as well: .
Step 4. Subtract the Step 2 equation from the Step 3 equation, so the infinite tail cancels: . Hence , so . Checking, , so the fraction is already in lowest terms. .
Board level - Applying Brahmagupta's rules for integers
Using Brahmagupta's laws for fortunes and debts, evaluate: (i) , (ii) , (iii) , and (iv) .
Step 1. For (i), a debt times a fortune is a debt: .
Step 2. For (ii), a debt times a debt is a fortune: .
Step 3. For (iii), subtracting a debt equals adding the corresponding fortune (removing a debt of 14 makes you 14 richer): .
Step 4. For (iv), a debt divided by a fortune is a debt: . Answers: (i) , (ii) , (iii) , (iv) .
Higher-order thinking (HOTS / olympiad-style) - Proving the average always lies strictly between
Let and be two distinct rational numbers with . Prove rigorously, using algebra rather than a picture, that their average is a rational number lying strictly between and . Then explain how this single fact guarantees that infinitely many rational numbers exist between any two rationals, however close together they are.
Step 1. Show rationality first. Since and for integers with , their sum is a ratio of integers, and dividing that sum by the integer 2 keeps it one. So is rational.
Step 2. Prove . Start from the given . Add to both sides: , that is, . Divide both sides by the positive number 2 (which preserves the inequality direction): .
Step 3. Prove by a mirror argument. Starting again from , add to both sides: . Divide both sides by 2: . Combining Steps 2 and 3 gives , exactly as required.
Step 4. Extend to infinitely many. Let ; by Steps 1 to 3 it is a new rational strictly between and . Apply the same argument to the pair to get , strictly between and , hence between and too. Repeating endlessly, each new average sits strictly closer to than the last, so no value ever repeats — this generates an infinite list of distinct rationals between and . The average of two distinct rationals is a new rational strictly between them, and repeating the averaging process forever produces infinitely many such numbers. Timing note: in a board exam, budget about 5 minutes for Steps 1 to 3 (the core inequality proof) and only a brief sentence for Step 4 — full HOTS or olympiad questions may ask you to write out the extension argument in detail, which takes closer to 8 to 10 minutes to justify carefully.
Common traps
- Writing as a "long decimal fraction" and calling it exact — any finite decimal is a terminating (hence rational) approximation, never the irrational value itself.
- Believing by habit — Brahmagupta's rule is that a debt removed is a fortune gained, so two negatives multiply to a positive.
- Forgetting the condition in and treating as some special number rather than undefined.
- Assuming every non-terminating decimal is irrational — a non-terminating but repeating decimal such as is perfectly rational (); only non-terminating and non-repeating decimals are irrational.
- Predicting a terminating decimal by inspecting the numerator instead of the fully reduced denominator — terminates because , not because of anything about 7.
- Multiplying by the wrong power of 10 when converting a general repeating decimal — the non-repeating shift and the repeating-block shift are two separate multiplications, not one combined guess.
- Thinking is "just below" 1 — algebraically it is exactly equal to 1, as shows.
- Losing the co-prime condition when comparing fractions — and look "different" only until you notice both reduce to .
You should be able to…
- State the definitions of ℕ, ℤ, ℚ and irrational numbers, and place any given number into the smallest set that contains it.
- Apply Brahmagupta's rules for zero and for fortunes and debts, including why a debt times a debt is a fortune.
- Test whether two fractions are equal using , and simplify a fraction to its co-prime, lowest-terms form.
- Add, subtract, multiply and divide rational numbers, and explain why ℚ is closed under these operations (except division by zero).
- Locate any rational number exactly on the number line by subdividing the unit interval into equal parts.
- Compute the absolute value of a rational number and the distance between two rationals on the line.
- Prove that the average of two distinct rational numbers lies strictly between them, and use this to argue ℚ is dense.
- Reproduce, step by step, the proof by contradiction that is irrational, and adapt it to , or .
- Predict, from the prime factors of a reduced denominator alone, whether a decimal expansion terminates or repeats.
- Convert any terminating or repeating decimal (pure or general) back into the exact form using multiply-and-subtract.
Ask the tutor: if you are stuck on proving a number like √3 or √5 is irrational, or want another worked example of converting a tricky repeating decimal into p/q, ask the tutor to walk through it with you step by step.
Why can a negative number times a negative number be positive when both numbers themselves are less than zero?
Think of it the way Brahmagupta did, through debts rather than abstract signs. A negative number represents a debt you owe. Multiplying by a positive number repeats an action — three debts of ₹4 leaves you ₹12 poorer, so . Multiplying by a negative number means removing that action instead. If someone takes away four of your debts, each worth ₹3, you are suddenly ₹12 richer, even though nothing was "added." That is exactly why : removing debts is a gain, not a loss — not an arbitrary convention, but a direct consequence of treating money sensibly.
Is every square root irrational? What about numbers like the square root of 4?
No — only the square roots of numbers that are not perfect squares are irrational. is a whole number, and , are all rational because 4, 9 and 16 are perfect squares. The proof by contradiction used for specifically breaks down here: is already genuinely in the form with , so no contradiction ever arises. The irrationality proof only "bites" when the number under the root is not a perfect square.
How can 0.999... repeating forever actually equal exactly 1, and not just something extremely close to 1?
This surprises almost everyone the first time, but it is a genuine equality, not an approximation. Let . Multiplying both sides by 10 gives . Subtracting the first equation from the second cancels the infinite tail of 9s completely: , so , giving . There is no number strictly between and 1 — and since the rationals are dense, if two distinct numbers existed, a third rational would have to fit between them. No such number exists, which forces and 1 to be the very same point on the number line, just written differently.
When I do long division to convert a fraction to a decimal, how do I know in advance whether it will terminate or repeat, without doing the division?
Reduce the fraction to lowest terms first, so numerator and denominator share no common factor. Then look only at the prime factorisation of the denominator. If the only prime factors present are 2s, only 5s, or a combination of both, the decimal terminates — because you can always multiply numerator and denominator by whatever is needed to turn the denominator into a power of 10. If the denominator has any other prime factor, such as 3, 7, 11 or 13, the decimal is guaranteed to repeat forever, since no multiplication can ever turn that prime into a factor of 10. For example, terminates since , but repeats since 7 is not a factor of any power of 10.