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