• edited by
48,055 views
93 93 votes
Consider the recurrence relation $a_1 =8 , a_n =6n^2 +2n+a_{n-1}$. Let  $a_{99}=K\times 10^4$. The value of $K$ is __________.

14 Answers

Best answer
273 273 votes
$a_n=6n^2+2n+a_{n-1}$

$=6n^2+2n+6(n-1)^2+2(n-1)+a_{n-2}$

$=6n^2+2n+6(n-1)^2+2(n-1)+6(n-2)^2+2(n-2)+......+a_1$

$=6n^2+2n+6(n-1)^2+2(n-1)+6(n-2)^2+2(n-2)+......+6.1^2+2.1$

$=6(n^2+(n-1)^2+...+2^2+1^2)+2(n+(n-1)+...+2+1)$

$=6\times \frac{n(n+1)(2n+1)}{6} \;+ \; 2 \times\frac{n(n+1)}{2}$

$=n(n+1)(2n+1+1)$

$a_n=2n(n+1)^2$

for $n=99 \; \;a_{99}=2\times 99 \times(99+1)^2 =198 \times 10^4$
• selected by
63 63 votes

Here's the easiest way to solve this:

Taking $a_{n-1}$ to LHS,

$a_{n} - a_{n-1} = 6n^{2} + 2n$

Taking summation,

$\sum a_{n} - \sum a_{n-1} = 6 \sum n^{2} + 2 \sum n = (n)(n+1) (2n+1) + n(n+1)$

 

LHS becomes:

 $\sum a_{n} - \sum a_{n-1}= (a_{n}+\sum a_{n-1}) - \sum a_{n-1}=a_{n}$

so our equation reduces to:

$a_{n} = (n)(n+1) (2n+1) + n(n+1)$

Putting n = 99 as asked in the question,

$a_{99} = 99*100*199 + 99*100 = 1980000 = K * 10^{4} $

So K =198. Now wasn't this easy.?

---------------------------------------------------------------------------

p.s.:

$1+2+3+.....+n=\sum{n}=\frac{n(n+1)}{2}$

$1^{2}+2^{2}+3^{2}+.....+n^{2}=\sum{n^{2}}=\frac{n(n+1)(2n+1)}{6}$

$1^{3}+2^{3}+3^{3}+.....+n^{3}=\sum{n^{3}}=\left[\frac{n(n+1)}{2}\right]^{2}=\frac{n^{2}(n+1)^{2}}{4}$

• edited by
1 flag:
✌ Edit necessary (Nayan jyoti “$$\sum a_n - \sum a_{n-1} = (a_n + \sum a_{n-1}) - \sum a_{n-1} = a_n$$ is not correct.”)
60 60 votes
$a_n=6n^2+2n+a_{n-1}$

Solution = Homogeneous Solution + Particular Solution .................$(1)$

$Homogeneous\ Solution$,
$a_n=a_{n-1}$
$a_n-a_{n-1}=0$

let, $a_n = x$
$x -1 = 0$
$x = 1$

$Homogeneous \ Solution=d*1^n = d$.......................................$(2)$

$ Particular\ Solution :$
Here, $F(x) = 6n^2 + 2n$                                  // Quadratic

let us assume, $a_n = (an^2 + bn + c)*n$         // here root of homogeneous solution is 1 so we have to multiply General quadratic solution by n. ........................$(3)$

$6n^2+ 2n = a_n - a_{n-1}$

$={n*(an^2 + bn + c) - (n-1)*(a(n-1)^2 + b(n-1) + c)}$
$= an^3 + bn^2 + cn - ( an^3 - a -3an^2 +3an + bn^2 + b - 2bn +cn - c )$
$= ( an^3 + bn^2 + cn - an^3 + a +3an^2 -3an - bn^2 - b + 2bn - cn + c )$
$= 3an^2 + (2b-3a)n + (a-b+c)$

Apply Principle of Homogeneity,

$3a =6$                $2b -3a= 2$                    $a-b+c =0$
 $a = 2$                        $b = 4$                                       $c = 2$

