Menu Close

Real number system and sequences: UPSC Maths Optional PYQ Solutions (2008–2026)

All 13 questions UPSC has asked on real number system and sequences in the Mathematics Optional (Paper II, Real Analysis) from 2008 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Real Analysis 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):

2026 · 2b 2025 · 2a 2024 · 2a 2023 · 4a 2020 · 1c 2017 · 1a 2016 · 1c 2013 · 2d 2010 · 1c 2010 · 1d 2009 · 3d 2008 · 1c(ii) 2008 · 3d(i)

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

Prove that the sequence (un) defined by the recursion formula un+1=7+un, u1=7, converges to the positive root of x2−x−7=0.

2026 · Paper II · Q2b · 15 marks

Solution

Let L=1+292L=\dfrac{1+\sqrt{29}}{2}, the positive root of x2−x−7=0x^2-x-7=0, so L2=L+7L^2=L+7 and L≈3.19L\approx3.19.

Bounded above by LL. u1=7<Lu_1=\sqrt7<L (since 7<L2=L+77<L^2=L+7). If un<Lu_n<L, then un+1=7+un<7+L=L2=L.u_{n+1}=\sqrt{7+u_n}<\sqrt{7+L}=\sqrt{L^2}=L .

Increasing. un+12−un2=7+un−un2=−(un2−un−7)u_{n+1}^2-u_n^2=7+u_n-u_n^2=-(u_n^2-u_n-7). For 0<un<L0<u_n<L the quadratic un2−un−7u_n^2-u_n-7 is negative (it is negative between its roots), so un+12>un2u_{n+1}^2>u_n^2, i.e. un+1>unu_{n+1}>u_n.

A bounded increasing sequence converges, say un→ℓu_n\to\ell, with 7≤ℓ≤L\sqrt7\le\ell\le L. Letting n→∞n\to\infty in un+12=7+unu_{n+1}^2=7+u_n gives ℓ2=7+ℓ\ell^2=7+\ell, so ℓ\ell is a root of x2−x−7=0x^2-x-7=0. As ℓ>0\ell>0, ℓ=L\ell=L: un→1+292.◼u_n\to\frac{1+\sqrt{29}}{2}. \qquad\blacksquare

✓ Checked by computer We checked by computer: the iterates settle at 3.19258…=1+2923.19258\ldots=\frac{1+\sqrt{29}}{2}.

↑ Back to the question list

Define Cauchy sequence and prove that every convergent sequence of real numbers is a Cauchy sequence. What is the importance of Cauchy condition?

2025 · Paper II · Q2a · 15 marks

Solution

Definition. A sequence (an)(a_n) is a Cauchy sequence if for every ε>0\varepsilon>0 there is NN such that |am−an|<εfor all m,n≥N.|a_m-a_n|<\varepsilon\quad\text{for all } m,n\ge N .

Every convergent sequence is Cauchy. Let an→aa_n\to a and ε>0\varepsilon>0. Choose NN with |an−a|<ε/2|a_n-a|<\varepsilon/2 for all n≥Nn\ge N. Then for m,n≥Nm,n\ge N, |am−an|≤|am−a|+|a−an|<ε2+ε2=ε.|a_m-a_n|\le|a_m-a|+|a-a_n|<\frac{\varepsilon}{2}+\frac{\varepsilon}{2}=\varepsilon . So (an)(a_n) is Cauchy. ◼\blacksquare

Importance of the Cauchy condition.

  • In ℝ\mathbb R the converse also holds (completeness): a sequence converges if and only if it is Cauchy. This is Cauchy’s general principle of convergence.
  • The condition involves only the terms of the sequence, not the limit. So we can prove convergence without knowing (or guessing) the limit – for example for ∑1/n!\sum 1/n! or for series in general.
  • It is the basis of tests for series (∑an\sum a_n converges iff |∑k=n+1mak|\left|\sum_{k=n+1}^m a_k\right| is small for large m,nm,n) and of uniform convergence (the Cauchy criterion for fnf_n).
  • It distinguishes complete spaces: in ℚ\mathbb Q the decimal approximations of 2\sqrt2 are Cauchy but have no limit in ℚ\mathbb Q.

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

