Context
I am working on Integer factorization problem, I found a formula for factoring numbers, and I need your help to simplify it. First I will explain how I get there and then I present the problem (This is actually an improvement of my previously posted idea).
Background
I want to find the factors of $d$ or in other words I want to know for what values of $x$ do you need to divide $d$ to get an integer solutions?
$$\frac{d}{x} = \left\lfloor\frac{d}{x}\right\rfloor$$
I found that in small ranges $\left\lfloor\frac{d}{x}\right\rfloor$ act as a linear line, and if you look on $x$ values higher then $\sqrt{d}$ you will see that the slope is equal to $1$. So in general you can write it like this:
$$\frac{d}{x} = \left\lfloor\frac{d}{\lfloor\sqrt{ d }\rfloor}\right\rfloor +y - 1*(x-\lfloor\sqrt{ d }\rfloor)$$
- $\left\lfloor\frac{d}{\lfloor\sqrt{ d }\rfloor}\right\rfloor$ is the starting point for $x=\lfloor\sqrt{ d }\rfloor$
- $1*(x-\lfloor\sqrt{ d }\rfloor)$ is the predicted change for the next $x-\lfloor\sqrt{ d }\rfloor$ values, assuming that it is a straight line
- $y$ is the error, as we don't really sure in what of those straight line $\frac{d}{x} = \left\lfloor\frac{d}{x}\right\rfloor$
So if I extract $x$ I will get the next thing:
$$x = \frac{a+b + y+ \sqrt{(a+b+y)^2 - 4d}}{2}$$
- $a = \left\lfloor\frac{d}{\lfloor\sqrt{ d }\rfloor}\right\rfloor$
- $b = \lfloor\sqrt{ d }\rfloor$
- $y$ positive integer
Question
When the next equation is an integer:
$$x = \frac{a+b + y+ \sqrt{(a+b+y)^2 - 4d}}{2}$$
- $a,b,d$ are positive known integers
- $y$ must be positive integer
Right now I am finding the solution by checking all the options. So it takes $546$ attempts to factor $652450640273$ to it's two dividers $787021$, $829013$
What can I do to reduce the number of options that I have for $y$?
Notice that, for any $k\in [\sqrt{d},d]$, there is a $y$ such that that choice of $y$ forces $x$ to equal $k$ - that is, our choice of $y$ completely determines our choice of $x$. Furthermore, given that it straightforwards to compute $y$ given $x$ and $x$ given $y$, it is clear that the problem of determining $y$ is, in terms of computation, equivalent to factoring $d$. There is a great deal of research into that subject, if you are really really intent on finding $y$.
The fact that your calculations don't reduce the problem of factoring isn't too surprising - you have come up with what is, roughly, the linear approximation of $\frac{d}x$ around $x=\sqrt{d}$ - so you can approximate the term $\frac{d}x$ with that. However, linear approximations are good at telling you "Well $\frac{d}x$ lies somewhere near this value on the number line" - but what you need to know is not the general area where $\frac{d}x$ lives (a sort of global property) but a local property: Is $\frac{d}x$ an integer? It is impossible to determine this with approximations - the error term completely determines the answer to that, so asking what the error term is is, in essence, rephrasing the original question.