Menu Close

Groups and subgroups: UPSC Maths Optional PYQ Solutions (2008–2025)

All 17 questions UPSC has asked on groups and subgroups in the Mathematics Optional (Paper II, Algebra) from 2008 to 2025, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Algebra topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the answer was worked out again independently with computer algebra (SymPy).
  • ✓ Proof checked step by step for “prove that” questions, every step was checked against the definitions.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2025 · 1a 2025 · 1b 2021 · 4a 2020 · 2a 2019 · 1a 2018 · 3a 2016 · 2b 2015 · 1a 2013 · 1b 2012 · 1a 2011 · 1a 2011 · 1e(i) 2011 · 1e(ii) 2011 · 2a 2011 · 4a 2010 · 1a 2008 · 1a

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Let H and K be two subgroups of a group G such that o(H)>o(G) and o(K)>o(G). Show that H∩K≠{e}, where e is the identity element. Here o(H), o(K) and o(G) denote the order of H, K and G respectively.

2025 · Paper II · Q1a · 10 marks

Solution

Use the product formula for subgroups: |HK|=o(H)o(K)o(H∩K).|HK|=\frac{o(H)\,o(K)}{o(H\cap K)} . HKHK is a subset of GG, so |HK|≤o(G)|HK|\le o(G).

Suppose H∩K={e}H\cap K=\{e\}. Then |HK|=o(H)o(K)>o(G)⋅o(G)=o(G),|HK|=o(H)\,o(K)>\sqrt{o(G)}\cdot\sqrt{o(G)}=o(G), which is impossible. Hence H∩K≠{e}H\cap K\neq\{e\}. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

Let G={e,x,x2,y,yx,yx2} be a non-Abelian group with o(x)=3 and o(y)=2. Show that xy=yx2 (where e is the identity element of G and o(x), o(y) denote the order of the elements x, y respectively).

2025 · Paper II · Q1b · 10 marks

Solution

Since xy∈Gxy\in G, it is one of e,x,x2,y,yx,yx2e,x,x^2,y,yx,yx^2. We rule out all but one.

  • xy=exy=e gives y=x−1=x2y=x^{-1}=x^2, but o(y)=2≠3o(y)=2\ne3. ✗
  • xy=xxy=x gives y=ey=e; xy=x2xy=x^2 gives y=xy=x. ✗ (both contradict o(y)=2o(y)=2)
  • xy=yxy=y gives x=ex=e. ✗
  • xy=yxxy=yx would make xx and yy commute. Since GG is generated by xx and yy, GG would be abelian. ✗

The only possibility left is xy=yx2xy=yx^2. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step; also checked by computer on the dihedral group of order 6.

↑ Back to the question list

Show that there are infinitely many subgroups of the additive group ℚ of rational numbers.

2021 · Paper II · Q4a · 15 marks

Solution

For each positive integer nn let Hn={mn:m∈ℤ}=1nℤ.H_n=\left\{\frac{m}{n}:m\in\mathbb Z\right\}=\frac1n\mathbb Z . Subgroup. 0∈Hn0\in H_n, and mn−m′n=m−m′n∈Hn\frac mn-\frac{m'}n=\frac{m-m'}{n}\in H_n, so HnH_n is a subgroup of (ℚ,+)(\mathbb Q,+).

All different. If pp and qq are distinct primes, then 1p∈Hp\frac1p\in H_p but 1p∉Hq\frac1p\notin H_q (otherwise 1p=mq\frac1p=\frac mq, i.e. q=mpq=mp, which is impossible). So Hp≠HqH_p\neq H_q.

There are infinitely many primes, so the HpH_p give infinitely many distinct subgroups. (Even simpler: nℤn\mathbb Z, n=1,2,3,…n=1,2,3,\dots, are infinitely many distinct subgroups.) ◼\blacksquare

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

Let G be a finite cyclic group of order n. Then prove that G has ϕ(n) generators (where ϕ is Euler’s ϕ-function).

2020 · Paper II · Q2a · 15 marks

Solution

Let G=⟨a⟩G=\langle a\rangle with o(a)=no(a)=n, so G={e,a,a2,…,an−1}G=\{e,a,a^2,\dots,a^{n-1}\}.

