Question

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

Official answer and solution
Accepted answers
197.9 to 198.1
From
Official GATE 2016 answer key

Solution

Express the recurrence as a summation and evaluate using formulas for ∑n2\sum n^2 and ∑n\sum n.

The recurrence relation is:

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

with base condition a1=8a_1 = 8.

Notice that for n=1n = 1, 6(1)2+2(1)=8=a16(1)^2 + 2(1) = 8 = a_1. Therefore, assuming a0=0a_0 = 0, we can express ana_n as:

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

Substitute the standard summation formulas:

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)=n(n+1)(2n+1+1)=2n(n+1)2a_n = n(n+1)(2n+1) + n(n+1) = n(n+1)(2n+1+1) = 2n(n+1)^2

Evaluate for n=99n = 99:

a99=2(99)(99+1)2=2(99)(100)2=198×104a_{99} = 2(99)(99 + 1)^2 = 2(99)(100)^2 = 198 \times 10^4

We are given a99=K×104a_{99} = K \times 10^4. Equating gives K=198K = 198.

Final answer

198

Common trap

Summing from i=1i = 1 to 99 and adding a1=8a_1 = 8 a second time.

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

Source

Paper
GATE 2016 Computer Science and Information Technology (CS) Session 1
Question
37 of 65, printed as CS Q.27
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.