def somme(n):
    s = 0
    for k in range(1,n+1):
        s = s + 1 / k**2

    return s
