Let $x \in Z^+$ and $n \in Z^+$. Let $f(x)$ be a function that takes integer values infinitely often. Then it follows that $f(x+n)$ also takes integer values infinitely often. Let $f(x)$ be continuous and differentiable. I think that if $p(x)=f(x)+f(x+n)$ takes integer values more than once than it takes integer values infinitely often.
Is this a known property? Can anybody give a counter example to this?
Edit: $f(x)$ is not a piece-wise function. I am extremely sorry that I didn't mention these things before. I have been thinking about this all day and I didn't realize that I had assumed these.
Try $f(n)=\log_2(n)$, and various values of $c$.