I was dealing with this problem:
Find $\inf A$ and $\sup A$ if
$$A=\{\frac{2mn+4m+3n+2}{2m-mn+2-n}: m,n\in\Bbb N\}$$
I have to separate this set into 2 sets to make things easier, like this:
$A_1=\{-\frac{2m+3}{m+1}:m\in \Bbb N\}$ and $A_2=\{\frac{8}{2-n}:n\in\Bbb N\}$
So $A=A_1+A_2$. Now I would know how to find $\inf$ and $\sup$, but my question is how did someone come up with $$\frac{2mn+4m+3n+2}{2m-mn+2-n}=-\frac{2m+3}{m+1}+\frac{8}{2-n}$$ I understand that $2m-mn+2-n=(m+1)(2-n)$ but what do you do in the numerator to get something that will cancel out?
$2nm+4m+3n+2=2mn-4m+3n-6+8m+8=-(2m+3)(2-n)+8(m+1)$ Now when u separate the two you get
$$\frac{-(2m+3)(2-n)}{(m+1)(2-n)}+\frac{8(m+1)}{(m+1)(2-n)}$$
from there it's obvious how the last expression is achieved.