def f(b, N=50): k = np.arange(1, N) return np.sum(summand(k, b))*1./np.expm1(b) - np.log(b*np.exp(b)/np.expm1(b))