Aggiungo l'ipotesi che \(\displaystyle f\) sia continua.
Siano \(\displaystyle x,x_1=...=x_{2017}=0\in\mathbb{Q}\); per le ipotesi:
\[
f(x)=f(0)\cdot f(x)
\]
per cui \(\displaystyle f(0)\in\{0,1\}\).
Errore! In realtà è \(\displaystyle f(x)=f(0)^{2017}\cdot f(x)\)...Nell'eventualità che sia \(\displaystyle f(0)=0\), si ha che \(\displaystyle f\) è la funzione costantemente nulla.
Sia \(\displaystyle f(0)=1\), allora
\[
f(2017)=\overline{f(2017)}\Rightarrow f(2017)\in\mathbb{R}\Rightarrow\forall x\in\mathbb{Q},\,f(x)\in\mathbb{R};\\
\forall x_1,x_2,x=x_3=...=x_{2017}=0\in\mathbb{Q},\,f(x_1+x_2)=f(x_1)\cdot f(x_2)\Rightarrow\\
\Rightarrow f(-x_1)=f(x_1)^{-1}\iff\forall x\in\mathbb{Q},\,f(x)\neq0;\\
x=0,x_1=...=x_{2017}=1\in\mathbb{Q},\,f(2017)=f(1+...+1)=f(1)^{2017}\Rightarrow f(1)=\sqrt[2017]{f(2017)}.
\]
Detto \(\displaystyle f(1)=a\in\mathbb{R}\); mimando
questa dimostrazione, la funzione ricercata è \(\displaystyle f(x)=e^{kx}\) con \(\displaystyle k\in\mathbb{R}\).