GATE / CS ARCHIVE

GATE CSE 2016 SET 1 / QUESTION 27

GATE CSE 2016 Set 1 Q27

Discrete Mathematics · Recurrences & Generating Functions · Full GATE CSE 2016 Set 1 paper

GATE 2016 Set 1, Q27 2 marks · NAT
Report issue

Recurrences & Generating Functions

Question 27, GATE 2016: The sequence satisfies a_1=8 and a_n=6n^2+2n+a_(n−1). If a_99=K×10^4, find K.
Tap to enlarge
Answer & solution

Official answer: 197.9 : 198.1

Our answer: 198

The initial a 1=8 equals 6·1²+2·1, so a 99=sum(n=1..99)(6n²+2n). Using sum n²=N(N+1)(2N+1)/6 and sum n=N(N+1)/2 gives N(N+1)(2N+2)=2N(N+1)². At 99 this is 1,980,000=198·10⁴, hence K=198.

Unrolling adds the increments 6n2+2n for n=2 through 99 to the base 8. Because 8 is exactly the same expression at n=1, one uniform sum covers all terms. Simplifying before substituting avoids large arithmetic:6Σn2+2Σn=N(N+1)(2N+1)+N(N+1)=2N(N+1)2. A quick check at N=1 gives 8 and at N=2 gives 36, agreeing with the recurrence. Divide the final value by 10000, not multiply, to recover K.

Original paper, page 12 · Answer key