Prove that $(x-1)^2\mid f(x)=nx^{n+1}-(n+1)x^n+1$
We can prove this easily by showing $f(1)=f'(1)=0$.
But is there a way to solve this problem without using calculus?
Prove that $(x-1)^2\mid f(x)=nx^{n+1}-(n+1)x^n+1$
We can prove this easily by showing $f(1)=f'(1)=0$.
But is there a way to solve this problem without using calculus?
Here is one way to prove it:
The statement is equivalent to $x^2|f(x+1)$. It is enough to show that $f(x+1)$'s constant term and coefficient of $x$ is $0$. You can calculate this from the binomial theorem.
You can do long polynomial division and get that$$\frac{nx^{n+1}-(n+1)x^n+1}{x-1}=nx^n-x^{n-1}-x^{n-2}-\cdots-x-1$$(or, of course, you can just compute $(x-1)\times(nx^n-x^{n-1}-x^{n-2}-\cdots-x-1)$). And it is clear that $1$ is a root of $nx^n-x^{n-1}-x^{n-2}-\cdots-x-1$.
Define polynomials $p_n$ of degree $n-1$ by$$(x-1)^2p_n(x)=nx^{n+1}-(n+1)x^n+1$$for $n\ge1$, viz.$$p_1=1,\,p_2=2x+1,\,p_{n+2}=1+2xp_{n+1}-x^2p_n.$$
$f(x) =n((x-1)+1)^{n+1}-(n+1)((x-1)+1)^n+1;$
Binomial expansion:
1)The constant term:
$n-(n+1)+1=0$, i.e. all terms have (at least) a factor $(x-1)$.
2)Coefficient of $(x-1)$:
$n(n+1)-(n+1)n=0$, i.e. all remaining terms have (at least) a factor $(x-1)^2$, and we are done.