WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M1-3 ยท 3 of 11 in Algebra ยท 13 min read

Real numbers and the number line

16 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter gave 4 questions in the 7 papers from NDA II 2023 to NDA II 2026: one in NDA II 2023 and three in NDA I 2024. None of them asked the student to mark a number on a line. All four were about integers: remainders, factorials and divisibility. So this chapter does two things. It gives the number line, intervals and โ€‹|x|โ€‹, which every later chapter uses. Then it gives the three integer tools the real questions need. All four real questions are solved in section 7.

What you will be able to do

  • Name the families of numbers and tell a rational number from an irrational one.
  • Read and write intervals, and use โ€‹|x - a|โ€‹ as a distance on the number line.
  • Find the power of a prime in โ€‹n!โ€‹ and the number of zeros at the end of โ€‹n!โ€‹.
  • Find the remainder when a large power is divided by a small number.

Before you start you should know: the set signs โ€‹\inโ€‹ and โ€‹\subsetโ€‹ (Chapter M1-1), and how to divide one whole number by another with a remainder.

1. The families of numbers

Family Symbol Members
Natural numbers โ€‹Nโ€‹ โ€‹1, 2, 3, \dotsโ€‹
Whole numbers โ€‹Wโ€‹ โ€‹0, 1, 2, 3, \dotsโ€‹
Integers โ€‹Zโ€‹ โ€‹\dots, -2, -1, 0, 1, 2, \dotsโ€‹
Rational numbers โ€‹Qโ€‹ numbers of the form โ€‹\dfrac{p}{q}โ€‹, with โ€‹pโ€‹ and โ€‹qโ€‹ integers and โ€‹q \ne 0โ€‹
Irrational numbers numbers that cannot be written as โ€‹\dfrac{p}{q}โ€‹: โ€‹\sqrt{2}โ€‹, โ€‹\sqrt{3}โ€‹, โ€‹\piโ€‹
Real numbers โ€‹Rโ€‹ all rational and all irrational numbers together

Each family sits inside the next: โ€‹N \subset W \subset Z \subset Q \subset Rโ€‹.

Nested boxes: natural numbers inside whole numbers inside integers inside rational numbers; rational and irrational numbers together make the real numbers

2. Rational or irrational?

Look at the decimal form.

  • If the decimal ends (โ€‹0.25โ€‹) or repeats (โ€‹0.3636\ldotsโ€‹), the number is rational.
  • If the decimal goes on for ever without repeating, the number is irrational.

A repeating decimal is written with a bar over the repeating digits: โ€‹0.3636\ldots = 0.\overline{36}โ€‹. To change it to a fraction, let โ€‹x = 0.\overline{36}โ€‹. Then โ€‹100x = 36.\overline{36}โ€‹. Subtract: โ€‹99x = 36โ€‹, so โ€‹x = \dfrac{36}{99} = \dfrac{4}{11}โ€‹.

Three rules:

  • โ€‹\sqrt{n}โ€‹ is irrational unless โ€‹nโ€‹ is a perfect square. โ€‹\sqrt{16} = 4โ€‹ is rational; โ€‹\sqrt{7}โ€‹ is irrational.
  • Rational โ€‹+โ€‹ irrational is always irrational. So โ€‹2 + \sqrt{3}โ€‹ is irrational.
  • Irrational โ€‹\timesโ€‹ irrational can be either. โ€‹\sqrt{2} \times \sqrt{2} = 2โ€‹ is rational; โ€‹\sqrt{2} \times \sqrt{3} = \sqrt{6}โ€‹ is irrational.

3. The number line and intervals

Draw a straight line, mark a point 0 and a point 1 to its right. Now every real number has exactly one point on the line, and every point has exactly one real number. Larger numbers lie to the right: โ€‹a < bโ€‹ means โ€‹aโ€‹ is to the left of โ€‹bโ€‹.

A number line from -3 to 4 with the points -2, one half, root 2 and pi marked

The line has no gaps and no "next" number. Between any two different real numbers there are infinitely many rational numbers and infinitely many irrational numbers.

A piece of the line between two numbers is called an interval. For โ€‹a < bโ€‹:

Interval Meaning End points
โ€‹(a, b)โ€‹ โ€‹a < x < bโ€‹ both left out (open)
โ€‹[a, b]โ€‹ โ€‹a \le x \le bโ€‹ both included (closed)
โ€‹[a, b)โ€‹ โ€‹a \le x < bโ€‹ โ€‹aโ€‹ included, โ€‹bโ€‹ left out
โ€‹(a, b]โ€‹ โ€‹a < x \le bโ€‹ โ€‹aโ€‹ left out, โ€‹bโ€‹ included

