Let $f:\Bbb R\to\Bbb R$ be a function satisfying $$f(kx)=f(x),\space\forall x\in\Bbb R\space\text{ and some } k>0,k\ne 1$$
Does $f$ have to be bounded?
Thoughts:
I think $f$ has to be bounded and would like to verify it and improve what I have so far.
$$f(kx)=f(x),\space\forall x\in\Bbb R \implies f\left(k^nx\right)=f\left(\frac{x}{k^m}\right),\forall m,n\in\Bbb N$$
Since $f$ is defined on the whole $\Bbb R,(\forall x\in\Bbb R)(\exists ! y\in\Bbb R)$ s. t. $y=f(x)$.
Let's look at the closed interval $[-1,1]$. $$f\left([-1,1]\right)=f\left([-k,k]\right)=f\left(\left[-\frac1k,\frac1k\right]\right)$$ so, I think, we have actually covered all the possible outputs of $f(x)$. No matter how big $|x|$ is, there is always some $y\in\Bbb R$ with $|y|<|x|$ s. t.$x=ky$ and, hence $f(x)=f(y)$, which we have already found in $[-1,1]$.
May I ask if my arguments are valid?
Motivation:
I was thinking about the periodic composition $(f\circ g)(x)$, where $f$ has the above properties and $g$ isn't periodic. We could take $g(x)=k^{\frac{x}n}$. Then: $$f(g(x))=f\left(k^{\frac{x}n}\right)=f\left(k\cdot k^{\frac{x}n}\right)=f\left(k^{\frac{x+n}n}\right)$$
and $f(g(x))$ has a prime period $\tau_0=n$.
If $g$ were periodic, $f(g(x))$ would definitely be periodic, no matter what $f$ were. The examples I thought of were periodic functions like constants or everywhere discontinuous functions like the Dirichlet function. However, I realized $f$ doesn't necessarily need to be periodic, so I focused just on the weaker property of boundedness.
Thank you in advance!