Claim. aka^k generates GG if and only if gcd(k,n)=1\gcd(k,n)=1.

  • If gcd(k,n)=1\gcd(k,n)=1, there are integers u,vu,v with uk+vn=1uk+vn=1. Then a=auk+vn=(ak)u(an)v=(ak)ua=a^{uk+vn}=(a^k)^u(a^n)^v=(a^k)^u, so a∈⟨ak⟩a\in\langle a^k\rangle and ⟨ak⟩=G\langle a^k\rangle=G.
  • If d=gcd(k,n)>1d=\gcd(k,n)>1, then (ak)n/d=(an)k/d=e(a^k)^{n/d}=(a^n)^{k/d}=e, so o(ak)≤n/d<no(a^k)\le n/d<n and aka^k cannot generate GG.

So the generators are exactly aka^k with 1≤k≤n1\le k\le n and gcd(k,n)=1\gcd(k,n)=1. Their number is ϕ(n)\phi(n) by the definition of Euler’s function. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step; checked by computer for n≤30n\le 30.

↑ Back to the question list

Let G be a finite group, H and K subgroups of G such that K⊂H. Show that (G:K)=(G:H)(H:K).

2019 · Paper II · Q1a · 10 marks

Solution

For a finite group, Lagrange’s theorem gives the index as a quotient of orders: (G:K)=o(G)o(K),(G:H)=o(G)o(H),(H:K)=o(H)o(K).(G:K)=\frac{o(G)}{o(K)},\qquad (G:H)=\frac{o(G)}{o(H)},\qquad (H:K)=\frac{o(H)}{o(K)}. Multiplying, (G:H)(H:K)=o(G)o(H)⋅o(H)o(K)=o(G)o(K)=(G:K).◼(G:H)(H:K)=\frac{o(G)}{o(H)}\cdot\frac{o(H)}{o(K)}=\frac{o(G)}{o(K)}=(G:K). \qquad\blacksquare

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

Find all the proper subgroups of the multiplicative group of the field (ℤ13,+13,×13), where +13 and ×13 represent addition modulo 13 and multiplication modulo 13 respectively.

2018 · Paper II · Q3a · 20 marks

Solution

The multiplicative group is ℤ13*={1,2,…,12}\mathbb Z_{13}^{*}=\{1,2,\dots,12\}, of order 12. It is cyclic, generated by 22: 21,…,212≡2,4,8,3,6,12,11,9,5,10,7,1.2^1,\dots,2^{12}\equiv 2,4,8,3,6,12,11,9,5,10,7,1 . A cyclic group of order 12 has exactly one subgroup of each order dividing 12, namely ⟨212/d⟩\langle 2^{12/d}\rangle of order dd.

Order Generator Subgroup
1 11 {1}\{1\}
2 26=122^6=12 {1,12}\{1,12\}
3 24=32^4=3 {1,3,9}\{1,3,9\}
4 23=82^3=8 {1,8,12,5}\{1,8,12,5\}
6 22=42^2=4 {1,4,3,12,9,10}\{1,4,3,12,9,10\}

These are all the proper subgroups (the trivial subgroup {1}\{1\} is often excluded, leaving four non-trivial proper subgroups). The order-12 subgroup is the whole group.

✓ Checked by computer We checked by computer: the cyclic subgroups of ℤ13*\mathbb Z_{13}^{*} are exactly the six listed.

↑ Back to the question list

Let p be a prime number and ℤp denote the additive group of integers modulo p. Show that every non-zero element of ℤp generates ℤp.

2016 · Paper II · Q2b · 15 marks

Solution

ℤp\mathbb Z_p has order pp. Let a≠0a\neq0 in ℤp\mathbb Z_p, and let H=⟨a⟩H=\langle a\rangle.

By Lagrange’s theorem o(H)o(H) divides pp, so o(H)=1o(H)=1 or pp. Since a≠0a\neq0, HH contains the non-identity element aa, so o(H)≠1o(H)\neq1. Hence o(H)=po(H)=p and H=ℤpH=\mathbb Z_p.

So every non-zero element generates ℤp\mathbb Z_p. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

