Let n be a positive integer with $f(n)= 1! +2! +3!+... +n!$ and P(x), Q(x) be polynomials in $x$ such that $f(n+2)=P(n)f(n+1)+Q(n)f(n)$ for all $n \geq 1$, then which of the options is/are correct?
- $P(x)= x+3$
- $Q(x)= -x-2$
- $P(x)= -x-2$
- $Q(x)= x+3$
I managed to get that options 1 and 2 are correct by calculating $f(1),f(2),f(3),f(4)$, substituting them in the equation and then trying out all the options. Is there any way to do the problem without using the options?
$$ \big[1!+2!+\dots+n!+(n+1)!+(n+2)!\big]=\\ \big[1!+2!+\dots+n!+(n+1)!\big]P(n)+\\ \big[1!+2!+\dots+n!\big]Q(n) $$ So an easy way to get this is to have $P(n)+Q(n)=1$ so that all terms $1!+2!+\dots+n!$ come out right. Then we want $P(n)$ so that $$ (n+1)!P(n) = (n+1)!+(n+2)! $$ Divide by $(n+1)!$ to get $$ P(n) = 1+(n+2)=n+3. $$ and, as noted $P(n)+Q(n)=1$, so $Q(n) = -n-2$.