Skip to content

GATE CS 2016 Set 1 Q27 — Combinatorics: Counting, Recurrence Relations, Generating Functions

Explain with AI
Consider the recurrence relation a1=8,an=6n2+2n+an−1a_1 =8 , a_n =6n^2 +2n+a_{n-1}. Let  a99=K×104a_{99}=K\times 10^4. The value of KK is __________.
View worked solution

Answer: 197.9 : 198.1

We are given the recurrence relation:

a1=8a_1 = 8

an=6n2+2n+an−1for n≥2a_n = 6n^2 + 2n + a_{n-1} \quad \text{for } n \ge 2

By unfolding the recurrence, we can express ana_n as a summation:

an=a1+∑i=2n(6i2+2i)a_n = a_1 + \sum_{i=2}^{n} (6i^2 + 2i)

Notice that for i=1i = 1, the term 6i2+2i6i^2 + 2i evaluates to:

6(1)2+2(1)=8=a16(1)^2 + 2(1) = 8 = a_1

Thus, we can rewrite the entire expression as a single summation starting from i=1i = 1:

an=∑i=1n(6i2+2i)a_n = \sum_{i=1}^{n} (6i^2 + 2i)

Using the standard summation formulas:

  • ∑i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
  • ∑i=1ni2=n(n+1)(2n+1)6\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}

We substitute these formulas into the expression for ana_n:

an=6[n(n+1)(2n+1)6]+2[n(n+1)2]a_n = 6 \left[ \frac{n(n+1)(2n+1)}{6} \right] + 2 \left[ \frac{n(n+1)}{2} \right]

an=n(n+1)(2n+1)+n(n+1)a_n = n(n+1)(2n+1) + n(n+1)

Factoring out n(n+1)n(n+1):

an=n(n+1)[(2n+1)+1]a_n = n(n+1) \left[ (2n+1) + 1 \right]

an=n(n+1)(2n+2)a_n = n(n+1)(2n+2)

an=2n(n+1)2a_n = 2n(n+1)^2

Now, we calculate a99a_{99} by substituting n=99n = 99:

a99=2×99×(99+1)2a_{99} = 2 \times 99 \times (99+1)^2

a99=198×(100)2a_{99} = 198 \times (100)^2

a99=198×104a_{99} = 198 \times 10^4

Comparing this with a99=K×104a_{99} = K \times 10^4, we get:

K=198K = 198

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Combinatorics: Counting, Recurrence Relations, Generating Functions questions