(i) How many generators are there of the cyclic group G of order 8? Explain. (ii) Taking a group {e,a,b,c} of order 4, where e is the identity, construct composition tables showing that one is cyclic while the other is not.

2015 · Paper II · Q1a · 10 marks

Solution

(i) A cyclic group of order nn has ϕ(n)\phi(n) generators: aka^k is a generator exactly when gcd(k,n)=1\gcd(k,n)=1. For n=8n=8 these are k=1,3,5,7k=1,3,5,7, so there are ϕ(8)=4\phi(8)=4 generators: a,a3,a5,a7a,a^3,a^5,a^7.

(ii) Cyclic group (with aa of order 4, b=a2b=a^2, c=a3c=a^3):

⋅\cdot ee aa bb cc
ee ee aa bb cc
aa aa bb cc ee
bb bb cc ee aa
cc cc ee aa bb

Here aa generates the group, so it is cyclic.

Non-cyclic group (Klein four-group):

⋅\cdot ee aa bb cc
ee ee aa bb cc
aa aa ee cc bb
bb bb cc ee aa
cc cc bb aa ee

Every non-identity element has order 2, so no element has order 4 and this group is not cyclic.

✓ Checked by computer We checked by computer: ϕ(8)=4\phi(8)=4 generators; the two tables are ℤ4\mathbb Z_4 and the Klein group.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Give an example of an infinite group in which every element has finite order.

2013 · Paper II · Q1b · 10 marks

Solution

Example 1. ℚ/ℤ\mathbb Q/\mathbb Z under addition. It is infinite (the cosets 1n+ℤ\frac1n+\mathbb Z are distinct for n≥2n\ge2). Every element mn+ℤ\frac mn+\mathbb Z has finite order, since n(mn+ℤ)=m+ℤ=ℤn\left(\frac mn+\mathbb Z\right)=m+\mathbb Z=\mathbb Z.

Example 2. The group of all complex roots of unity, {z∈ℂ:zn=1 for some n≥1}\{z\in\mathbb C: z^n=1 \text{ for some } n\ge1\}, under multiplication: it is infinite, and each element zz satisfies zn=1z^n=1 for some nn.

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

How many elements of order 2 are there in the group of order 16 generated by a and b such that the order of a is 8, the order of b is 2 and bab−1=a−1.

2012 · Paper II · Q1a · 12 marks

Solution

The group is the dihedral group D8D_8 of order 16. Every element can be written uniquely as aia^i or aiba^ib (0≤i≤70\le i\le7), and ba=a−1bba=a^{-1}b.

  • Rotations aia^i. aia^i has order 2 exactly when a2i=ea^{2i}=e with ai≠ea^i\ne e, i.e. i=4i=4. One element: a4a^4.
  • Reflections aiba^ib. (aib)2=ai(baib−1)b2=aia−i=e(a^ib)^2=a^i(ba^ib^{-1})b^2=a^ia^{-i}=e. So all 8 elements aiba^ib have order 2.

Total: 1+8=91+8=9 elements of order 2.

✓ Checked by computer We checked by computer, listing all 16 elements: exactly 9 have order 2.

↑ Back to the question list

Show that the set G={f1,f2,f3,f4,f5,f6} of six transformations on the set of Complex numbers defined by f1(z)=z,f2(z)=1−z f3(z)=z(z−1),f4(z)=1z f5(z)=1(1−z)andf6(z)=(z−1)z is a non-abelian group of order 6 w.r.t. composition of mappings.

2011 · Paper II · Q1a · 12 marks

Solution

Composition of maps is associative, and f1f_1 is the identity. We check closure and inverses.

Some compositions ((f∘g)(z)=f(g(z))(f\circ g)(z)=f(g(z))):

  • f2∘f3(z)=1−zz−1=−1z−1=11−z=f5(z)f_2\circ f_3(z)=1-\dfrac{z}{z-1}=\dfrac{-1}{z-1}=\dfrac{1}{1-z}=f_5(z)
  • f3∘f2(z)=1−z(1−z)−1=z−1z=f6(z)f_3\circ f_2(z)=\dfrac{1-z}{(1-z)-1}=\dfrac{z-1}{z}=f_6(z)
  • f2∘f2=f3∘f3=f4∘f4=f1f_2\circ f_2=f_3\circ f_3=f_4\circ f_4=f_1, and f5∘f6=f6∘f5=f1f_5\circ f_6=f_6\circ f_5=f_1

