First represent your 2 consecutive integers as follows.
X ⇒ first integer
X + 1 ⇒ second integer
Since their sum is 4,031, our equation reads x + (x + 1) = 4,031.
Simplifying on the left side, we get 2x + 1 = 4,031.
Now subtract 1 from both sides to get 2x = 4,030.
Now divide both sides by 2 to find that x = 2,015.
If x ix 2,015, then x + 1 will be 2,015 + 1 or 2,016.
So our 2 consecutive integers are 2,015 and 2,016.