def sissa(n): s=0 for k in range(n): grain=2**(k) s=s+grain return(s)