Let $d,d',n\in \mathbb N$ be given. If you want, assume $(d,d')=1$. How many positive integer solutions does $$dx+d'x'=n$$ have?
(Assuming $(d,d')=1$). I know there are $n/dd'+\mathcal O(1)$ solutions, but I thought initially it's possible to have an exact value with the greatest integer function. (Initially I thought it was $\lfloor n/dd'\rfloor $ but this is wrong right?)
More precisely the number of solutions is $$\sum _{x\leq n\atop {d'|n-dx\atop {n-dx\geq 0}}}\sum _{x'=(n-dx)/d'}1=\sum _{x\leq n/d\atop {dx\equiv n(d')}}1=\lfloor \frac {n/d-\overline dN}{d'}\rfloor =\lfloor \frac {n}{dd'}-\frac {\overline dN}{d'}\rfloor \hspace {10mm}N:=n\text{ mod }(d')$$ but is there anything I can really do with this except bound a fractional part by $\mathcal O(1)$? Can I get rid of the inverse in any way? Thanks in advance.