Question

A graph is self-complementary if it is isomorphic to its complement. For all self-complementary graphs on nn vertices, nn is

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2015 answer key

Solution

Use the edge-counting argument for self-complementary graphs.

A graph G=(V,E)G = (V, E) on nn vertices is self-complementary if G≅G‾G \cong \overline{G}.

The complete graph KnK_n has total edges:

∣E(Kn)∣=(n2)=n(n−1)2.|E(K_n)| = \binom{n}{2} = \frac{n(n - 1)}{2}.

Because GG and G‾\overline{G} partition the edges of KnK_n and have identical edge counts due to isomorphism:

∣E(G)∣+∣E(G‾)∣=2∣E(G)∣=n(n−1)2  ⟹  ∣E(G)∣=n(n−1)4.|E(G)| + |E(\overline{G})| = 2 |E(G)| = \frac{n(n - 1)}{2} \implies |E(G)| = \frac{n(n - 1)}{4}.

Since the number of edges ∣E(G)∣|E(G)| must be an integer, n(n−1)n(n - 1) must be divisible by 4:

n(n−1)≡0(mod4).n(n - 1) \equiv 0 \pmod 4.
  • If n≡0(mod4)n \equiv 0 \pmod 4, nn is a multiple of 4.
  • If n≡1(mod4)n \equiv 1 \pmod 4, n−1n - 1 is a multiple of 4.
  • If n≡2n \equiv 2 or 3(mod4)3 \pmod 4, n(n−1)≡2≢0(mod4)n(n - 1) \equiv 2 \not\equiv 0 \pmod 4.

Hence, n≡0(mod4)n \equiv 0 \pmod 4 or n≡1(mod4)n \equiv 1 \pmod 4 (option D).

Final answer

D

Common trap

Assuming nn must simply be even or a multiple of 4, overlooking odd values such as n=5n = 5 (which forms a self-complementary 5-cycle C5C_5).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 2
Question
38 of 65, printed as CS Q.28
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.