My goal is to prove or disprove that if $x^2-dy^2=-1$ is solvable, then $x^2-d^ny^2 = -1$ is solvable for every odd $n \geq 1$.
I do know that the former is solvable if and only if the continued fraction of $\sqrt{d}$ has an odd period, and I feel like it is the case that for all $n=2k+1$, $\sqrt{d^n}=\sqrt{d^{2k+1}}=d^k\sqrt{d}$ should also have an odd period, given that I am multiplying something with an odd period by an integer.
The thing is though, I'm not exactly sure how to prove that multiplying a continued fraction with an odd period by an integer gives me another continued fraction with an odd period, if that's even true.
Any suggestions to try out/consider would be immensely helpful as well!