↑ Back to the question list

Using Cauchy’s general principle of convergence, examine the convergence of the sequence ⟨fn⟩, where fn=1+11!+12!+…+1n!.

2024 · Paper II · Q2a · 15 marks

Solution

Cauchy’s general principle: ⟨fn⟩\langle f_n\rangle converges iff for every ε>0\varepsilon>0 there is NN with |fm−fn|<ε|f_m-f_n|<\varepsilon for all m>n≥Nm>n\ge N.

For m>n≥1m>n\ge1, |fm−fn|=1(n+1)!+1(n+2)!+⋯+1m!.|f_m-f_n|=\frac{1}{(n+1)!}+\frac{1}{(n+2)!}+\cdots+\frac{1}{m!}. Since k!≥2k−1k!\ge 2^{k-1} for k≥1k\ge1, |fm−fn|≤12n+12n+1+⋯+12m−1<12n(1+12+14+⋯)=12n−1.|f_m-f_n|\le\frac{1}{2^{n}}+\frac{1}{2^{n+1}}+\cdots+\frac{1}{2^{m-1}}<\frac{1}{2^{n}}\left(1+\frac12+\frac14+\cdots\right)=\frac{1}{2^{n-1}} .

Given ε>0\varepsilon>0, choose NN with 12N−1<ε\dfrac{1}{2^{N-1}}<\varepsilon. Then |fm−fn|<ε|f_m-f_n|<\varepsilon for all m>n≥Nm>n\ge N. So ⟨fn⟩\langle f_n\rangle is a Cauchy sequence and therefore converges. ◼\blacksquare

(Its limit is e=2.71828…e=2.71828\ldots, and 2≤fn<32\le f_n<3 for all nn.)

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

↑ Back to the question list

Prove that the oscillation of a real-valued bounded function f defined on [a,b] is the supremum of the set {|f(x1)−f(x2)|:x1,x2∈[a,b]}.

2023 · Paper II · Q4a · 15 marks

Solution

Let M=sup[a,b]fM=\sup_{[a,b]}f and m=inf[a,b]fm=\inf_{[a,b]}f (finite, as ff is bounded). The oscillation of ff on [a,b][a,b] is ω=M−m\omega=M-m. Let S={|f(x1)−f(x2)|:x1,x2∈[a,b]}.S=\{|f(x_1)-f(x_2)|:\ x_1,x_2\in[a,b]\}. We show supS=M−m\sup S=M-m.

M−mM-m is an upper bound of SS. For any x1,x2x_1,x_2: m≤f(x1)≤Mm\le f(x_1)\le M and m≤f(x2)≤Mm\le f(x_2)\le M, so −(M−m)≤f(x1)−f(x2)≤M−m-(M-m)\le f(x_1)-f(x_2)\le M-m, i.e. |f(x1)−f(x2)|≤M−m|f(x_1)-f(x_2)|\le M-m.

It is the least upper bound. Let ε>0\varepsilon>0. By the definitions of sup and inf there are x1,x2∈[a,b]x_1,x_2\in[a,b] with f(x1)>M−ε2,f(x2)<m+ε2.f(x_1)>M-\frac{\varepsilon}{2},\qquad f(x_2)<m+\frac{\varepsilon}{2}. Then |f(x1)−f(x2)|≥f(x1)−f(x2)>(M−m)−ε|f(x_1)-f(x_2)|\ge f(x_1)-f(x_2)>(M-m)-\varepsilon. So no number smaller than M−mM-m is an upper bound of SS.

Hence supS=M−m\sup S=M-m, the oscillation of ff. ◼\blacksquare

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

