A sequence is defined recursively: a(1)=2, a(n+1)=a(n)+2n
The task is to find a(100)
Is there a way I translate this form of sequence to the form with n only? I mean I've tried but with this particular sequence, it's not that obvious what the pattern is. Thanks!!
I would express the recursion as the linear inhomogeneous difference equation:
[MATH]a_{n+1}-a_n=2n[/MATH]
The homogeneous solution will take the form:
[MATH]h_n=c_1[/MATH]
And so the particular solution must take the form:
[MATH]p_n=n(An+B)[/MATH]
Substituting into the difference equation, we get:
[MATH](n+1)(A(n+1)+B)-n(An+B)=2n[/MATH]
[MATH](2A)n+(A+B)=(2)n+0[/MATH]
Equating like coefficients, we obtain the system:
[MATH]2A=2\implies A=1[/MATH]
[MATH]A+B=0\implies B=-1[/MATH]
And so our particular solution is:
[MATH]p_n=n(n-1)[/MATH]
Hence the general solution, by the principle of superposition, is:
[MATH]a_n=h_n+p_n=c_1+n(n-1)[/MATH]
We may now use the given initial value to determine the value of the parameter:
[MATH]a_1=c_1=2[/MATH]
And so the closed form for the given recursion is:
[MATH]a_n=n(n-1)+2[/MATH]