Periodic Recurrence Relation

CAT 2021 Slot 2 · QA · Medium · Sequences & Series

If x0=1x_0 = 1, x1=2x_1 = 2, and xn+2=1+xn+1xnx_{n+2} = \frac{1 + x_{n+1}}{x_n}, n=0,1,2,3,n = 0, 1, 2, 3, \dots, then x2021x_{2021} is equal to?

  1. A.

    4

  2. B.

    3

  3. C.

    1

  4. D.

    2

Answer

D

Explanation

Calculate the first few terms of the sequence:

  • x0=1x_0 = 1
  • x1=2x_1 = 2
  • x2=1+x1x0=1+21=3x_2 = \frac{1 + x_1}{x_0} = \frac{1 + 2}{1} = 3
  • x3=1+x2x1=1+32=2x_3 = \frac{1 + x_2}{x_1} = \frac{1 + 3}{2} = 2
  • x4=1+x3x2=1+23=1x_4 = \frac{1 + x_3}{x_2} = \frac{1 + 2}{3} = 1
  • x5=1+x4x3=1+12=1x_5 = \frac{1 + x_4}{x_3} = \frac{1 + 1}{2} = 1
  • x6=1+x5x4=1+11=2x_6 = \frac{1 + x_5}{x_4} = \frac{1 + 1}{1} = 2
  • x7=1+x6x5=1+21=3x_7 = \frac{1 + x_6}{x_5} = \frac{1 + 2}{1} = 3

The sequence is periodic with period 5: (1,2,3,2,1,1,2,3,2,1,)(1, 2, 3, 2, 1, 1, 2, 3, 2, 1, \dots). Notice indices: x0=1,x1=2,x2=3,x3=2,x4=1x_0 = 1, x_1 = 2, x_2 = 3, x_3 = 2, x_4 = 1.

To find x2021x_{2021}: 2021(mod5)=12021 \pmod 5 = 1 So x2021=x1=2x_{2021} = x_1 = 2.

Practise this under exam conditions

Sign in to solve it with a live timer, the on-screen CAT calculator, and streak and accuracy tracking across every question you attempt.

Solve in the workspace