Call the first of the consecutive integers "i". Then the next four integers are i+1, i+2, i+3, and i+4. The sum of those five numbers is i+ (i+1)+ (i+ 3)+ (i+ 4)+ (i+ 5)= 5i+ 10= 10n+ 5. Solve that for i in terms of n. The "median" is the middle number, i+ 2.