Lessons / Number System / Practice

Learn this topic first

Skip to the questions ↓

Read this, then start. Tap a topic to open or close it.

Number System
Exam weightage: HighAbout 2-3 questions per placement paper. Seen most in TCS NQT, AMCAT, Wipro. All topics

Most number questions never need the whole number. 'Is it divisible by 8?' needs the last 3 digits. 'What is the unit digit?' needs the last digit. Learn which part to look at.

Kinds of numbers

Natural numbers: 1, 2, 3 ... Whole numbers: 0, 1, 2, 3 ... Integers add the negatives: ... -2, -1, 0, 1, 2 ...

A prime has exactly two factors, 1 and itself: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 ... 1 is NOT prime, and 2 is the only even prime. A composite number has more than two factors (4, 6, 8, 9 ...).

Divisibility rules

You can tell whether a number divides another without dividing. Each rule looks at only part of the number.

2, 5, 10: look at the last digit. 4: last two digits. 8: last three digits. 3 and 9: add all the digits. 11: alternate plus and minus across the digits; the result must be 0 or a multiple of 11.

Unit digit of big powers

The last digit of a product depends only on the last digits of the numbers. And the last digits of powers repeat in a cycle.

2, 3, 7, 8 repeat every 4 powers. 4 and 9 repeat every 2. 0, 1, 5, 6 never change.

Factors, and how many a number has

Factorise into primes first, using a factor tree. 360 = 23 × 32 × 5.

Number of factors: add 1 to each power and multiply. For 360 that is (3+1)(2+1)(1+1) = 24.

HCF and LCM

HCF (highest common factor) is the biggest number that divides all of them. LCM (lowest common multiple) is the smallest number all of them divide.

From prime factors: HCF takes the LOWEST power of each common prime; LCM takes the HIGHEST power of every prime present.

HCF × LCM = a × b
Two numbers only.
Largest number dividing a, b, c leaving the same remainder
HCF of the differences (b - a), (c - b).
Smallest number leaving remainder r when divided by x, y, z
LCM(x, y, z) + r.

Remainders

The remainder of a sum or product can be found from the remainders of the parts. 17 × 23 / 12: 17 leaves 5 and 23 leaves 11, 5 × 11 = 55, which leaves 7.

For big powers, find a small power that leaves remainder 1, then use it. 23 = 8 leaves 1 when divided by 7, so 299 = (23)33 leaves 1 too.

Trailing zeros of n!

A zero at the end comes from a factor 10 = 2 × 5. In n! there are always more 2s than 5s, so count the 5s.

Zeros in n! = n/5 + n/25 + n/125 + ... (drop the remainders each time).

Greatest and smallest fractions

To compare fractions, cross-multiply two at a time, or turn each into a decimal or a percentage.

Shortcut: if every numerator and denominator goes up by the same steps, compare the step fraction with the first fraction. If the step fraction is bigger, the fractions keep growing and the last one is largest.

Worked exampleIs 391 a prime number?
  1. √(391) is just under 20, so test primes up to 19.If 391 had a factor bigger than 20, it would also have one smaller than 20.
  2. 2, 3, 5, 7, 11, 13: none divides. 17 × 23 = 391.Check each prime in turn.
  3. Not prime: 391 = 17 × 23.
Calling 1 a prime.
A prime has exactly two factors. 1 has one.
Using HCF × LCM = product for three numbers.
It works for two numbers only.
Unit digit cycle: using the power itself instead of its remainder by 4.
795 → 95 mod 4 = 3 → third in the cycle.