133 views
2 votes
2 votes

What is the solution to the recurrence relation $a_{n} = a_{n-1} + n$ with $a_{0} = 0$?

  1. $a_{n} = \dfrac{n(n-1)}{2} $
  2. $a_{n} = \dfrac{(n-1)(n+1)}{2} $
  3. $a_{n} = \dfrac{(n-1)(n+1)}{4} $
  4. $a_{n} = \dfrac{n(n+1)}{2} $

2 Answers

Best answer
1 votes
1 votes

This recurrence is actually calculating the sum of the first $n$ natural numbers which is given by $\dfrac{n.(n+1)}{2}.$
We can formally prove this as follows.

  • $a_{n} = a_{n-1} + n \rightarrow(1)$
  • $a_{n-1} = a_{n-2} + n-1 \rightarrow(2)$
  • $a_{n-2} = a_{n-3} + n-2 \rightarrow(3)$

Substitute the value in equation $(1)$, and get the term,

  • $a_{n} = a_{n-1} + n $
  • $a_{n-1} = a_{n-2} + n-1 + n $
  • $a_{n-2} = a_{n-3} + n-2 + n-1 + n$
  • $\hspace{1.5cm}\vdots$
  • for $i^{th}$ term,
  • $a_{n} = a_{n-i} + \big(n-(i-1)\big) + \big(n-(i-2)\big) + \dots (n-1) + (n-0)$

Given that $a_{0} = 1\implies i = n.$

  • $a_{n} = a_{0} + \big(n-(n-1)\big) + \big(n-(n-2)\big) + \dots (n-1) + (n-0)$
  • $a_{n} = a_{0} + 1 + 2 + 3 + \dots + n $
  • $a_{n} = 0 + 1 + 2 + 3 + \dots + n $
  • $a_{n} = \dfrac{n(n+1)}{2} $

So, the correct answer is $(D)$.

selected by
0 votes
0 votes

The recurrence relation becomes 

t(n)= t(n-1)+n

     and can be resolved using substitutions. Hence t(n)= n(n+1)/2    option D is correct

Answer:

Related questions

4 votes
4 votes
1 answer
1
gatecse asked Jul 5, 2020
415 views
Let $'a'$ be an element in a group such that $ord(a) = 2020.$ The order of $a^{43}$ is _________
6 votes
6 votes
1 answer
2
gatecse asked Jul 5, 2020
413 views
Let $G$ be a group with order $45$, and $H$ a non-abelian subgroup of $G$. Assuming $H \neq G$, what is the smallest possible order of $H$?
3 votes
3 votes
2 answers
3
gatecse asked Jul 5, 2020
369 views
Let $G=\langle{a\rangle}$. The smallest subgroup of $G$ containing $a^{2020}$ and $a^{1719}$ is _________$a^{4}$$a^{1719}$$a^{2020}$$a^{1}$