- #1
anemone
Gold Member
MHB
POTW Director
- 3,883
- 115
For non-zero integers $n$, let $f(n)$ be the sum of all positive integers $b$ for which all solutions $x$ to $x^2+bx+n=0$ are integers and let $g(n)$ be the sum of all positive integers $c$ for which all solutions $x$ to $cx+n=0$ are integers. Compute $\displaystyle \sum_{n=1}^{2020} (f(n)-g(n))$.