Four number lines showing the intervals from 2 to 5: open, closed, and the two half-open ones, with open and filled circles at the end points

On the line, an open circle shows an end point that is left out and a filled circle shows one that is included. For example, โ€‹[2, 5)โ€‹ contains 2 and 4.99 but not 5. The pieces that go on for ever are written with โ€‹\inftyโ€‹: โ€‹(3, \infty)โ€‹ means โ€‹x > 3โ€‹.

4. Absolute value: distance on the line

The absolute value (or modulus) โ€‹|x|โ€‹ is the distance of โ€‹xโ€‹ from 0. It is never negative.

|x| = x \ \text{ if } x \ge 0, \qquad |x| = -x \ \text{ if } x < 0

So โ€‹|5| = 5โ€‹ and โ€‹|-5| = 5โ€‹. In the same way, โ€‹|x - a|โ€‹ is the distance between โ€‹xโ€‹ and โ€‹aโ€‹. For example, โ€‹|2 - 7| = 5โ€‹.

A number line: -5 and 5 are both 5 units from 0, and 2 and 7 are 5 units apart

For a positive number โ€‹aโ€‹:

Statement Means On the line
โ€‹\lvert x \rvert = aโ€‹ โ€‹x = aโ€‹ or โ€‹x = -aโ€‹ two points
โ€‹\lvert x \rvert < aโ€‹ โ€‹-a < x < aโ€‹ the interval โ€‹(-a, a)โ€‹
โ€‹\lvert x \rvert > aโ€‹ โ€‹x < -aโ€‹ or โ€‹x > aโ€‹ two separate pieces

Two number lines: the points with modulus less than 3 lie between -3 and 3; the points with modulus greater than 3 lie to the left of -3 or to the right of 3

Two more facts: โ€‹\sqrt{x^2} = |x|โ€‹, and โ€‹|x + y| \le |x| + |y|โ€‹ for all real โ€‹xโ€‹ and โ€‹yโ€‹.

5. Integers: three tools the exam uses

Tool 1: a factorial contains every smaller factorial. โ€‹n!โ€‹ means โ€‹1 \times 2 \times 3 \times \dots \times nโ€‹. So โ€‹4! = 24โ€‹, and โ€‹5! = 5 \times 4!โ€‹, โ€‹6! = 6 \times 5 \times 4!โ€‹, and so on. Every factorial from โ€‹4!โ€‹ onwards is divisible by 24.

Tool 2: the power of a prime โ€‹pโ€‹ in โ€‹n!โ€‹. Count the multiples of โ€‹pโ€‹, then of โ€‹p^2โ€‹, then of โ€‹p^3โ€‹, up to โ€‹nโ€‹:

\text{power of } p \text{ in } n! = \left\lfloor \frac{n}{p} \right\rfloor + \left\lfloor \frac{n}{p^2} \right\rfloor + \left\lfloor \frac{n}{p^3} \right\rfloor + \dots

The sign โ€‹\lfloor\ \rfloorโ€‹ means "divide and drop the fraction part". For example, the power of 2 in โ€‹10!โ€‹ is โ€‹\left\lfloor \frac{10}{2} \right\rfloor + \left\lfloor \frac{10}{4} \right\rfloor + \left\lfloor \frac{10}{8} \right\rfloor = 5 + 2 + 1 = 8โ€‹.

Tool 3: remainders of powers. When numbers are multiplied, their remainders are multiplied too. So if some power โ€‹a^kโ€‹ leaves remainder 1, every power of โ€‹a^kโ€‹ also leaves remainder 1. Look for that power first. For example, โ€‹3^2 = 9โ€‹ leaves remainder 1 on division by 8, so โ€‹3^{100} = (3^2)^{50}โ€‹ also leaves remainder 1.

6. Worked examples

Example 1. Write โ€‹0.4777\ldots = 0.4\overline{7}โ€‹ as a fraction.

Let โ€‹x = 0.4\overline{7}โ€‹. Then โ€‹10x = 4.\overline{7}โ€‹ and โ€‹100x = 47.\overline{7}โ€‹. Subtract: โ€‹90x = 43โ€‹, so โ€‹x = \dfrac{43}{90}โ€‹.

Example 2. Solve โ€‹|2x - 3| \le 5โ€‹ and write the answer as an interval.

โ€‹-5 \le 2x - 3 \le 5โ€‹. Add 3: โ€‹-2 \le 2x \le 8โ€‹. Divide by 2: โ€‹-1 \le x \le 4โ€‹. The answer is โ€‹[-1, 4]โ€‹.

Example 3. How many zeros are at the end of โ€‹50!โ€‹?

