Between two neighboring integers there is no other integer, but between any two different rational numbers there is always another. This lesson proves it with the average of the two numbers, shows that infinitely many rational numbers lie between any two and that no rational number has a next one, finds decimals between two decimals, and explains why the rational numbers still leave gaps in the line.
The average lies between
This lesson relies on the lessons Rational numbers on the number line (order through the difference), Arithmetic with rational numbers (closure) and Properties of rational arithmetic (the laws of order), and on Comparing and ordering decimals.
The integers −4 and −3 are neighbors: no integer lies between them, because their marks on the number line are one unit step apart and every integer has its point at a mark (Integers on the number line). The lesson Ordering fractions showed that fractions are different: between any two fractions there is another, for example their mediant or the halfway fraction. Here the same is proved for all rational numbers, negative ones included, with one tool.
The average of two rational numbers x and y is x + y2, that is, (x + y) ÷ 2. It is also called their arithmetic mean.[1]
Let x and y be rational numbers with x < y, and let m = x + y2. Then m is a rational number, x < m < y, and m − x = y − m = y − x2.
m is rational because sums and quotients of rational numbers are rational (lesson 1.3, the closure Theorem and its Exercise 6).
Write m = (x + y) × 12 = x × 12 + y × 12, by the distributive law, and x = x × 1 = x × 12 + x × 12. Then m − x = y × 12 − x × 12 = (y − x) × 12, by the laws of lesson 1.4. In the same way y − m = (y − x) × 12.
Since x < y, y − x > 0 (lesson 1.2), and a product of two positive numbers is positive, so m − x > 0 and y − m > 0. By the Theorem on order through the difference, x < m and m < y.
Rudin states the fact in one line: if r < s, then r < (r + s)/2 < s.[3] The theorem also locates m exactly: it is the midpoint, half the distance y − x from each end. The halfway fraction of the lesson Ordering fractions is this average, written with the sum formula: 12 × a × d + b × cb × d = a × d + b × c2 × b × d.
A collection of numbers is dense if between any two different numbers of the collection there is always a third number of the collection.[4]
By the Theorem, ℚ is dense: it is always possible to find another rational number between any two distinct rational numbers.[5]
Find a rational number between and .
- First the order: over 35, = −2135 and = −2035, so < .
- The sum is −21 − 2035 = −4135, and the average is −4135 × 12 = −4170.
- Check over 70: −4270 < −4170 < −4070.
Answer: . Over 35 the two numbers have the consecutive numerators −21 and −20, and still a number lies between them: over 70 there is room.
Find the average of −0.15 and 14.
- −0.15 + 14 = −320 + 520 = 220 = 110.
- Half of it: 110 × 12 = 120 = 0.05.
Answer: 0.05. Check: −0.15 < 0.05 < 0.25, and each end is 0.2 away, half of 0.25 − (−0.15) = 0.4.
Lesson 1.3 showed that 0.333 and 13 differ by only 13000. Find a number between them.
- 0.333 = 3331000 = 9993000 and 13 = 10003000.
- The average: 999 + 10003000 × 12 = 19996000.
Answer: 19996000. Over 6,000 the three numbers have the numerators 1,998, 1,999 and 2,000. However close two different rational numbers are, the average splits the gap between them into two equal halves.
What is the average of 26 and 13?
- 26 = 13: they are one number, so the average is (13 + 13) ÷ 2 = 13.
Answer: 13, the number itself. Nothing lies strictly between a number and itself; the Theorem needs x < y.
Someone computes the average of and 13 as (56 + 13) ÷ 2 = 712.
- 712 is greater than 13 = 412, so it does not lie between: a sign was lost.
- Correctly: ( + 26) ÷ 2 = ÷ 2 = .
- Check over 12: −1012 < −312 < 412.
Answer: . An average that is not between the two numbers is always wrong.
Infinitely many, and no next number
One number between x and y is the start. Taking the average again and again, of x and the last number found, gives more and more numbers, as in the lesson Ordering fractions. An explicit list shows at once that there are infinitely many.
Let x < y be rational numbers and d = y − x. For every counting number n ≥ 2, the rational number x + dn lies strictly between x and y, and different values of n give different numbers. So infinitely many rational numbers lie between x and y.
d > 0, since x < y. For a counting number n ≥ 2, 0 < 1n < 1 (cross products: 1 × 1 < n × 1). Multiply these by the positive number d (lesson 1.4, law of order (2)): 0 < dn < d. Add x (law (1)): x < x + dn < x + d = y.
If 2 ≤ m < n, then 1n < 1m (cross products: 1 × m < n × 1), so dn < dm and x + dn < x + dm: the numbers for different n are different. There is one for every counting number from 2 on, so no list that stops can contain them all.
No rational number has a next rational number, and none has a previous one. In particular, there is no least positive rational number.
Suppose y were the next rational number after x: x < y, with no rational number in between. The average of x and y is a rational number strictly between them, which is impossible. The same argument rules out a previous number. If x were the least positive rational number, the average of 0 and x, x2, would be positive and less than x.
The integers behave in the opposite way.
For every integer n, no integer lies strictly between n and n + 1. So n + 1 is the next integer after n.
Let k be an integer with n < k. Then k − n is a positive integer, a counting number, so k − n ≥ 1 and k ≥ n + 1 (Comparing and ordering integers). So no integer k has n < k < n + 1.
For the positive integers, the number n + 1 is called the successor of n.[9] The rational numbers have no successors: that is the content of the Corollary.
- x = , y = , and d = − () = −3 + 412 = 112.
- n = 2: + 124 = −8 + 124 = . n = 3: + 136 = . n = 4: + 148 = = . n = 5: . n = 6: .
- Check one: = −0.3125, and −0.333… < −0.3125 < −0.25.
Answer: , , , , , and as many more as wanted.
Someone proposes 11,000,000 as the least positive rational number.
- The average of 0 and 11,000,000 is 12,000,000, which is positive.
- 12,000,000 < 11,000,000, since 1 × 1,000,000 < 2,000,000 × 1.
Answer: the proposal fails, and so does every other, by the Corollary.
- −0.9 = −0.90 and −0.89 are neighbors among the decimals with two places: no decimal with two places lies between them.
- Their average is (−0.90 + (−0.89)) ÷ 2 = −1.79 ÷ 2 = −0.895, and −0.900 < −0.895 < −0.890.
Answer: −0.89 is not the next number after −0.9; no number is, by the Corollary.
Decimals between decimals
The average of two decimals may be found without fractions, and for decimals there is a second, even quicker way: write more places. Writing zeros at the end of a decimal does not change its value.[10]
Let a < b be terminating decimals. Write both with the same number k of places, a = AD and b = BD, where D is 1 followed by k zeros and A < B are integers. Then:
- if B − A ≥ 2, the decimal A + 1D lies strictly between a and b;
- in any case, with one more place, the nine decimals A × 10 + 1D × 10, …, A × 10 + 9D × 10 lie strictly between a and b;
- the average of a and b is again a terminating decimal.
A decimal with k places is a quotient with denominator D (Decimals 1.2), and over a common positive denominator the order is the order of the numerators (lesson 1.2). So a < b gives A < B. (1) A < A + 1 < B when B ≥ A + 2. (2) Over D × 10, a and b have the numerators A × 10 and B × 10, and B × 10 ≥ (A + 1) × 10 = A × 10 + 10, so A × 10 + 1, …, A × 10 + 9 lie strictly between them. (3) The average is A + BD × 2 = (A + B) × 5D × 10, a decimal with k + 1 places.
- Both have two places, with numerators 237 and 238 over 100: they are neighbors at two places.
- With three places: 2.370 and 2.380, and the decimals 2.371, 2.372, …, 2.379 lie between them.
- The average: (2.37 + 2.38) ÷ 2 = 4.75 ÷ 2 = 2.375, the middle one.
Answer: for example 2.375, as in the figure.
Find a decimal between −0.7 and −0.69.
- With two places: −0.70 and −0.69, numerators −70 < −69 over 100.
- With three places: −0.700 and −0.690; the numerators −699, −698, …, −691 lie between −700 and −690.
Answer: for example −0.695, the average: (−0.70 + (−0.69)) ÷ 2 = −1.39 ÷ 2 = −0.695. Note that −0.695 is −0.69 with a digit appended, not −0.7: for negative numbers, a digit appended moves a number away from 0.
Lesson 1.3 showed that 0.142857 is less than 17 = 0.. Find a terminating decimal between them.
- Compare digit by digit: 0.142857 = 0.1428570, while 17 = 0.14285714…; the seventh digits are 0 and 1.
- Try 0.1428571: it is greater than 0.1428570, and 17 − 0.1428571 = 10,000,000 − 7 × 1,428,57170,000,000 = 370,000,000, which is positive.
Answer: 0.1428571, the decimal of 17 cut off after seven places. Every such cut-off lies below 17 (lesson Fractions to decimals), so the next cut-off is a decimal between the last one and 17 whenever its new digit is not 0.
Someone lists 0.31, 0.32, …, 0.39 as all the numbers between 0.3 and 0.4.
- Those are the decimals with two places between them, nine in all.
- But 0.35 and 0.36 have 0.351, …, 0.359 between them, and 0.305 lies between 0.3 and 0.31: none of these is in the list.
Answer: infinitely many numbers lie between 0.3 and 0.4, by the Theorem on infinitely many between.
Which lie between?
- Round
- 1
- Score
- 0
- Streak
- 0
Tap every card that lies strictly between x and y. Tap a card again to release it.
Dense does not mean complete. The rational number system has gaps, in spite of the fact that between any two rationals there is another.[3] For instance, there is no rational number p with p × p = 2.[11] The numbers that fill such gaps are the subject of the unit Real Numbers, in its lessons “Numbers that are not fractions” and “Why √2 is irrational”. Conversely, between any two different real numbers there is a rational number,[12] so the rational numbers are dense among the real numbers;[13] this is proved in the lesson “Density of ℚ in ℝ” of the unit Completeness & Real Sequences.
Exercises
Find the average of and , and check that it lies between them.
▸ Show solution
The sum is −4 − 36 = , and half of it is . Over 12: = −812, = −612, and −8 < −7 < −6.
Use the list of the Theorem with n = 2, 3, 4 to find three rational numbers between −0.25 and .
▸ Show solution
x = −0.25 = , y = , d = −4 + 520 = 120. n = 2: + 140 = ; n = 3: + 160 = = ; n = 4: + 180 = . As decimals: −0.25 < −0.2375 < −0.2333… < −0.225 < −0.2.
Which is less, −1.09 or −1.1? Find a decimal between them.
▸ Show solution
−1.1 = −1.10 < −1.09: the numerators over 100 are −110 < −109, neighbors. With three places, −1.100 < −1.099 < … < −1.091 < −1.090. For example −1.095, the average.
Someone claims that 0.999 is the greatest rational number less than 1. Refute the claim. Is there a greatest rational number less than 1?
▸ Show solution
0.999 is not: the average (0.999 + 1) ÷ 2 = 1.999 ÷ 2 = 0.9995 is a rational number with 0.999 < 0.9995 < 1.
No rational number is the greatest one below 1: if x < 1, then the average of x and 1 is rational and x < x + 12 < 1.
Let a and c be integers and b and d counting numbers, with ab < cd. Prove that the mediant a + cb + d lies strictly between them. Show by an example that this can fail if a denominator is negative.
▸ Show solution
By the order test (lesson 1.2), the hypothesis says a × d < b × c, and b + d is a counting number. Compare ab with a + cb + d: the cross products are a × (b + d) = a × b + a × d and b × (a + c) = a × b + b × c, and the first is smaller (law of order (1), adding a × b to a × d < b × c). Compare a + cb + d with cd: (a + c) × d = a × d + c × d and (b + d) × c = b × c + d × c, and again the first is smaller. So the mediant lies strictly between, as in the lesson Ordering fractions, now with numerators of any sign.
With a negative denominator it can fail: = 1−2 < 13, but (1 + 1) ÷ (−2 + 3) = 2 is not between them.
Prove that if x and y are rational numbers with y − x > 1, then some integer lies strictly between them. Give an example of two rational numbers less than 1 apart with no integer between them.
▸ Show solution
Place x as in lesson 1.2 (Proposition “placing a rational number”): there is an integer n with n ≤ x < n + 1 (in the notation of that Proposition, n = m when x ≥ 0; when x < 0, n = −m if r = 0 and n = −m − 1 otherwise). Then n + 1 > x, and n + 1 ≤ x + 1 < y because y − x > 1. So the integer n + 1 lies strictly between x and y.
If y − x ≤ 1, there may be none: no integer lies between 13 and 12, which are less than 1 apart.
Give a second proof that infinitely many rational numbers lie between any two different rational numbers x < y, using only averages.
▸ Show solution
Let z₁ be the average of x and y, z₂ the average of x and z₁, z₃ the average of x and z₂, and so on. By the Theorem on the average, x < z₁ < y, then x < z₂ < z₁, then x < z₃ < z₂, and so on: each new number lies between x and the one before. So every z lies between x and y (transitivity), and each is less than the one before, so no two are equal. The process never stops, so it gives infinitely many different numbers.
Summary
- The average x + y2 of two rational numbers x < y is rational, lies strictly between them, and is half the distance y − x from each. So ℚ is dense; ℤ is not.
- For every counting number n ≥ 2, x + y − xn lies strictly between x and y, and these numbers are all different: infinitely many rational numbers lie between any two.
- No rational number has a next or a previous rational number, and there is no least positive rational number. Every integer n has a next integer, n + 1.
- Between two terminating decimals, write one more place: nine decimals lie between them, and their average is again a terminating decimal.
- Dense does not mean complete: no rational number times itself is 2, so the rational numbers leave gaps in the line, filled by the irrational numbers of a later unit.
Sources
- 1.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).Chapter 5, “Decimals”, section 5.5, “Averages and Probability” (“Calculate the Mean of a Set of Numbers”), p. 422 (the whole topic: pp. 421–423).
“The mean is often called the arithmetic average. It is computed by dividing the sum of the values by the number of values.”
Used for: the average of two numbers is their sum divided by 2; it is also called the arithmetic mean. - 2.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.8, “Proof Methods and Strategy” (1.8.5, “Proof Strategies”, “Forward and Backward Reasoning”), Example 14, p. 105 (the whole topic: pp. 105).
“Given two positive real numbers x and y, their arithmetic mean is (x + y)∕2”
Used for: the arithmetic mean of two numbers x and y is (x + y)/2 (stated by Rosen for positive real numbers). - 3.Walter Rudin, Principles of Mathematical Analysis (3rd ed., McGraw-Hill, 1976).Chapter 1, “The Real and Complex Number Systems”, section Introduction, 1.2 Remark, p. 2 (the whole topic: pp. 1–2).
“rational number system has certain gaps, in spite of the fact that between any two rationals there is another: If r < s then r < (r + s)/2 < s.”
Used for: if r < s, then r < (r + s)/2 < s (the figure); the rational number system has gaps in spite of being dense (Looking ahead). - 4.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 9, “Relations”, section 9.6, “Partial Orderings”, Exercises (before Exercise 55), p. 664 (the whole topic: pp. 664).
“is dense if for all x ∈S and y ∈S with x ≺y, there is an element z ∈R such that x ≺z ≺y.”
Used for: a collection is dense if between any two different members there is always a third (Rosen’s definition of a dense poset). - 5.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 9, “Relations”, section 9.6, “Partial Orderings”, Exercises (Exercise 57), p. 664 (the whole topic: pp. 664).
“Show that the poset of rational numbers with the usual less than or equal to relation, (Q, ≤), is a dense poset.”
Used for: the rational numbers with their usual order are dense. - 6.Eric W. Weisstein, “Rational Number”, MathWorld, a Wolfram Web Resource.Section “Rational Number”. mathworld.wolfram.com/RationalNumber.html · open at the quoted passage.
“It is always possible to find another rational number between any two distinct rational numbers.”
Used for: it is always possible to find another rational number between any two distinct rational numbers. - 7.H.-D. Ebbinghaus et al., Numbers (trans. H. L. S. Orde, Springer (Graduate Texts in Mathematics 123), 1991).Chapter 1, “Natural Numbers, Integers, and Rational Numbers” (K. Mainzer), section §4, “The Rational Numbers”, 3, “The Ordering of ℚ”, p. 23 (the whole topic: pp. 23).
“A noteworthy property, which distinguishes the field Q from the ring of integers Z is its density:”
Used for: density is the property that distinguishes ℚ from ℤ. - 8.H.-D. Ebbinghaus et al., Numbers (trans. H. L. S. Orde, Springer (Graduate Texts in Mathematics 123), 1991).Chapter 1, “Natural Numbers, Integers, and Rational Numbers” (K. Mainzer), section §4, “The Rational Numbers”, 3, “The Ordering of ℚ”, p. 23 (the whole topic: pp. 23).
“One can, for example, choose the arithmetic mean”
Used for: the arithmetic mean of r < s is the standard example of a rational number between them (the formula follows: t := ½(r + s)). - 9.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter Appendix 1, “Axioms for the Real Numbers and the Positive Integers”, section A1.3, “Axioms for the Set of Positive Integers”, Axiom 2, pp. A-5 (the whole topic: pp. A-5).
“If n is a positive integer, then n + 1, the successor of n, is also a positive integer.”
Used for: for a positive integer n, n + 1 is called the successor of n. - 10.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).Chapter 5, “Decimals”, section 5.1, “Decimals” (“Order Decimals”), p. 377 (the whole topic: pp. 376–377).
“Remember, writing zeros at the end of a decimal does not change its value.”
Used for: writing zeros at the end of a decimal does not change its value. - 11.Walter Rudin, Principles of Mathematical Analysis (3rd ed., McGraw-Hill, 1976).Chapter 1, “The Real and Complex Number Systems”, section Introduction, p. 1 (the whole topic: pp. 1–2).
“For instance, there is no rational p such that p² = 2.”
Used for: there is no rational number p with p × p = 2 (proved in Rudin’s Example 1.1). - 12.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter Appendix 1, “Axioms for the Real Numbers and the Positive Integers”, section Exercises, Exercise 20, pp. A-6 (the whole topic: pp. A-6).
“Prove that between every two distinct real numbers there is a rational number”
Used for: between any two different real numbers there is a rational number (Looking ahead). - 13.Eric W. Weisstein, “Dense Set”, MathWorld, a Wolfram Web Resource.Section “Dense Set”. mathworld.wolfram.com/DenseSet.html · open at the quoted passage.
“For example, the rational numbers are dense in the real numbers.”
Used for: the rational numbers are dense in the real numbers (Looking ahead).