ExamSaathi learning library · School · CBSE Class 9 Mathematics 2026-27; teacher review pending · Mathematics
Rational numbers: density, decimal expansions and the square root spiral
Find as many rational numbers as you need between any two rational numbers, see why the long division of p by q must stop or repeat, tell irrational numbers by their decimals, and build the square root spiral to mark sqrt(2), sqrt(3) and more.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Find any number of rational numbers between two given rational numbers by the average method or by equal steps.
- Explain why the long division of p by a positive whole number q must either stop or repeat a block of at most q - 1 digits.
- Tell rational and irrational numbers apart from their decimal expansions.
- Construct the square root spiral and use it to mark sqrt(2), sqrt(3) and other square roots on the number line.
Before you start
A rational number is a number of the form p/q, with integers p and q and q not equal to 0; the denominator q can always be chosen positive, as in -7/4 rather than 7/(-4). So 3/5, -7/4, 6 (which is 6/1), 0 (which is 0/1) and 2.5 (which is 5/2) are all rational. One rational number has many names, because multiplying p and q by the same non-zero integer gives an equal fraction: 1/2 = 2/4 = 50/100. Every rational number has its own point on the number line: to mark 7/4, split each unit into 4 equal parts and count 7 parts to the right of 0. Between two integers that follow each other, such as 3 and 4, there is no other integer. This lesson asks whether the same is true of rational numbers, and then looks at their decimals. Here x means multiply, ^ marks a power and sqrt(n) means the square root of n.
Density: there is always another rational number in between
Take any two rational numbers a and b with a < b. Their average, (a + b)/2, lies exactly halfway between them, so a < (a + b)/2 < b. It is rational too: if a = p/q and b = r/s, then (a + b)/2 = (ps + rq)/(2qs), an integer divided by a non-zero integer. Now repeat the step between a and the new number, and again, as often as you like. So between any two rational numbers there are infinitely many rational numbers. This property is called density, and it is the big difference from the integers. A second method gives several numbers at once. Write both numbers with the same denominator, then multiply the top and the bottom by 10, or by any larger number, to open up gaps: 3/7 = 30/70 and 4/7 = 40/70, so 31/70, 32/70 and so on up to 39/70 are nine rational numbers between them.
Decimal expansions: why they stop or repeat
To write p/q as a decimal, with q positive, divide p by q by long division. At every step the remainder is one of 0, 1, 2 and so on up to q - 1. If a remainder of 0 appears, the division stops and the decimal terminates, as in 7/8 = 0.875. If 0 never appears, only the q - 1 non-zero remainders are possible, so within q - 1 steps some remainder must come back. From then on the same remainders and digits return in the same order, so the decimal is non-terminating and recurring. For 1/7 the remainders run 3, 2, 6, 4, 5, 1 and then 3 again, giving 0.142857142857..., a repeating block of 6 = 7 - 1 digits. So every rational number has a terminating or a recurring decimal. The reverse is also true: a recurring decimal such as 0.234234... is rational, since multiplying by 1000 and subtracting gives 999 times the number = 234, so it equals 234/999 = 26/111. The same trick shows that 0.999... and 1 are the same number.
Irrational numbers on the number line
A decimal can also go on for ever without settling into a repeating block, such as 0.101001000100001..., where each run of 0s is one longer than the run before. Because the runs of 0s keep growing, the digits never settle into one fixed block that repeats for ever, so this number cannot be p/q; it is irrational. sqrt(2) = 1.41421356..., sqrt(3) and pi behave in the same way, as their proofs of irrationality show. Rational and irrational numbers together make up the real numbers, and every point of the number line stands for exactly one real number. Some irrational numbers can be marked exactly, not just roughly. Draw a square with side 1 unit on the number line from 0 to 1. Its diagonal from 0 has length sqrt(1^2 + 1^2) = sqrt(2), by Pythagoras' theorem. Put the compass point at 0 and the pencil at the far end of the diagonal, and swing an arc down to the number line: it cuts the line at sqrt(2), a little to the left of 1.5.
The square root spiral
The diagonal idea can be repeated to reach sqrt(3), sqrt(4), sqrt(5) and beyond. Start at a point O and draw OP1 = 1 unit. At P1, draw P1P2 = 1 unit at right angles to OP1 and join OP2: by Pythagoras' theorem OP2 = sqrt(1 + 1) = sqrt(2). At P2, draw P2P3 = 1 unit at right angles to OP2 and join OP3 = sqrt(2 + 1) = sqrt(3). Keep going: each new right triangle has legs sqrt(n) and 1, so its hypotenuse is sqrt(n + 1). The spokes OP1, OP2, OP3 and so on have lengths sqrt(1), sqrt(2), sqrt(3) and so on, while every outer edge is 1 unit, so the figure curls round like a snail shell. It is called the square root spiral, or the spiral of Theodorus. To mark sqrt(5) on the number line, open the compass to the length of the spoke OP5 and swing it from 0 onto the line. The spoke OP4 should be exactly 2 units long, which is a handy check on the drawing.
Common mistakes
Thinking that there is no rational number between neighbours such as 3/7 and 4/7; there are infinitely many. Finding a halfway point by adding the tops and the bottoms: halfway between 1/3 and 1/2 is (2/6 + 3/6)/2 = 5/12, not (1 + 1)/(3 + 2) = 2/5. Calling 0.333 equal to 1/3; it is a terminating decimal that is only close to 1/3. Deciding that a long decimal on a calculator screen is irrational; the screen cuts the digits off, so it cannot show whether a block repeats. Saying that a decimal that never ends must be irrational; 0.272727... never ends but repeats, so it is rational. Expecting the repeating block of p/q, with q positive, to have q digits; it has at most q - 1. In the spiral, drawing an angle that is not a right angle or an outer edge that is not 1 unit, which spoils every later length.
A short routine
Numbers between a and b: 1. Check which number is smaller. 2. For one number, take (a + b)/2. 3. For several, write both with a common denominator, multiply the top and the bottom by 10 or more until there are enough whole numbers between the numerators, and list the fractions. Decimal expansion of p/q: divide, write down each remainder, and stop when a remainder is 0 (terminating) or comes back (recurring); the digits produced between the two equal remainders form the repeating block. Rational or irrational from a decimal: terminating or recurring means rational, while a decimal that never ends and never settles into one fixed repeating block means irrational. Square root spiral: draw every outer edge 1 unit long at a right angle to the last spoke, and check that the spoke OP4 is 2 units.
Worked examples
Find three rational numbers between 2/5 and 3/5, first by the average method and then by equal steps.
- Average of the two numbers: (2/5 + 3/5)/2 = (5/5)/2 = 1/2 = 0.5.
- Average of 2/5 and 1/2: (0.4 + 0.5)/2 = 0.45 = 9/20. Average of 1/2 and 3/5: (0.5 + 0.6)/2 = 0.55 = 11/20.
- Equal steps: 2/5 = 8/20 and 3/5 = 12/20, so 9/20, 10/20 and 11/20 lie between them, and 10/20 is the same number as 1/2.
- Both methods give the same three numbers here, and either one can be continued to give as many more as you like.
Answer: 9/20 (0.45), 1/2 (0.5) and 11/20 (0.55) all lie between 2/5 and 3/5.
Use long division to write 5/7 as a decimal and find its repeating block.
- Divide 5 by 7. Bring down a 0: 50 / 7 = 7 remainder 1, so the first digit after the point is 7.
- Then 10 / 7 = 1 remainder 3; 30 / 7 = 4 remainder 2; 20 / 7 = 2 remainder 6; 60 / 7 = 8 remainder 4; 40 / 7 = 5 remainder 5.
- The remainder 5 is the number we started with, so the digits 7, 1, 4, 2, 8, 5 now repeat in the same order.
- The block has 6 digits, the most possible for a denominator of 7, because all the remainders 1 to 6 appeared.
Answer: 5/7 = 0.714285714285..., with the six-digit block 714285 repeating.
A square root spiral starts with OP1 = 1 unit. Which spoke has length sqrt(10)? How long is the spoke OP25, and between which two whole numbers does OP12 lie?
- Spoke OPn has length sqrt(n), because each new right triangle adds 1 to the square of the previous spoke: (sqrt(n))^2 + 1^2 = n + 1.
- So the spoke of length sqrt(10) is OP10.
- OP25 = sqrt(25) = 5 units, a whole number because 25 is a perfect square.
- OP12 = sqrt(12). Since 3^2 = 9 and 4^2 = 16, sqrt(12) lies between 3 and 4; it is about 3.46.
Answer: OP10 has length sqrt(10), OP25 is exactly 5 units, and OP12 = sqrt(12) lies between 3 and 4, at about 3.46.
Practice checks
- Asha writes 3/8 and 5/8 as fractions with denominator 40. How many fractions with denominator 40 lie strictly between them?
- Which rational number lies exactly halfway between 1.2 and 1.25?
- When 3/17 is written as a decimal by long division, what is the greatest number of digits its repeating block can have?
- Which of these numbers is irrational?
- A square root spiral starts with OP1 = 1 unit, and every outer edge is 1 unit long and at a right angle to the last spoke. How long is the spoke OP36?
Sources checked
- CBSE Mathematics, Class IX (2026-27) — Unit I Number System (density of rational numbers and its proof; finding rational numbers between two rational numbers; decimal representation of rational numbers; introduction to irrational numbers; the square root spiral); draft topic mapping, not an examinability guarantee
- NCERT, Ganita Manjari: Textbook of Mathematics for Grade 9 (Part I) — Chapter 3 The World of Numbers: rational numbers and the number line, terminating and repeating decimals and why the remainders must repeat, converting repeating decimals to p/q, 0.999... = 1, irrational and real numbers; mathematical facts only
- OpenStax, Prealgebra 2e — Section 7.1 Rational and Irrational Numbers: rational numbers as ratios of integers whose decimals stop or repeat, and irrational numbers whose decimals neither stop nor repeat; facts only
- Wolfram MathWorld, Theodorus Spiral — The square root spiral built from adjoining right triangles with outer legs of unit length, whose spokes have lengths sqrt(1), sqrt(2), sqrt(3) and so on; facts only