Let $f:\mathbb{R}\to\mathbb{R}$ , there is $k \in \mathbb{R}$, $|k|\ne 1$, so that for every $x\in \mathbb{R} , f(kx)=f(x).$
Show that if $f$ continuous at $0$ then $f$ is a constant function.
I tried to find something to show it from the definition of continuous function but I didn't know how to continue.
We have that $f$ continuous at $0$ if for every $\epsilon>0$ there is $\delta>0$ such that $|x-0|<\delta \implies |f(x)-f(0)|<\epsilon$
And if $f$ not continuous on $0$ is $f$ still a constant function?