Try it with larger numbers or negative numbers too. The numbers are x x1 and x 2. For instance say your consecutive numbers run from 1263 through 1267.
N 2first number last number sum where n is the number of integers.
8 and 10 are consecutive even numbers as are 24 and 26. Therefore three consecutive integers that add up to 45 are 14 15 and 16. Note that the solution uses only the space between odd numbers which is 2. 8 9 10 11 12 and 11 12 13 14.