Skip to content

Types of Numbers

OptionalOptional: school basics. Skip it if you already know this.

7 lessons · 19 questions · 6 PYQs · ~50 s per question

The idea

Classification questions test whether you know what kind of number you are looking at: prime or composite, square or not, rational or irrational, terminating or recurring, odd or even. Each class has a quick membership test, and most exam items are either 'which option belongs' or 'what can never happen'.

Textbook vs exam method

Exam method

  1. Indore 2019 Q14. P−⋃Q(k)P-\bigcup Q(k) is the set of primes up to 2525: 99.Indore 2019
  2. Indore 2026. x2 mod 6∈{0,1,3,4}x^2\bmod6\in\{0,1,3,4\}, so k=2,5k=2,5 are impossible for 6m+k6m+k.Indore 2026
  3. Indore 2026. 23∣abc23\mid abc gives c=23c=23, (a−1)(b−1)=24(a-1)(b-1)=24: triples {3,13,23},{5,7,23}\{3,13,23\},\{5,7,23\}; max a+b−c=13+23−3=33a+b-c=13+23-3=33.Indore 2026
  4. Which of 3123,219,573,4673123, 219, 573, 467 is prime? Digit sums kill 3123,219,5733123, 219, 573 (9,12,159, 12, 15); 467467 survives trial division to 1919.
  5. 0.1818…+0.3030030003…0.1818\ldots+0.3030030003\ldots: rational plus irrational is irrational.

Worked examples

Example 1Sitter

Primes between 6060 and 8080

Example 2Sitter

Squares between 11 and 10001000 with unit digit 66

Example 3Easy

For how many n≤100n\le100 is n/140n/140 terminating? Multiples of 77

Example 4Easy

18n\sqrt{18n} rational for how many n≤100n\le100? n=2t2n=2t^2

Example 5Typical

aa even, bb odd

Traps

  • 11 counted as prime; 6k±16k\pm1 taken as sufficient; unreduced denominators; irrational sums; careless parity.

Formulas

Primality test and the 6k plus or minus 1 form

n prime  ⟺  no prime p≤n divides n;p>3 prime⇒p=6k±1n\text{ prime}\iff\text{no prime }p\le\sqrt n\text{ divides }n;\quad p>3\text{ prime}\Rightarrow p=6k\pm1

Indore 2019 Q14 counts primes up to 25 (9) in set language; Indore 2026: abc = 23(a+b+c) forces one prime to be 23, then (a-1)(b-1) = 24.
Residues of perfect squares

squares end in 0,1,4,5,6,9;x2 mod 3∈{0,1},  mod 4∈{0,1},  mod 6∈{0,1,3,4},  mod 8∈{0,1,4}\text{squares end in }0,1,4,5,6,9;\quad x^{2}\bmod3\in\{0,1\},\ \bmod4\in\{0,1\},\ \bmod6\in\{0,1,3,4\},\ \bmod8\in\{0,1,4\}

Indore 2026: 6m + 2 and 6m + 5 are never squares. Unit digits 2, 3, 7, 8 never occur.
Terminating decimals

pq (lowest terms) terminates  ⟺  q=2a5b;nD terminates  ⟺  Dgcd⁡(n,D)=2a5b\frac pq\text{ (lowest terms) terminates}\iff q=2^{a}5^{b};\quad \frac n{D}\text{ terminates}\iff\frac{D}{\gcd(n,D)}=2^{a}5^{b}

n/140 terminates iff 7 divides n (140 = 2^2 x 5 x 7): 14 values up to 100.
Rational and irrational surd expressions

m∈Q  ⟺  m is a perfect square;(a+b)(a−b)=a−b\sqrt{m}\in\mathbb Q\iff m\text{ is a perfect square};\quad (\sqrt a+\sqrt b)(\sqrt a-\sqrt b)=a-b

Conjugate products and ratios with perfect-square quotients are rational; an unpaired surd makes the value irrational.
Parity rules

odd±odd=even, odd×odd=odd, even×anything=even\text{odd}\pm\text{odd}=\text{even},\ \text{odd}\times\text{odd}=\text{odd},\ \text{even}\times\text{anything}=\text{even}

Statement questions: test with 1, 3, 5 and 2, 4; a single counter-example kills a statement.
Counting perfect squares in a range

#{squares in [L,H]}=⌊H⌋−⌈L⌉+1\#\{\text{squares in }[L,H]\}=\lfloor\sqrt H\rfloor-\lceil\sqrt L\rceil+1

Squares between 1 and 1000 ending in 6: roots end in 4 or 6, roots up to 31: six of them.

In the exam

Shortcuts
  • To test a 3-digit number for primality try 2,3,5,7,11,13,17,19,23,29,312,3,5,7,11,13,17,19,23,29,31 only (up to 1000≈31.6\sqrt{1000}\approx31.6).
  • For 'which can never be a square' questions compute x2 mod qx^{2}\bmod q for x=0,…,q−1x=0,\dots,q-1 once.
  • Least multiplier/divisor for a perfect square: product of the primes with odd exponents.
  • Rational or irrational: simplify first - 50+18−8=62\sqrt{50}+\sqrt{18}-\sqrt8=6\sqrt2 is irrational, (5+3)(5−3)=2(\sqrt5+\sqrt3)(\sqrt5-\sqrt3)=2 is rational.
  • Parity statements: plug in the smallest cases (a=2,b=1a=2,b=1) before reasoning.
~50 s per question at exam speed
When to skip: Never for primality checks and parity statements. A 'maximum of a + b - c over prime triples' item needs the divisibility insight; if it does not come in 30 s, skip.

Before this

What the exams ask here

  • primes in {2..25} via the set P - U Q(k) (Indore 2019 Q14)
  • abc = 23(a + b + c) for primes -> max a + b - c (Indore 2026)
  • 6m + k is never a perfect square for k = 2, 5 (Indore 2026); digits a square cannot end in
  • count n <= 100 with n/140 a terminating decimal
  • odd/even statements (Statement I / II)
  • which expression is rational / irrational
Next sub-topicSimplification and Approximation

Practise this free. Every mistake is saved and comes back until you fix it.

Start free