Considering the following recurrence: $\left(E\right):\:\:a_n=n\left(n+1\right)a_{n-1}+f\left(n\right),\:n\in \:\mathbb{N},\:n\ge \:2$
$a_n=\left[n!\right]\left[\left(n+1\right)!\right]+\frac{1}{n},\:\forall n\:\ge 1\:\:$ it's a solution for $\left(E\right):$
Find $f\left(n\right)$ and a general solution for $\left(E\right):$
This is the first time that I have to solve this type of recurrence exercise, i don't know how i can start. Should I equal $\left[n!\right]\left[\left(n+1\right)!\right]+\frac{1}{n}=n\left(n+1\right)a_{n-1}+f\left(n\right)$ to find $f\left(n\right)$ ?
\leftand\rightfor every pair of brackets/parentheses. The\leftand\rightcommands are for when you need your parentheses to scale to match what's inside them, e.g.f\left(\frac{a}{b}\right)produces $f\left(\frac{a}{b}\right)$, whereasf(\frac{a}{b})produces $f(\frac{a}{b})$. Also, I've never noticed until now, but when using\leftand\rightgratuitously, it messes with spacing. Comparef(n)withf\left(n\right), which produces $f(n)$ and $f\left(n\right)$ respectively. – Theo Bendit Oct 15 '21 at 05:11