↑ Back to the question list

Prove that the sequence (an) satisfying the condition |an+1−an|≤α|an−an−1|, 0<α<1 for all natural numbers n≥2, is a Cauchy sequence.

2020 · Paper II · Q1c · 10 marks

Solution

Let d=|a2−a1|d=|a_2-a_1|. Applying the condition repeatedly, |an+1−an|≤α|an−an−1|≤α2|an−1−an−2|≤⋯≤αn−1d.|a_{n+1}-a_n|\le\alpha|a_n-a_{n-1}|\le\alpha^2|a_{n-1}-a_{n-2}|\le\cdots\le\alpha^{n-1}d .

For m>nm>n, by the triangle inequality, |am−an|≤∑k=nm−1|ak+1−ak|≤d(αn−1+αn+⋯+αm−2)<dαn−11−α.|a_m-a_n|\le\sum_{k=n}^{m-1}|a_{k+1}-a_k|\le d\left(\alpha^{n-1}+\alpha^{n}+\cdots+\alpha^{m-2}\right)<\frac{d\,\alpha^{n-1}}{1-\alpha}.

Since 0<α<10<\alpha<1, αn−1→0\alpha^{n-1}\to0. Given ε>0\varepsilon>0, choose NN with dαN−11−α<ε\dfrac{d\,\alpha^{N-1}}{1-\alpha}<\varepsilon. Then |am−an|<ε|a_m-a_n|<\varepsilon for all m>n≥Nm>n\ge N. So (an)(a_n) is a Cauchy sequence. ◼\blacksquare

(Such a sequence is called contractive; by completeness it converges.)

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

↑ Back to the question list

Let x1=2 and xn+1=xn+20, n=1,2,3,…. Show that the sequence x1,x2,x3,… is convergent.

2017 · Paper II · Q1a · 10 marks

Solution

Bounded above by 5. x1=2<5x_1=2<5. If xn<5x_n<5, then xn+1=xn+20<25=5x_{n+1}=\sqrt{x_n+20}<\sqrt{25}=5.

Increasing. xn+12−xn2=xn+20−xn2=(5−xn)(xn+4)>0x_{n+1}^2-x_n^2=x_n+20-x_n^2=(5-x_n)(x_n+4)>0 for 0<xn<50<x_n<5. So xn+1>xnx_{n+1}>x_n.

A bounded increasing sequence converges. If xn→ℓx_n\to\ell, then ℓ2=ℓ+20\ell^2=\ell+20, i.e. (ℓ−5)(ℓ+4)=0(\ell-5)(\ell+4)=0; since ℓ≥2\ell\ge2, ℓ=5\ell=5. So the sequence is convergent, with limit 5. ◼\blacksquare

✓ Checked by computer We checked by computer: the iterates settle at 5.

↑ 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

Two sequences {xn} and {yn} are defined inductively by the following : x1=12,y1=1 and xn=xn−1yn−1,n=2,3,4,… 1yn=12(1xn+1yn−1),n=2,3,4,… Prove that xn−1<xn<yn<yn−1,n=2,3,4,… and deduce that both the sequences converge to the same limit l, where 12<l<1.

2016 · Paper II · Q1c · 10 marks

Solution

Note: xnx_n is the geometric mean of xn−1,yn−1x_{n-1},y_{n-1} and yny_n is the harmonic mean of xn,yn−1x_n,y_{n-1}. All terms are positive. We use: for 0<p<q0<p<q, both means lie strictly between pp and qq.

