Skip to content

Lesson 4 of 6 · Types of Numbers

What Can a Square End In?

Number System · for IPMAT Indore, IPMAT Rohtak and JIPMAT

Video lesson: What Can a Square End In?

Sign in to watch · 5 min video

The exam method

  1. 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.

Worked examples

Example 2Sitter

Squares between 11 and 10001000 with unit digit 66

Formulas you need

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.
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.

How Types of Numbers is asked

  • 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

Picked from the Types of Numbers note for this micro-concept automatically. The whole note: Types of Numbers.

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

Start free