Let tn denotes the nth term of the sequence1,2,4,7
Let S=1+2+4+7+….+tn
Again, S=1+2+4+……+tn−1+tn
On subtracting, we get 0=1+[1+2+3+……(n−1) terms ]−tn ⇒tn=1+2n(n−1)=2n2−n+2
which denotes the first term of the nth row which contains n terms in A.P., having common difference 1.
Hence, we have, S=2n[2tn+(n−1)1] =2n[n2−n+2+n−1] =2n(n2+1)