allier написа:Well, mkmarinov, you have proved that f is constant over the integers which is correct. However, is there a function which is non-constant globally which satisties the conditions of the problem.
Well, I may have not expressed myself correctly.
First, yes, f is constant over the integers. But it can also be proven in the same way that it is constant for arguments with integral differences, i.e. f(x+1)=f(x+2)=...
Second, I did not say that since f is constant over the integers, it is constant in its whole domain. I just gave this as an example. If f is constant it satisfies all the given conditions, yet can be considered periodic with any period.
If you are looking for a non-constant function, [tex]2sin(2\pi x)[/tex] could be considered an example.