The sum of four consecutive integers is n. Find the largest integer, in terms of n.

9996 + 9997 + 9998 + 9999 = 39,990

let each integer be z

z,z+1,z+2,z+3 are 4 consecutive integers

Their sum is equal to n

z+z+1+z+2+z+3=4z+6=n

Well largest integer in terms of n is

n=4z+6