Mitchell J. answered 04/05/21
Dartmouth grad, Current math PhD student with 7+ years experience
To start, we note that the integral of xn is xn+1/(n+1)+C. Thus, since integrals are linear, that is the integral of a sum is the sum of the integrals, we see that the indefinite integral of f(x) is the sum from 0 to infinity of an/(n+1) * x(n+1)+C. Then, if we reindex in terms of k=n+1, then it is the sum from k=1 to infinity of ak-1/k * xk+C. Finally, but plugging in zero for x, we see that C=4, so the answer is D.