Let $f:\mathbb{R} \rightarrow \mathbb{R} $ be a non-constant, three times differentiable function. If $f(1+\frac{1}{n})=1$ for all integers $n$, then find $f''(1)$.
I could find $f'(1)=\lim_{n \rightarrow \infty} \frac{f(1+\frac{1}{n})-f(1)}{\frac{1}{n}}$. Now, $f(1)=1$ due to continuity of $f$ at $1$. But the expression of $f''(1)$ is becoming overtly complicated. Please help.