Question 485250
n2+(n+2)2=340
n2+n2+4n+4=340
2n2+4n-336=0
n2+2n-168=0
(n+14)(n-12)=0
n=-14 or 12
Throwing out the negative answer, we get the integers to be 12 and 14..