Each zero needs one factor 10, that is one 2 and one 5. There are fewer 5s than 2s, so count the 5s (Tool 2): โ€‹\left\lfloor \frac{50}{5} \right\rfloor + \left\lfloor \frac{50}{25} \right\rfloor = 10 + 2 = 12โ€‹. There are 12 zeros.

Example 4. What is the remainder when โ€‹3^{101}โ€‹ is divided by 8?

โ€‹3^2 = 9โ€‹ leaves remainder 1 (Tool 3). Write โ€‹3^{101} = (3^2)^{50} \times 3โ€‹. The first factor leaves remainder 1, so the product leaves the remainder of โ€‹1 \times 3 = 3โ€‹.

7. From the real papers

Try each question for 75 seconds before you read the solution.

NDA II 2023, Q2. If โ€‹1! + 3! + 5! + 7! + \ldots + 199!โ€‹ is divided by 24, what is the remainder?

(a) 3โ€ƒโ€ƒ(b) 6โ€ƒโ€ƒ(c) 7โ€ƒโ€ƒ(d) 9

Solution. โ€‹4! = 24โ€‹, so โ€‹5!, 7!, \ldots, 199!โ€‹ are all divisible by 24 (Tool 1). Only โ€‹1! + 3! = 1 + 6 = 7โ€‹ is left. Answer (c).

NDA I 2024, Q18. What is the remainder when โ€‹2^{120}โ€‹ is divided by 7?

(a) โ€‹1โ€‹โ€ƒโ€ƒ(b) โ€‹3โ€‹โ€ƒโ€ƒ(c) โ€‹5โ€‹โ€ƒโ€ƒ(d) โ€‹6โ€‹

Solution. โ€‹2^3 = 8โ€‹ leaves remainder 1 on division by 7 (Tool 3). โ€‹2^{120} = (2^3)^{40}โ€‹, so it also leaves remainder 1. Answer (a).

NDA I 2024, Q10. If โ€‹26! = n8^kโ€‹, where โ€‹kโ€‹ and โ€‹nโ€‹ are positive integers, then what is the maximum value of โ€‹kโ€‹?

(a) โ€‹6โ€‹โ€ƒโ€ƒ(b) โ€‹7โ€‹โ€ƒโ€ƒ(c) โ€‹8โ€‹โ€ƒโ€ƒ(d) โ€‹9โ€‹

Solution. โ€‹8 = 2^3โ€‹ is not a prime, so first count the 2s (Tool 2): โ€‹\left\lfloor \frac{26}{2} \right\rfloor + \left\lfloor \frac{26}{4} \right\rfloor + \left\lfloor \frac{26}{8} \right\rfloor + \left\lfloor \frac{26}{16} \right\rfloor = 13 + 6 + 3 + 1 = 23โ€‹. Each 8 uses three 2s, and โ€‹\left\lfloor \frac{23}{3} \right\rfloor = 7โ€‹. Answer (b).

NDA I 2024, Q33. If โ€‹x^2 + mx + nโ€‹ is an integer for all integral values of โ€‹xโ€‹, then which of the following is/are correct? 1. โ€‹mโ€‹ must be an integer 2. โ€‹nโ€‹ must be an integer Select the correct answer using the code given below :

(a) 1 onlyโ€ƒโ€ƒ(b) 2 onlyโ€ƒโ€ƒ(c) Both 1 and 2โ€ƒโ€ƒ(d) Neither 1 nor 2

Solution. Put โ€‹x = 0โ€‹: the value is โ€‹nโ€‹, so โ€‹nโ€‹ is an integer. Put โ€‹x = 1โ€‹: the value is โ€‹1 + m + nโ€‹, an integer. Since 1 and โ€‹nโ€‹ are integers, โ€‹mโ€‹ is an integer too. Answer (c).

Practice questions in the exam style

The real questions above are all on integers. These two are our own questions, not from a real paper, on the other half of the chapter.

Practice 1. Consider the following statements : I. The sum of a rational number and an irrational number is always irrational. II. The product of two irrational numbers is always irrational. Which of the statements given above is/are correct?

(a) I onlyโ€ƒโ€ƒ(b) II onlyโ€ƒโ€ƒ(c) Both I and IIโ€ƒโ€ƒ(d) Neither I nor II

Solution. I is correct (section 2). II is wrong: โ€‹\sqrt{2} \times \sqrt{2} = 2โ€‹. Answer (a).

Practice 2. How many integers โ€‹xโ€‹ satisfy โ€‹|x - 3| < 4โ€‹?

(a) 6โ€ƒโ€ƒ(b) 7โ€ƒโ€ƒ(c) 8โ€ƒโ€ƒ(d) 9

