Let $p\in\mathbb{N}$ and $p>1$. Consider the functional equation $$f(px)+p=[f(x)]^2$$ I need to find all functions $f:\mathbb{R}\to\mathbb{R}$ that is continuous at $0$ and satisfies above functional equation for all $x\in\mathbb{R}$.
For $p=2$, it can be showed that there exists a solution, the function $f:\mathbb{R}\to\mathbb{R}$ defined by $f(x)=2\cos(\alpha x)$ where $\alpha\in\mathbb{R}\cup i\mathbb{R}$ is arbitrary.
How can we find solutions for $p>2$ ? It possible to prove the existence since there exists constant solutions.
Some initial thoughts. Define $$g(t)=f(p^t)$$ Then $$f(p^{t+1})+p=f^2(p^t)$$ $$g(t+1)+p=g^2(t)$$ Then it looks as though we can choose arbitrary values for $g(t)$ in a unit range, say $[0,1)$, and this relationship will determine $g(t)$ for all other values of $t$.
What about the requirement that $f(x)$ is continuous at $0$? I think this just means that $g(t)$ is continuous at $-\infty$. But this happens automatically since $$g(t-1)=\sqrt{g(t)+p}$$ and as we step back in $t$ we always get that $\lim_{t \to -\infty}g(t) $ is the solution of $g^2=g+p$.
So I claim that we can choose arbitrary $g(t)$ on $[0,1)$ and this gives all possible solutions.
Equivalently, we choose arbitrary $f(x)$ on $[1,p)$ and then define all other values by the given relationship.