Note Since a more general answer has been given to the initial problem by @Renji Rodrigo, I decided to improve the post in other to avoid future duplicate regarding such question like here
Question what is the closed form of the sequence $(a_n)_n$ with following recursive relation? $$\color{blue}{u_{n+1}=a_nu_n+b_n~~~\text{where $a_1$, $a_n$ and $b_n$ are given.}}$$
Initial question
The initial question was just the particular case of the aforementioned general question. Namely Let $a_2 = 2$ and $b_2= -\frac{1}{2}$ and consider $$a_{n+1} =a_n\frac{n-1}{n+1}+\frac{2}{n+1}~~~and~~~~b_{n+1} =b_n\frac{n-1}{n+1}~~n\ge 2$$ I would like to fine the closed form of $a_n$ and $b_n$
So far By telescopic product I was able to get the formula for $b_n$, as follows
$$\frac{b_{n+1}}{b_2}=\prod^{n}_{k=2}\frac{b_{k+1}}{b_k}=\prod^{n}_{k=2}\frac{k-1}{k+1}=\prod^{n}_{k=2}\frac{k-1}{k}\prod^{n}_{k=2}\frac{k}{k+1} =\frac{2}{n(n+1)}$$ Hence $$b_{n+1}=- \frac{1}{n(n+1)}$$
Now I don't know which trick I should use here in other to come up with the closed form of $a_n$ Can someone provide some hint or an answer?