See the spreadsheet OnlyAverage.xls

Let the even numbers excluded be 2k,2k+2,2k+4 and 2k+6. Then we know that
i=1 ni-(8k+12)=51.5625×(n-4)   (1).

Hence:
[ i=5 ni-(8k+12)]/(n-4)51.5625[ i=1 n-4i]/(n-4).

It follows that:
n2 -102.125n+392.50quad(2)

and
51.5625 1 2 (n-3)   (3).

Solving the quadratic equation n2 -102.125n+392.5=0 gives
n= 102.125±94.125 2 =4or98.125

From (2) and (3) we have 98n106. From (1):
n2 -102.125n-16k+388.5=0

and so
k= n2 -102.125n+388.5 16 .

Using a spreadsheet to calculate k for n[98,106] we find that the only integer value of k is k=11 corresponding to n=100. The unique solution to the problem is n=100 and the even numbers excluded are 22,24,26 and 28.