Full table (row ∘\circ column):

∘\circ f1f_1 f2f_2 f3f_3 f4f_4 f5f_5 f6f_6
f1f_1 f1f_1 f2f_2 f3f_3 f4f_4 f5f_5 f6f_6
f2f_2 f2f_2 f1f_1 f5f_5 f6f_6 f3f_3 f4f_4
f3f_3 f3f_3 f6f_6 f1f_1 f5f_5 f4f_4 f2f_2
f4f_4 f4f_4 f5f_5 f6f_6 f1f_1 f2f_2 f3f_3
f5f_5 f5f_5 f4f_4 f2f_2 f3f_3 f6f_6 f1f_1
f6f_6 f6f_6 f3f_3 f4f_4 f2f_2 f1f_1 f5f_5
  • Closure: every entry is one of the six maps.
  • Identity: f1f_1. Inverses: f2,f3,f4f_2,f_3,f_4 are self-inverse; f5−1=f6f_5^{-1}=f_6.

So GG is a group of order 6. It is non-abelian because f2∘f3=f5≠f6=f3∘f2f_2\circ f_3=f_5\neq f_6=f_3\circ f_2. ◼\blacksquare

✓ Checked by computer We checked by computer: the composition table closes, and f2∘f3≠f3∘f2f_2\circ f_3\ne f_3\circ f_2.

↑ Back to the question list

Prove that a group of Prime order is abelian.

2011 · Paper II · Q1e(i) · 6 marks

Solution

Let o(G)=po(G)=p, a prime. Take a∈Ga\in G, a≠ea\ne e. By Lagrange’s theorem o(⟨a⟩)o(\langle a\rangle) divides pp, and it is not 1, so o(⟨a⟩)=po(\langle a\rangle)=p and ⟨a⟩=G\langle a\rangle=G.

So GG is cyclic, and every cyclic group is abelian (aiaj=ai+j=ajaia^ia^j=a^{i+j}=a^ja^i). ◼\blacksquare

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

How many generators are there of the cyclic group (G,⋅) of order 8 ?

2011 · Paper II · Q1e(ii) · 6 marks

Solution

If G=⟨a⟩G=\langle a\rangle has order 8, then aka^k generates GG exactly when gcd(k,8)=1\gcd(k,8)=1, i.e. k=1,3,5,7k=1,3,5,7.

So there are ϕ(8)=4\phi(8)=4 generators: aa, a3a^3, a5a^5, a7a^7.

✓ Checked by computer We checked by computer: ϕ(8)=4\phi(8)=4.

↑ Back to the question list

Give an example of a group G in which every proper subgroup is cyclic but the group itself is not cyclic.

2011 · Paper II · Q2a · 15 marks

Solution

Example: the Klein four-group V={e,a,b,c}V=\{e,a,b,c\} with a2=b2=c2=ea^2=b^2=c^2=e and ab=cab=c.

  • Its proper subgroups are {e}\{e\}, {e,a}\{e,a\}, {e,b}\{e,b\}, {e,c}\{e,c\}, each cyclic.
  • VV itself is not cyclic: every non-identity element has order 2, so no element generates all four elements.

(Another example is the quaternion group Q8Q_8: its proper subgroups have orders 1, 2 and 4 and are all cyclic, but Q8Q_8 is not.)

✓ Checked by computer We checked by computer: every proper subgroup of the Klein group (and of Q8Q_8) is cyclic.

↑ Back to the question list

Let a and b be elements of a group, with a2=e, b6=e and ab=b4a. Find the order of ab, and express its inverse in each of the forms ambn and bman.

2011 · Paper II · Q4a · 20 marks

Solution

The relations force b3=eb^3=e. From ab=b4aab=b^4a we get aba−1=b4aba^{-1}=b^4. Conjugating again by aa (and a2=ea^2=e): b=a2ba−2=a(b4)a−1=(aba−1)4=b16=b4(since b6=e).b=a^2ba^{-2}=a(b^4)a^{-1}=(aba^{-1})^4=b^{16}=b^4\quad(\text{since }b^6=e). So b3=eb^3=e. Then b4=bb^4=b, and the relation becomes ab=baab=ba: aa and bb commute.

