- Write the integral in summation form
Given
an=∫−1n(1+2x+3x2+⋯+nxn−1)dx
we rewrite the integrand as
k=0∑n−1k+1xk.
So,
an=∫−1nk=0∑n−1k+1xkdx.
- Integrate term-by-term
Since
∫k+1xkdx=(k+1)2xk+1,
we get
an=k=0∑n−1[(k+1)2xk+1]−1n.
Let j=k+1. Then j=1,2,…,n. Hence
an=j=1∑nj2nj−(−1)j.
- We need those n∈N for which an∈(2,30)
So check small values of n.
For n=1
a1=∫−111dx=2.
But interval is open (2,30), so 2∈/(2,30).
Thus, n=1 is not included.
For n=2
Integrand is
1+2x.
Then
a2=∫−12(1+2x)dx=[x+4x2]−12.
Evaluate:
(2+1)−(−1+41)=3−(−43)=415=3.75.
So
a2∈(2,30).
Thus, n=2 is included.
For n=3
Using the formula,
a3=j=1∑3j23j−(−1)j.
Compute each term:
123−(−1)=4,
229−1=48=2,
3227−(−1)=928.
Hence
a3=4+2+928=6+928=982>9.
So
a3∈(2,30).
Thus, n=3 is included.
For n=4
It is enough to show a4>30.
Using the formula,
a4=j=1∑4j24j−(−1)j.
Already the first three terms give
14−(−1)=5,
416−1=415,
964−(−1)=965.
So
a4>5+415+965.
Now,
5+415+965=36180+135+260=36575>15.
Including the 4th term,
16256−1=16255>15.
Hence
a4>15+15=30.
Therefore a4∈/(2,30).
- For all n≥4, an>30
For n≥4, all terms
j2nj−(−1)j>0
are positive, and in particular the first term is
12n−(−1)=n+1≥5.
Also an grows very rapidly with n, so since a4>30, certainly for n≥4 we have an>30.
Thus the only values of n for which an∈(2,30) are
n=2,3.
- Required sum
2+3=5.
Therefore, the required integer is
5.