def Br(n): S=0 for k in range(2,2**n+1,2): S=S+1/((k-1)*k) return S