%% Sum a series via 'while'

n = 1;
oldsum = -1;
newsum = 0;
while newsum > oldsum
    oldsum = newsum;
    newsum =newsum + n^(-4);
    n = n + 1;
end
newsum