\(\left(n+1\right)u_{n+1}=\dfrac{1}{2}nu_n+n+2\)
\(\Leftrightarrow\left(n+1\right)u_{n+1}-2\left(n+1\right)=\dfrac{1}{2}\left[nu_n-2n\right]\)
Đặt \(n.u_n-2n=v_n\Rightarrow\left\{{}\begin{matrix}v_1=-1\\v_{n+1}=\dfrac{1}{2}v_n\end{matrix}\right.\)
\(\Rightarrow v_n=-1.\left(\dfrac{1}{2}\right)^{n-1}\Rightarrow n.u_n-2n=-\dfrac{1}{2^{n-1}}\)
\(\Rightarrow u_n=2-\dfrac{1}{n.2^{n-1}}\)