(n+ContinuedFractionK[d, 2n, {x, 1, infinity}])^2