Can anyone kindly tell me if there is a method (other than trial and error) to solve equations of the form below:
$x^2 + x - 35 - 35[(x^2)/35] = 0$
where $x$ is an integer and $[y]$ denotes the integer nearest to $y$?
Can anyone kindly tell me if there is a method (other than trial and error) to solve equations of the form below:
$x^2 + x - 35 - 35[(x^2)/35] = 0$
where $x$ is an integer and $[y]$ denotes the integer nearest to $y$?
This answer assumes that $x$ ranges over at least the positive rationals.
It's not quite clear how far you want to generalize the form of equation you've given. But if we take the "allowed" equations to be all expressions built from one variable and integer constants using any number of addition, multiplication, division and rounding operations, then the general problem is not solvable by algorithmic means.
As J.M. noticed in his comment, we can express the floor and mod functions. And then, $x\mapsto(\big\lfloor[x]x\big\rfloor \bmod [x], \big\lfloor[x]^2 x\big\rfloor \bmod [x], \big\lfloor[x]^3 x\big\rfloor \bmod [x],\ldots)$ will allow us to pack any number of non-negative integer variables into a single rational $x$. Thus, we can express any Diophantine problem of the kind Hilbert's 10th problem is about. Since this is known to be undecidable, there cannot be an algorithm for your variant either.
This answer assumes that x is an integer.
To avoid the impossibility result mentioned by Makholm, you can write out 35 equations, one for each residue class mod 35. This allows you to replace $\lfloor x^2/35\rfloor$ with $(x^2-k)/35$ for some $0\le k<35.$ Obviously this method does not scale well to large moduli, but it does avoid the Richardson's Theorem-like result that would render the problem undecidable.
A heuristic is to just remove the floor. Then we are looking at
$x^2+x-35-35\left(\frac{x^2}{35}\right)=x-35.$ This is zero precisely when $x=35$, and we then expect that the solution of the original will be close to this since it is only off by $35$ whereas $x^2$ has size 1225.
Then plugging in 35, we see that $x=35$ is a solution of the original equation.