Recurrences & Generating Functions

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.