第 979 题:(2012 AMC 10a, 22)
The sum of the first $m$ positive odd integers is $212$ more than the sum of the first $n$ positive even integers. What is the sum of all possible values of $n$?
$\textbf{(A)}\ 255\qquad\textbf{(B)}\ 256\qquad\textbf{(C)}\ 257\qquad\textbf{(D)}\ 258\qquad\textbf{(E)}\ 259$
- $m^2-n(n+1)=212$. Multiply by $4$: $4m^2-(2n+1)^2=847=7\cdot11^2$, i.e.\ $(2m-2n-1)(2m+2n+1)=847$.
- With factors $A<B$, $4n+2=B-A$: $(1,847)$ gives $n=211$, $(7,121)$ gives $n=28$, $(11,77)$ gives $n=16$.
- The sum is $255$. The answer is (A).
The sum of the first $m$ positive odd integers is $19$ more than the sum of the first $n$ positive even integers. What is the sum of all possible values of $n$?