Hey mathsforumhelp.

The value at discontinuities will be the average of the two values and is pointed out here:

Gibbs phenomenon - Wikipedia, the free encyclopedia

They specify this in terms of F(x) = [f(x-) + f(x+)]/2 where F(x) is the fourier series representation f(x-) = f(1-) = 13*1 = 13 and f(x+) = f(1+) = 1 so (13+1)/2 = 14/2 = 7.