from math import *
def somme():
    S=0; x=-1; h=...
    for i in range(1,...):
        x=x+...
        S=...
    return(...)

