Let $f:[a,b]\to\mathbb{R}$ be a differentiable function such that $f(a)=a$ and $f(b)=b$. Prove that there exists a $c\in(a,b)$ such that $f'(c)=1$ and that for every $n\in\mathbb{N}$ there exist different $c_1,c_2,\ldots,c_n$ such that $f'(c_1)+f'(c_2)+\ldots+f'(c_n)=n$.
First part is direct from Mean value theorem.
Could you give me any hints for second part?
This is only a hint. Divide the interval $(a,b)$ into $n$ equal intervals. The average of average slope of these $n$ intervals must equal the average slope of the interval $(a,b)$.