Now put values in equation $(3)$,

$Particular\ Solution = n*(2n^2 + 4n +2) = 2n^3 + 4n^2 + 2n$ ..................$(4)$

from equation $(1), (2)$ and $(4)$

Solution of recurrence  $= 2n^3 + 4n^2 + 2n +d$

here $a(1) = 8$                                                                 //given
by putting $n = 1, d=0$

Final Solution of recurrence $= 2n^3 + 4n^2 + 2n = 2n(n+1)^2$

Value of $a(99) = 2×99×(10)^4 = 198*10^4$

So, $K$ value is $198$
• edited by
18 18 votes
why is everyone doing this hard way?

This solution is given,but still

convert recurrence relation to an-(an-1)=6n^2+2n

now all you have to do is apply summation to RHS,

6n^2 converts to n(n+1)(2n-1) (6 gets cancelled) and 2n^2 converts to n(n+1)

so final equation is n(n+1)(2n+1)+n(n+1),putting n =99 answer comes as 1980000,  198*10^4
12 12 votes
$a_{n} = 6n^{2} + 2n+a_{n-1}\rightarrow(1)$

$a_{1} = 8,a_{0} = 0$

We can rewrite the equation $(1),$ and get

$\implies a_{n}-a_{n-1} = 6n^{2} + 2n$

$a_{1}-a_{0} = 6(1)^{2} + 2(1)$

$a_{2}-a_{1} = 6(2)^{2} + 2(2)$

$a_{3}-a_{2} = 6(3)^{2} + 2(3)$

$a_{4}-a_{3} = 6(4)^{2} + 2(4)$

$\:\:\:\:\:\:\:\:\Large\vdots$

$a_{98}-a_{97} = 6(98)^{2} + 2(98)$

$a_{99}-a_{98} = 6(99)^{2} + 2(99)$

________________________________________________________

$a_{99}-a_{0} = 6\left[1^{2} + 2^{2} + 3^{2} + \dots + 99^{2} \right] + 2\left[1+2+3+\dots + 99 \right]$

$\implies K \times 10^{4} - 0 = 6\left[\dfrac{99\times 100 \times 199}{6}\right]  + 2\left[\dfrac{99\times 100}{2}\right] $

$\implies K \times 10^{4} =9900 \times 199 +9900$

$\implies K \times 10^{4} =9900 (199 +1)$

$\implies K \times 10^{4} =9900 \times 200$

$\implies K \times 10^{4} =1980000$

$\implies K \times 10^{4} =198\times 10^{4}$

$\therefore K = 198$

So, the correct answer is $198.$
8 8 votes
K = 198

Recurrence is solved by

an = (2n+1)(n)(n+1) + n(n+1)

a99 = (199)(99)(100) + (99)(100) = 1980000
Answer:
Position:
Show:

Related questions

59 59 votes
7 answers 7 answers
16.1k
16.1k views
Sandeep Singh asked Feb 12, 2016
16,134 views
Let $a_n$ be the number of $n$-bit strings that do NOT contain two consecutive $1's$. Which one of the following is the recurrence relation for $a_n$?$a_n = a_{n-1}+ 2a_{...
68 68 votes
17 answers 17 answers
41.3k
41.3k views
Sandeep Singh asked Feb 12, 2016
41,272 views
The coefficient of $x^{12}$ in $\left(x^{3}+x^{4}+x^{5}+x^{6}+\dots \right)^{3}$ is ___________.
43 43 votes
6 answers 6 answers
16.9k
16.9k views
Kathleen asked Sep 23, 2014
16,889 views
The number of binary strings of $n$ zeros and $k$ ones in which no two ones are adjacent is$^{n-1}C_k$$^nC_k$$^nC_{k+1}$None of the above
51 51 votes
6 answers 6 answers
13.5k
13.5k views
Misbah Ghaya asked Nov 29, 2016
13,510 views
How many substrings (of all lengths inclusive) can be formed from a character string of length $n$? Assume all characters to be distinct, prove your answer.