Order of abab. Since they commute, (ab)k=akbk(ab)^k=a^kb^k. Assume a≠ea\ne e and b≠eb\ne e (so o(a)=2o(a)=2, o(b)=3o(b)=3). Then a∉⟨b⟩a\notin\langle b\rangle (orders differ), so (ab)k=e(ab)^k=e needs ak=ea^k=e and bk=eb^k=e, i.e. 2∣k2\mid k and 3∣k3\mid k. Hence o(ab)=6.o(ab)=6 .

Inverse. (ab)−1=b−1a−1=b2a(form bman),(ab)−1=ab2(form ambn),(ab)^{-1}=b^{-1}a^{-1}=b^{2}a\quad(\text{form }b^ma^n),\qquad (ab)^{-1}=ab^{2}\quad(\text{form }a^mb^n), using a−1=aa^{-1}=a, b−1=b2b^{-1}=b^2 and ab=baab=ba. (Equivalently b5ab^5a and ab5ab^5.)

✓ Proof checked step by step Proof checked step by step; the relations were checked by computer.

↑ Back to the question list

Let G=ℝ−{−1} be the set of all real numbers omitting −1. Define the binary relation * on G by a*b=a+b+ab. Show (G,*) is a group and it is abelian.

2010 · Paper II · Q1a · 12 marks

Solution

Closure. For a,b≠−1a,b\ne-1: 1+a*b=1+a+b+ab=(1+a)(1+b)≠01+a*b=1+a+b+ab=(1+a)(1+b)\neq0, so a*b≠−1a*b\neq-1 and a*b∈Ga*b\in G.

Associativity. Using 1+a*b=(1+a)(1+b)1+a*b=(1+a)(1+b): 1+(a*b)*c=(1+a)(1+b)(1+c)=1+a*(b*c),1+(a*b)*c=(1+a)(1+b)(1+c)=1+a*(b*c), so (a*b)*c=a*(b*c)(a*b)*c=a*(b*c).

Identity. a*0=a+0+0=aa*0=a+0+0=a, so 00 is the identity.

Inverse. We need a*b=0a*b=0: a+b+ab=0⇒b=−a1+aa+b+ab=0\Rightarrow b=\dfrac{-a}{1+a}, which exists since a≠−1a\ne-1, and b≠−1b\neq-1 (else −a=−1−a-a=-1-a, impossible). So every element has an inverse.

Abelian. a*b=a+b+ab=b+a+ba=b*aa*b=a+b+ab=b+a+ba=b*a.

Hence (G,*)(G,*) is an abelian group. ◼\blacksquare

(In fact a↦1+aa\mapsto 1+a is an isomorphism from (G,*)(G,*) onto (ℝ\{0},×)(\mathbb R\setminus\{0\},\times).)

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

Let R0 be the set of all real numbers except zero. Define a binary operation * on R0 as : a*b=|a|b where |a| denotes absolute value of a. Does (R0,*) form a group? Examine.

2008 · Paper II · Q1a · 12 marks

Solution

Closure holds: |a|b≠0|a|b\neq0 for a,b≠0a,b\neq0. Associativity holds: (a*b)*c=||a|b|c=|a||b|c,a*(b*c)=|a|(|b|c)=|a||b|c.(a*b)*c=\big||a|b\big|\,c=|a||b|c,\qquad a*(b*c)=|a|\,(|b|c)=|a||b|c .

Identity. 1*b=|1|b=b1*b=|1|b=b for all bb, so 11 is a left identity. But it is not a two-sided identity: (−2)*1=2≠−2(-2)*1=2\ne-2.

In fact there is no two-sided identity ee: a*e=aa*e=a needs |a|e=a|a|e=a, i.e. e=a|a|=±1e=\dfrac{a}{|a|}=\pm1 depending on the sign of aa, so no single ee works for both positive and negative aa.

Hence (R0,*)(R_0,*) is not a group: it has closure, associativity and a left identity, but no two-sided identity.

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

More on Algebra

Questions: UPSC Civil Services (Main) Examination, Mathematics Paper II, 2008–2025. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted