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