• S
    SwaseekhGATE Preparation
General
  • Dashboard
  • Syllabus
  • Questions
  • Aptitude
  • Mock Tests
  • TCS NQT 2026
Account
  • Pricing
  • Contact
  1. GATE CS
  2. PYQs
  3. Discrete Mathematics

A graph which has the same number of edges as its complement must have number of vertices congruent to ________ or ________ modulo 4.

GATE 1990 · Discrete Mathematics · Graph Connectivity · medium

Answer: n must be congruent to 0 or 1 modulo 4.

  1. Derive the equal-split condition: edges(G)=edges(G-bar) requires 2*edges(G)=C(n,2)=n(n-1)/2, so edges(G)=n(n-1)/4 must be a non-negative integer. This requires 4 | n(n-1).
  2. Check all residues mod 4: n=0 mod 4: n=4k => 4k*(4k-1) divisible by 4. Valid. n=1 mod 4: n-1=4k => (4k+1)*4k divisible by 4. Valid. n=2 mod 4: n(n-1)=(4k+2)(4k+1)=2*(2k+1)(4k+1); only one factor of 2, not div by 4. Invalid. n=3 mod 4: n(n-1)=(4k+3)(4k+2)=2*(4k+3)(2k+1); only one factor of 2. Invalid.