For integers $a$ and $b$ consider the complex number \[\frac{\sqrt{ab+2025}}{ab+100}-\left(\frac{\sqrt{|a+b|}}{ab+100}\right)i.\] Find the number of ordered pairs of integers $(a,b)$ such that this complex number is a real number.
If $ab+2025\ge0$ we need $a+b=0$, $a^2\le2025$, so $|a|\le45$, minus $a=\pm10$ (where $ab=-100$): $89$ pairs.
If $ab+2025<0$, the first term is imaginary and we need $-(ab+2025)=|a+b|$, i.e.\ $(a+1)(b+1)=-2024$ (when $a+b>0$) or $(a-1)(b-1)=-2024$ (when $a+b<0$); counting the valid factorizations gives $28$ more pairs.