For a real number $x$, let $[x]$ denote the largest integer $\le x$, and let $\{x \}$ denote $x-[x]$. Find all solutions of the equation: $$13[x]+25\{x\}=271.$$
I tried to simplify the equation by:
$$13[x]+25(x-[x])=271$$
$$\implies 13[x]+25x-25[x]=271$$
$$\implies 25x-12[x]=271$$
$$\implies x= \dfrac{271+12[x]}{25}.$$
Now I saw that for $[x]=17$, we get $x=19$, but this is not a solution.
Do I have to go on manually checking for such solution, if it exists? Is there any generic/empirical way to solve this?
Some more facts I have observed (I don't know whether I am hitting at the right point or not).
If $x=[x]$,
$$13x=271$$
$$\implies x=\dfrac{271}{13}\approx 2.84.$$
Thus $[x]=2.$
But if $x>[x]$, then $$13[x]+25\{x\}=271,$$
where $\{x\}$ is the fractional part of $x$.
Thus $25\{x\}=271-[x]$.
But as $[x]$ is always an integer, $271-[x] \ne 25\{x\}.$
So we have only solution for $x=[x]$.
Possibly I am wrong at this. Please show me the correct way to solve it.