⇒10182980193....
−1172151113....
26143062....
481632....
∴un=a.2n−1+bn2+cn+d
Putting n=1,2,3,4 we get;-
a=4,b=−1,c=−2,d=0
∴un=4.2n−1−n2−2n+0
=2n+1−n2−2n
Sn=∑un
=(22+23+....+2n+1)−∑n2−2∑n
=4(2n−1)−16n(n+1)(2n+1)−n(n+1)
=2n+2−4−16n(n+1)(2n+7)