nth row will have n elements which will form an A.P. of common difference 1, we have to determine only it's 1st term.
Successive first terms are 1, 2, 4, 7, 11 ,.....
1st difference are 1, 2, 3, 4...
2nd differences 1, 1, 1, .....equal.Hence nth term will be of the form
Tn=an2+bn+c
T1=a+b+c=1
T2=4a+2b+c=2
T3=9a+3b+c=4
∴=3a+b=1,5a+b=2
a=12,b=−12,c=1
Tn=12(n2−n+2)
∴Nowa=12(n2−n+2),d=1,n=n
∴S=n2[(2a+(n−1)d]
∴S=n2[n2−n+2+n−1]=n2(n2+1)