Problem

Source:

Tags: functional equation



It is given the function $f:\mathbb{R}\rightarrow \mathbb{R}$ fow which $f(1)=1$ and for all $x\in\mathbb{R}$ satisfied $f(x+5)\geq f(x)+5$ and $f(x+1)\leq f(x)+1$ If $g(x)=f(x)-x+1$ then find $g(2016)$ .