PYQ Vault

MHT-CET Maths · Permutations and Combinations

Counting Numbers and Geometric Figures — Digits, Divisibility, Points and Polygons

Count numbers by fixing the constrained digit first (no leading zero, last digits for divisibility), and count figures from points by nCr minus the degenerate collinear choices.

Why this matters

11 PYQs at 36% HARD, and the most mechanical page in the chapter. Digit stems test divisibility by 3 (digit sum), by 25 (last two digits) and the leading-zero exclusion; figure stems are nC2 handshakes and diagonals, nC3 triangles with collinear points removed, and the greatest number of intersections of lines and circles. The two HARD outliers — a gcd-with-36 count and triangles using no polygon side — are inclusion–exclusion in disguise.

Concept 1 of 4

Digit Counting: No Leading Zero, and Divisibility by the Last Digits or the Digit Sum

Intuition

Fix the most constrained digit first. A leading position cannot be 00; divisibility by 2525 fixes the last two digits; divisibility by 33 constrains WHICH digits are used, via their sum, not where they go.

Definition

  • No leading zero: five-digit numbers from {0,1,2,4,5}\{0, 1, 2, 4, 5\} without repetition: 5!−4!=965! - 4! = 96 (subtract those starting with 00), or 4×4!4 \times 4! directly.
  • By 3: choose 55 of {0,…,5}\{0,\dots,5\} (sum 1515) with digit-sum a multiple of 33: drop 00 or drop 33. {1,2,3,4,5}\{1,2,3,4,5\}: 120120; {0,1,2,4,5}\{0,1,2,4,5\}: 9696. Total 216216.
  • By 25: last two digits 2525 or 7575 from {1,…,7}\{1,\dots,7\}; first two from the remaining 55: 2×5P2=402 \times {}^5P_2 = 40.
  • Greater than a million from 2,3,0,3,4,2,32,3,0,3,4,2,3: seven digits, so every arrangement not starting with 00: 7!3! 2!−6!3! 2!=420−60=360\dfrac{7!}{3!\,2!} - \dfrac{6!}{3!\,2!} = 420 - 60 = 360.

Digit rules

3∣n  ⟺  3∣digit sum25∣n  ⟺  last two digits∈{00,25,50,75}leading digit≠03 \mid n \iff 3 \mid \text{digit sum} \qquad 25 \mid n \iff \text{last two digits} \in \{00, 25, 50, 75\} \qquad \text{leading digit} \ne 0

Worked example

How many four-digit numbers with distinct digits can be formed from {0,1,2,3,4}\{0, 1, 2, 3, 4\} that are divisible by 55?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 1Permutations and CombinationsMODERATE
If four digit numbers are formed by using the digits 1,2,3,4,5,6,71,2,3,4,5,6,7 without repetition, then out of these numbers, the numbers exactly divisible by 25 are

[Q141 · 22 April Shift II · 2025]

Keeping the leading zero

{0,1,2,4,5}\{0,1,2,4,5\} gives 9696 numbers, not 120120; the total is 216216, and 240240 — option (B) — is the count that forgot the zero.

Concept 2 of 4

Inclusion–Exclusion on Multiples: gcd Conditions

Intuition

'gcd with 3636 is 22' means divisible by 22, not by 44, not by 33. Count the multiples of 22 in range, then remove those divisible by 44 or by 33, adding back the ones divisible by both.

Definition

  • Multiples of dd in [a,b][a, b]: ⌊bd⌋−⌊a−1d⌋\left\lfloor \dfrac{b}{d} \right\rfloor - \left\lfloor \dfrac{a - 1}{d} \right\rfloor. Three-digit multiples of 22: 450450; of 66: 150150; of 44: 225225; of 1212: 7575.
  • gcd⁡(n,36)=2\gcd(n, 36) = 2: 450−(150+225−75)=150450 - (150 + 225 - 75) = 150.
  • The template: ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B|, and the wanted set is the base set minus ∣A∪B∣|A \cup B|.
  • Translate a gcd condition into 'divisible by these, not by those' before counting; 36=22⋅3236 = 2^2\cdot3^2 is the whole content of the stem.

Inclusion–exclusion

∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B|

Worked example

How many two-digit numbers are divisible by neither 22 nor 55?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 2Permutations and CombinationsHARD
Total number of 3-digit numbers, whose g.c.d with 36 is 2 , is

[Q139 · 19 April Shift II · 2025]

Forgetting the add-back

Subtracting the multiples of 44 and of 66 without adding back the multiples of 1212 gives 7575, not 150150. Every two-condition removal has an intersection to restore.

Concept 3 of 4

Handshakes, Diagonals and Triangle Counts: Solve an nC2 or nC3 Equation