Claim: xn−1<xn<yn<yn−1x_{n-1}<x_n<y_n<y_{n-1} for n≥2n\ge2. We prove it by induction, together with xn<ynx_n<y_n.

  • x1=12<1=y1x_1=\tfrac12<1=y_1.
  • Suppose xn−1<yn−1x_{n-1}<y_{n-1}. Then xn=xn−1yn−1x_n=\sqrt{x_{n-1}y_{n-1}} lies strictly between them: xn−1<xn<yn−1x_{n-1}<x_n<y_{n-1}.
  • Now xn<yn−1x_n<y_{n-1}, and yny_n is the harmonic mean of xnx_n and yn−1y_{n-1}, so xn<yn<yn−1x_n<y_n<y_{n-1}.

Together: xn−1<xn<yn<yn−1x_{n-1}<x_n<y_n<y_{n-1}, and in particular xn<ynx_n<y_n, which continues the induction. ◼\blacksquare

Convergence. (xn)(x_n) is increasing and bounded above by y1=1y_1=1; (yn)(y_n) is decreasing and bounded below by x1=12x_1=\tfrac12. So xn→lx_n\to l and yn→l′y_n\to l', with l≤l′l\le l'. Letting n→∞n\to\infty in xn2=xn−1yn−1x_n^2=x_{n-1}y_{n-1} gives l2=ll′l^2=l\,l', and l≥12>0l\ge\tfrac12>0, so l=l′l=l'. Both sequences converge to the same limit ll.

Bounds. For every n≥2n\ge2: 12=x1<x2≤l≤y2<y1=1\tfrac12=x_1<x_2\le l\le y_2<y_1=1. Hence 12<l<1\dfrac12<l<1. ◼\blacksquare

(Numerically l=π/4≈0.785l=\pi/4\approx0.785.)

✓ Proof checked step by step Proof checked step by step; we also checked by computer that both sequences approach 0.785398…=π/40.785398\ldots=\pi/4.

↑ Back to the question list

Show that every open subset of ℝ is a countable union of disjoint open intervals.

2013 · Paper II · Q2d · 14 marks

Solution

Let G⊆ℝG\subseteq\mathbb R be open. For x∈Gx\in G let IxI_x be the union of all open intervals that contain xx and lie in GG.

  • IxI_x is an open interval containing xx. Since GG is open, some (x−δ,x+δ)⊆G(x-\delta,x+\delta)\subseteq G, so Ix≠⌀I_x\ne\varnothing. A union of intervals all containing xx is an interval; it is open since it is a union of open sets. Write Ix=(ax,bx)I_x=(a_x,b_x) (ax,bxa_x,b_x may be ±∞\pm\infty). It is the largest open interval in GG containing xx.
  • Two such intervals are equal or disjoint. If Ix∩Iy≠⌀I_x\cap I_y\ne\varnothing, then Ix∪IyI_x\cup I_y is an open interval in GG containing xx, so Ix∪Iy⊆IxI_x\cup I_y\subseteq I_x by maximality; similarly ⊆Iy\subseteq I_y. Hence Ix=IyI_x=I_y.
  • G=⋃x∈GIxG=\bigcup_{x\in G}I_x, since x∈Ix⊆Gx\in I_x\subseteq G.

So GG is a union of pairwise disjoint open intervals (the distinct IxI_x).

Countably many. Each such interval is non-empty and open, so it contains a rational number. Choose one rational in each interval. Disjoint intervals get different rationals, so this is a one-one map from the family of intervals into ℚ\mathbb Q, which is countable. Hence there are only countably many intervals.

Therefore every open subset of ℝ\mathbb R is a countable union of disjoint open intervals. ◼\blacksquare

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

↑ Back to the question list

Discuss the convergence of the sequence {xn} where xn=sin(nπ2)8.

2010 · Paper II · Q1c · 12 marks

Solution

Since sinnπ2\sin\dfrac{n\pi}{2} takes the values 1,0,−1,0,1,0,−1,0,…1,0,-1,0,1,0,-1,0,\ldots for n=1,2,3,…n=1,2,3,\ldots, xn=18,0,−18,0,18,0,−18,…x_n=\frac18,\ 0,\ -\frac18,\ 0,\ \frac18,\ 0,\ -\frac18,\ \ldots

  • The sequence is bounded: |xn|≤18|x_n|\le\tfrac18.
  • It has the subsequences x4k+1=18→18x_{4k+1}=\tfrac18\to\tfrac18 and x4k+3=−18→−18x_{4k+3}=-\tfrac18\to-\tfrac18 with different limits.

