Determine all functions $f:\mathbb{R}\rightarrow \mathbb{R}$ such that the set \[\left \{ \frac{f(x)}{x}: x \neq 0 \textnormal{ and } x \in \mathbb{R}\right \}\] is finite, and for all $x \in \mathbb{R}$ \[f(x-1-f(x)) = f(x) - x - 1\]
Source: Turkey TST 1999 - P3
Tags: function, algebra proposed, algebra
Determine all functions $f:\mathbb{R}\rightarrow \mathbb{R}$ such that the set \[\left \{ \frac{f(x)}{x}: x \neq 0 \textnormal{ and } x \in \mathbb{R}\right \}\] is finite, and for all $x \in \mathbb{R}$ \[f(x-1-f(x)) = f(x) - x - 1\]