1. Let P(x,y) be the assertion of the given functional equation:
f(x−f(y))=f(x)+a⌊y⌋
for all x,y∈R.
2. First, we consider the case a=0. If a=0, the equation simplifies to:
f(x−f(y))=f(x)
This implies that f is a constant function. For example, f(x)=c for some constant c. Therefore, a=0 is a valid solution.
3. Now, assume a=0. We need to find all possible values of a such that the functional equation holds.
4. Suppose f(u)=f(v) for some u,v∈R. Comparing P(x,u) and P(x,v), we get:
f(x−f(u))=f(x)+a⌊u⌋
f(x−f(v))=f(x)+a⌊v⌋
Since f(u)=f(v), we have:
f(x−f(u))=f(x−f(v))
Therefore:
f(x)+a⌊u⌋=f(x)+a⌊v⌋
This implies:
a⌊u⌋=a⌊v⌋
Since a=0, we conclude:
⌊u⌋=⌊v⌋
Hence, if f(u)=f(v), then ⌊u⌋=⌊v⌋.
5. Next, assume f(u)∈/Z. Then there exist x1,x2 such that ⌊x1⌋=⌊x2⌋ but ⌊x1−f(u)⌋=⌊x2−f(u)⌋.
6. From P(x1,u) and P(x2,u), we have:
f(x1−f(u))=f(x1)+a⌊u⌋
f(x2−f(u))=f(x2)+a⌊u⌋
Since ⌊x1⌋=⌊x2⌋, we get:
f(x1−f(u))=f(x2−f(u))
This implies:
⌊x1−f(u)⌋=⌊x2−f(u)⌋
which is a contradiction. Therefore, f(x)∈Z for all x.
7. Using induction on n, we show that:
f(x−nf(y))=f(x)−an⌊y⌋∀n∈Z
For n=1, this is just P(x,y). Assume it holds for n. Then:
f(x−(n+1)f(y))=f((x−nf(y))−f(y))=f(x−nf(y))−a⌊y⌋
By the induction hypothesis:
f(x−nf(y))=f(x)−an⌊y⌋
Therefore:
f(x−(n+1)f(y))=f(x)−an⌊y⌋−a⌊y⌋=f(x)−a(n+1)⌊y⌋
Thus, the induction is complete.
8. Now, consider:
f(x−f(z)f(y))=f(x)−af(z)⌊y⌋∀x,y,z
Swapping y and z and subtracting, we get:
f(z)⌊y⌋=f(y)⌊z⌋∀y,z
Setting z=1, we get:
f(x)=c⌊x⌋∀x
for some c∈Z.
9. Plugging this back into the original equation, we get:
f(x−c⌊y⌋)=f(x)+a⌊y⌋
c⌊x−c⌊y⌋⌋=c⌊x⌋+a⌊y⌋
Simplifying, we get:
c⌊x⌋−c2⌊y⌋=c⌊x⌋+a⌊y⌋
Therefore:
−c2⌊y⌋=a⌊y⌋
Since ⌊y⌋=0 for all y, we get:
a=−c2
Hence, the answer is:
a∈{−n2∣n∈Z}
The final answer is a∈{−n2∣n∈Z}