A convergent sequence has all its subsequences converging to the same limit, so {xn}\{x_n\} does not converge. It oscillates finitely between −18-\tfrac18 and 18\tfrac18 (upper limit 18\tfrac18, lower limit −18-\tfrac18).

✓ Checked by computer We checked by computer: the terms repeat 18,0,−18,0\tfrac18,0,-\tfrac18,0.

↑ Back to the question list

Define {xn} by x1=5 and xn+1=4+xn for n>1. Show that the sequence converges to (1+17)2.

2010 · Paper II · Q1d · 12 marks

Solution

Let L=1+172≈2.56L=\dfrac{1+\sqrt{17}}{2}\approx2.56, the positive root of x2−x−4=0x^2-x-4=0, so L2=L+4L^2=L+4.

Bounded below by LL. x1=5>Lx_1=5>L. If xn>Lx_n>L, then xn+1=4+xn>4+L=Lx_{n+1}=\sqrt{4+x_n}>\sqrt{4+L}=L.

Decreasing. xn+12−xn2=4+xn−xn2=−(xn2−xn−4)x_{n+1}^2-x_n^2=4+x_n-x_n^2=-(x_n^2-x_n-4). For xn>Lx_n>L the quadratic xn2−xn−4x_n^2-x_n-4 is positive, so xn+1<xnx_{n+1}<x_n.

A decreasing sequence bounded below converges, say to ℓ≥L>0\ell\ge L>0. From xn+12=4+xnx_{n+1}^2=4+x_n we get ℓ2=4+ℓ\ell^2=4+\ell, so ℓ=1±172\ell=\dfrac{1\pm\sqrt{17}}{2}, and as ℓ>0\ell>0, xn→1+172.◼x_n\to\frac{1+\sqrt{17}}{2}. \qquad\blacksquare

✓ Checked by computer We checked by computer: the iterates settle at 2.56155…=1+1722.56155\ldots=\frac{1+\sqrt{17}}{2}.

↑ Back to the question list

Show that a bounded infinite subset of ℝ must have a limit point.

2009 · Paper II · Q3d · 15 marks

Solution

This is the Bolzano–Weierstrass theorem. Let S⊆ℝS\subseteq\mathbb R be bounded and infinite, so S⊆[a1,b1]S\subseteq[a_1,b_1] for some a1<b1a_1<b_1.

Bisection. Split [a1,b1][a_1,b_1] into two halves. At least one half contains infinitely many points of SS; call it [a2,b2][a_2,b_2]. Repeat. We get closed intervals [a1,b1]⊇[a2,b2]⊇⋯,bn−an=b1−a12n−1→0,[a_1,b_1]\supseteq[a_2,b_2]\supseteq\cdots,\qquad b_n-a_n=\frac{b_1-a_1}{2^{n-1}}\to0, each containing infinitely many points of SS.

A common point. (an)(a_n) is increasing and bounded above by b1b_1; (bn)(b_n) is decreasing and bounded below by a1a_1. So an→αa_n\to\alpha, bn→βb_n\to\beta, with an≤α≤β≤bna_n\le\alpha\le\beta\le b_n. Since bn−an→0b_n-a_n\to0, α=β=:p\alpha=\beta=:p, and p∈[an,bn]p\in[a_n,b_n] for every nn (nested interval property, which rests on the completeness of ℝ\mathbb R).

