Knowing that if you can find one solution to a Pell equation you can generate others.
If you could target $m$ then:
$x^2 -my^2 = z$
can be written as
$\displaystyle \frac{x^2}{y^2} - \frac{z}{y^2} = m$
$\displaystyle \left( \frac{x}{y} + \frac{\sqrt{z}}{y} \right) \left( \frac{x}{y} - \frac{\sqrt{z}}{y} \right) = m$
This could provide a method for factoring $m$ by looking for $y|x$ and $z$ is square etc.
If you could solve $u^2-dv^2=w$ then transform it into $x^2-my^2 = z$ this could provide a means to factor one number by factoring another.
If a transform that could target $m$ existed it would have significant consequences.
Copy of my comment to the answer:
Trivially:
$$u^2-dv^2=w \rightarrow u^2-(d-c)v^2=w + cv^2$$
but it changes $d$ and if you can reduce the rhs to $1$ by a $d \to d$ transform then you can solve:
$$u^2-(d-c)v^2=1$$
Admittedly there are very limited $d \to d$ transforms.
I haven't had time to fully test or sanity check this:
For the identical rhs case:
$$ x^2 - my^2 = w$$
$$ u^2 -dv^2 = w$$
Try $v = y$
$$ u^2 -dy^2 = w$$
$$ x^2 -u^2 - (m-d)y^2 = 0$$
$$ x^2 - (m-d)y^2 = u^2$$
From Does the special Pell equation $X^2-dY^2=Z^2$ have a simple general parameterization?
we know that $x^2-dy^2=z^2$ is solved by $x=m^2+dn^2, \quad y=2mn, \quad z=m^2-dn^2$.
i.e. $z$ solves the Pell like equation with the same $d$ value as $z^2$ does.
So we can write:
$$X^2 - (m-d)Y^2 = u$$
but $u$ is a variable not a constant.
So select an $X$ and a $Y$ and calculate $u$.
Then solve for $x$ and $y$ in the square rhs equation $ x^2 - (m-d)y^2 = u^2$.
More sanity checks done:
$$u = X^2 - (m-d)Y^2 \, , \, v = 2XY$$
$$x = X^2 + (m-d)Y^2 \, , \, y = 2XY$$
There should be a $w$ in the equations?
The equations give a relationship between $(u,v)$ and $(x,y)$ but do not solve the equations for $w$.
$$u^2-dv^2=w \rightarrow u^2-(d-c)v^2=w + cv^2$$
but it changes $d$ and if you can reduce the rhs to $1$ by the $d \to d$ transform then can you solve
$$u^2-(d-c)v^2=1$$
– Aug 09 '16 at 22:18