Intuition

Every pair of people is one handshake, so nC2=45{}^nC_2 = 45 gives nn. A polygon's diagonals are the pairs of vertices minus the sides: nC2−n=n(n−3)2{}^nC_2 - n = \dfrac{n(n-3)}{2}. Triangles from nn vertices are nC3{}^nC_3, and the step Tn+1−Tn=nC2T_{n+1} - T_n = {}^nC_2.

Definition

  • nC2=45⇒n(n−1)=90⇒n=10{}^nC_2 = 45 \Rightarrow n(n-1) = 90 \Rightarrow n = 10. Factor 90=10×990 = 10 \times 9 rather than solving the quadratic.
  • Diagonals n(n−3)2=54⇒n2−3n−108=0⇒(n−12)(n+9)=0\dfrac{n(n-3)}{2} = 54 \Rightarrow n^2 - 3n - 108 = 0 \Rightarrow (n - 12)(n + 9) = 0, n=12n = 12.
  • Tn=nC3T_n = {}^nC_3, so Tn+1−Tn=nC2T_{n+1} - T_n = {}^nC_2 by Pascal; =21⇒n=7= 21 \Rightarrow n = 7.
  • Intersections: mm lines meet in at most mC2{}^mC_2 points; cc circles in at most 2 cC22\,{}^cC_2; each line–circle pair in at most 22. 88 lines and 44 circles: 28+12+64=10428 + 12 + 64 = 104.

Pairs and triples

handshakes=nC2diagonals=n(n−3)2n+1C3−nC3=nC2\text{handshakes} = {}^nC_2 \qquad \text{diagonals} = \frac{n(n-3)}{2} \qquad {}^{n+1}C_3 - {}^nC_3 = {}^nC_2
triangles = ⁸C₃ − ³C₃ (drop the collinear triple)

Worked example

A polygon has 3535 diagonals. How many sides does it have?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3Permutations and CombinationsEASY
In a regular polygon, the number of diagonals are 54, then the number of sides of the polygon are

[Q114 · 14th May Shift 2 · 2024]

Counting the sides as diagonals

nC2{}^nC_2 includes the nn sides. Setting nC2=54{}^nC_2 = 54 has no integer solution; the diagonals are nC2−n{}^nC_2 - n.

Concept 4 of 4

Triangles and Quadrilaterals From Points: Subtract the Collinear Choices

Intuition

Any 33 of nn points make a triangle unless they are collinear; any 44 make a quadrilateral unless 33 or 44 of them are collinear. Count nCk{}^nC_k and subtract the degenerate picks. For 'triangles using no side of a polygon', subtract the triangles that use one or two sides.

Definition

  • 1111 points, 55 collinear, quadrilaterals: 11C4−5C3 6C1−5C4=330−60−5=265{}^{11}C_4 - {}^5C_3\,{}^6C_1 - {}^5C_4 = 330 - 60 - 5 = 265.
  • Triangles from nn points with mm collinear: nC3−mC3{}^nC_3 - {}^mC_3. Lines: nC2−mC2+1{}^nC_2 - {}^mC_2 + 1.
  • Regular 2020-gon, triangles using no side: total 20C3=1140{}^{20}C_3 = 1140; using two sides (three consecutive vertices) 2020; using exactly one side: 2020 sides ×\times 1616 non-adjacent third vertices =320= 320; none: 1140−20−320=8001140 - 20 - 320 = 800.
  • General nn-gon, no side: nC3−n−n(n−4)=n(n−4)(n−5)6{}^nC_3 - n - n(n - 4) = \dfrac{n(n-4)(n-5)}{6}; check n=20n = 20: 20⋅16⋅156=800\dfrac{20 \cdot 16 \cdot 15}{6} = 800.

Degenerate subtraction

△=nC3−mC3no-side triangles of an n-gon=n(n−4)(n−5)6\triangle = {}^nC_3 - {}^mC_3 \qquad \text{no-side triangles of an } n\text{-gon} = \frac{n(n-4)(n-5)}{6}

Worked example

There are 1010 points in a plane, of which 44 are collinear. How many triangles have their vertices among these points?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 4Permutations and CombinationsMODERATE
There are 11 points in a plane of which 5 points are collinear. Then the total number of distinct quadrilaterals with vertices at these points is

[Q137 · 25 April Shift II · 2025]

Subtracting only the all-collinear picks

For quadrilaterals, 33 collinear points plus any fourth is ALSO degenerate. 330−5=325330 - 5 = 325 is option (D); the answer is 265265.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

Watch out for (4)

Drill every past-year question on this subtopic

11 questions from the bank — paginated, with cart and Word-export support.

Related notes