answer : 12,13
explanation:
Let the numbers be x and x+1.
x2 + (x+1)2 = 313
2x2 + 2x + 1 = 313
2x2 + 2x - 312 = 0
x2 + x - 156 = 0
x2 + 13x - 12x - 156 = 0
x(x + 13) - 12(x + 13) = 0
(x - 12) (x + 13) = 0
x = 12 or -13. Since x cannot be negative, x = 12. Hence, numbers are 12 and 13.