double f (double x, double n) { if (n == 1) return x / (1 + x). else return x / (n + f (x, n - 1)). }