We are given the recurrence relation:
a1=8
an=6n2+2n+an−1for n≥2
By unfolding the recurrence, we can express an as a summation:
an=a1+i=2∑n(6i2+2i)
Notice that for i=1, the term 6i2+2i evaluates to:
6(1)2+2(1)=8=a1
Thus, we can rewrite the entire expression as a single summation starting from i=1:
an=i=1∑n(6i2+2i)
Using the standard summation formulas:
- ∑i=1ni=2n(n+1)
- ∑i=1ni2=6n(n+1)(2n+1)
We substitute these formulas into the expression for an:
an=6[6n(n+1)(2n+1)]+2[2n(n+1)]
an=n(n+1)(2n+1)+n(n+1)
Factoring out n(n+1):
an=n(n+1)[(2n+1)+1]
an=n(n+1)(2n+2)
an=2n(n+1)2
Now, we calculate a99 by substituting n=99:
a99=2×99×(99+1)2
a99=198×(100)2
a99=198×104
Comparing this with a99=K×104, we get:
K=198