pp is a limit point of SS. Let ε>0\varepsilon>0. Choose nn with bn−an<εb_n-a_n<\varepsilon. Then [an,bn]⊆(p−ε,p+ε)[a_n,b_n]\subseteq(p-\varepsilon,p+\varepsilon), and [an,bn][a_n,b_n] contains infinitely many points of SS. So every neighbourhood of pp contains a point of SS other than pp.

Hence SS has a limit point. ◼\blacksquare

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

↑ Back to the question list

Let T={1n,n∈N}∪{1+32n,n∈N}∪{6−13n,n∈N}. Find derived set T′ of T and find Supremum of T and greatest number of T.

2008 · Paper II · Q1c(ii) · 6 marks

Solution

Write T=A∪B∪CT=A\cup B\cup C with A={1,12,13,…},B={52,74,32,…},C={173,356,…}.A=\left\{1,\tfrac12,\tfrac13,\ldots\right\},\quad B=\left\{\tfrac52,\tfrac74,\tfrac32,\ldots\right\},\quad C=\left\{\tfrac{17}{3},\tfrac{35}{6},\ldots\right\}.

Derived set. 1n→0\tfrac1n\to0, 1+32n→11+\tfrac{3}{2n}\to1, 6−13n→66-\tfrac{1}{3n}\to6, and each piece is a sequence of distinct points. So 0,1,60,1,6 are limit points of TT. Any other real number has a neighbourhood containing only finitely many points of TT, so it is not a limit point. Hence T′={0,1,6}.T'=\{0,\,1,\,6\}.

Supremum. Every element of AA is ≤1\le1, of BB is ≤52\le\tfrac52, and of CC is <6<6. So 66 is an upper bound. For any ε>0\varepsilon>0, 6−13n>6−ε6-\tfrac{1}{3n}>6-\varepsilon for large nn, so nothing smaller than 6 is an upper bound. Hence supT=6.\sup T=6 .

Greatest number. 6∉T6\notin T (since 6−13n<66-\tfrac{1}{3n}<6), and for any element of CC there is a larger one (6−13(n+1)>6−13n6-\tfrac{1}{3(n+1)}>6-\tfrac{1}{3n}). So TT has no greatest member; the supremum 6 is not attained.

✓ Checked by computer We checked by computer: the three pieces approach 0, 1 and 6.

↑ Back to the question list

Prove that the sets A=[0,1], B=]0,1[ are equivalent sets.

2008 · Paper II · Q3d(i) · 6 marks

Solution

Two sets are equivalent if there is a bijection between them. We build one from A=[0,1]A=[0,1] onto B=]0,1[B=\,]0,1[. The difficulty is the two end points 0,10,1; we absorb them using the sequence 12,13,14,…\tfrac12,\tfrac13,\tfrac14,\ldots.

Define f:[0,1]→]0,1[f:[0,1]\to\,]0,1[ by f(0)=12,f(1)=13,f(1n)=1n+2(n≥2),f(x)=x otherwise.f(0)=\frac12,\qquad f(1)=\frac13,\qquad f\!\left(\frac1n\right)=\frac{1}{n+2}\ (n\ge2),\qquad f(x)=x\ \text{ otherwise}.

  • Into ]0,1[]0,1[: every value lies in ]0,1[]0,1[.
  • One-one and onto: the points 0,1,12,13,14,…0,1,\tfrac12,\tfrac13,\tfrac14,\ldots go to 12,13,14,15,16,…\tfrac12,\tfrac13,\tfrac14,\tfrac15,\tfrac16,\ldots respectively – a bijection from {0,1,12,13,…}\{0,1,\tfrac12,\tfrac13,\ldots\} onto {12,13,14,…}\{\tfrac12,\tfrac13,\tfrac14,\ldots\}. Every other point is sent to itself.

So ff is a bijection, and [0,1][0,1] and ]0,1[]0,1[ are equivalent sets. ◼\blacksquare

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

↑ Back to the question list

More on Real Analysis

Questions: UPSC Civil Services (Main) Examination, Mathematics Paper II, 2008–2026. 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