Heres my question:
I used The Weierstrass M-test showing that $|x^n(1-x)|\le |x|^n(1-x)$ and $$\sum_{n=0}^\infty |x|^n(1-x) = (1-x)\sum_{n=0}^\infty |x|^n=(1-x)\frac{1}{1-x}=1 < \infty$$ So the series is uniformly convergent.
However, $sup|x^n(1-x)-1|=1\neq0$, showing that it is not pointwise convergent.
Is there something wrong? Thank you!
First, note that a hypothesis of Weierstrass test is that the series of bounding constants converges.
Note that for $x = 1$ we have $\sum_{n \geq 1}x^{n}(1-x) = 0$; for $-1 < x < 1$ we have $\sum_{n \geq 1}x^{n}(1-x) = x$; hence the series does not converge uniformly on $]-1,1]$.