The given arithmetic progression is 3,7,11,…, so
first term a=3 and common difference d=4.
Sum of the first n terms of an A.P. is
Sn=2n[2a+(n−1)d]
=2n[2⋅3+(n−1)⋅4]
=2n[6+4n−4]
=2n(4n+2)
=n(2n+1)−(1)
Next, we need the cumulative sum ∑k=1nSk.
Using (1),
Sk=k(2k+1)=2k2+k.
Hence
∑k=1nSk=∑k=1n(2k2+k)
=2∑k=1nk2+∑k=1nk
Using the standard formulas
∑k=1nk2=6n(n+1)(2n+1),∑k=1nk=2n(n+1),
we get
∑k=1nSk=2⋅6n(n+1)(2n+1)+2n(n+1)
=3n(n+1)(2n+1)+2n(n+1)
=n(n+1)[32n+1+21]
Common denominator 6 gives
32n+1+21=64n+2+63=64n+5.
Therefore
∑k=1nSk=6n(n+1)(4n+5)−(2)
The problem states
40<n(n+1)6∑k=1nSk<42.
Substituting from (2):
n(n+1)6⋅6n(n+1)(4n+5)=4n+5.
Hence the inequality becomes
40<4n+5<42.
Subtract 5 everywhere:
35<4n<37.
The only integer multiple of 4 between 35 and 37 is 36, so
4n=36⇒n=9.
Therefore, n=9.