Solution. The distance of โ€‹xโ€‹ from 3 is less than 4, so โ€‹-1 < x < 7โ€‹. The integers are โ€‹0, 1, 2, 3, 4, 5, 6โ€‹: seven of them. Answer (b).

8. Mistakes that cost marks

  1. Calling a repeating decimal irrational. โ€‹0.333\ldots = \dfrac{1}{3}โ€‹ is rational. In the same way โ€‹\dfrac{22}{7}โ€‹ is rational; it is only close to โ€‹\piโ€‹, which is irrational.
  2. Writing โ€‹|x| > aโ€‹ as one chain. โ€‹-a > x > aโ€‹ is wrong. The right answer has two separate pieces: โ€‹x < -aโ€‹ or โ€‹x > aโ€‹.
  3. Writing โ€‹\sqrt{x^2} = xโ€‹. The right form is โ€‹\sqrt{x^2} = |x|โ€‹. For โ€‹x = -3โ€‹: โ€‹\sqrt{9} = 3โ€‹, not โ€‹-3โ€‹.
  4. Using Tool 2 on a number that is not prime. For the power of 8 in โ€‹26!โ€‹, count the 2s first and then divide by 3.

9. Quick check

Do these without help. Answers are at the end.

  1. Which of these are irrational: โ€‹\sqrt{16}โ€‹, โ€‹\sqrt{7}โ€‹, โ€‹0.25โ€‹, โ€‹\piโ€‹, โ€‹0.\overline{63}โ€‹?
  2. Write โ€‹0.\overline{63} = 0.6363\ldotsโ€‹ as a fraction.
  3. Solve โ€‹|x - 2| < 3โ€‹ and write the answer as an interval.
  4. How many zeros are at the end of โ€‹30!โ€‹?
  5. What is the remainder when โ€‹2^{50}โ€‹ is divided by 7?

10. Read and watch more, free

No free textbook chapter in our checked list is only about this topic. These cover its parts.

What Where Language
Textbook: subsets of the real numbers, intervals NCERT Class 11 Mathematics, Chapter 1 Sets (sections 1.6.1 and 1.6.2) ยท Hindi edition English, Hindi
Textbook: inequalities shown on the number line NCERT Class 11 Mathematics, Chapter 5 Linear Inequalities ยท Hindi edition English, Hindi
Self-study notes: number families and intervals NIOS Mathematics, Lesson 1 Sets ยท Hindi edition English, Hindi
Video, every textbook problem Magnet Brains: Class 11 Maths (the videos on Chapter 1 and Chapter 5) Hinglish
Video, short lessons Khan Academy India: เค•เค•เฅเคทเคพ 11 เคเคจเคธเฅ€เคˆเค†เคฐเคŸเฅ€ เค—เคฃเคฟเคค (the lessons on sets and on linear inequalities; the playlist is not in chapter order) Hindi
Video, past NDA questions solved topic by topic Chandigarh Career Group: NDA mathematics PYQ Hinglish (judged from the titles)

For section 5 (factorials and remainders) the checked list has no textbook chapter and no video of its own. Use the worked examples and the real questions above.

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹\sqrt{7}โ€‹ and โ€‹\piโ€‹. (โ€‹\sqrt{16} = 4โ€‹, and โ€‹0.25โ€‹ and โ€‹0.\overline{63}โ€‹ end or repeat, so they are rational.)
  2. Let โ€‹x = 0.\overline{63}โ€‹. Then โ€‹100x - x = 63โ€‹, so โ€‹x = \dfrac{63}{99} = \dfrac{7}{11}โ€‹.
  3. โ€‹-3 < x - 2 < 3โ€‹, so โ€‹-1 < x < 5โ€‹: the interval โ€‹(-1, 5)โ€‹.
  4. โ€‹\left\lfloor \frac{30}{5} \right\rfloor + \left\lfloor \frac{30}{25} \right\rfloor = 6 + 1 = 7โ€‹.
  5. โ€‹2^3 = 8โ€‹ leaves remainder 1. โ€‹2^{50} = (2^3)^{16} \times 2^2โ€‹, so the remainder is that of โ€‹1 \times 4 = 4โ€‹.

Next chapter: Complex numbers.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    What is the remainder when โ€‹(1!)^2 + (2!)^2 + (3!)^2 + \ldots + (30!)^2โ€‹ is divided by 10?
  2. Question 2 of 3
    What is the least value of โ€‹|x - 2| + |x - 6|โ€‹ for real โ€‹xโ€‹?
  3. Question 3 of 3
    How many zeros are there at the end of โ€‹125!โ€‹?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.