def Somme(n): S=0 for i in range(1,n+1): S=S+i**2 return S