This code try to calculate the Seidels sum