I'm confused on the assumptions behind the Taylor Theorem because I found different versions of them across several books.
Consider the function $f:\mathbb{R}\rightarrow \mathbb{R}$
(1) If and only if $f$ is infinitely many times differentiable at $a$ I can write $$f(x)=f(a)+\sum_{k=1}^{\infty}\frac{f^{(k)}(a)(x-a)^k}{k!}$$ Correct?
(2) If and only if $f$ is $n$ times continuously differentiable at $a$ (which implies that $f$ is $n$ times differentiable in a neighbourhood of $a$) I can write $$ f(x)=f(a)+\sum_{k=1}^{n}\frac{f^{(k)}(a)(x-a)^k}{k!}+ o(||x-a||^n) $$ Correct?
(3) If and only if $f$ is $n$ times continuously differentiable at each point between $x$ and $a$ I can write $$ f(x)=f(a)+\sum_{k=1}^{n}\frac{f^{(k)}(a)(x-a)^k}{k!}+ \frac{f^{(n+1)}(c)(x-a)^{n+1}}{(n+1)!} $$ for $c$ between $x$ ans $a$. Correct?
My confusion is related in particular to the necessity of conditions.