Sn=2n^2-n+1
Sn-1=2(n-1)^2-(n-1)+1
=2(n^2-2n+1)-n+1+1
=2n^2-4n+2-n+2
=2n^2-5n+4
Sn-Sn-1=An= 2n^2-n+1-(2n^2-5n+4)
= 2n^2-n+1-2n^2+5n-4
=4n-3
Sn=2n^2-n+1
Sn-1=2(n-1)^2-(n-1)+1
=2(n^2-2n+1)-n+1+1
=2n^2-4n+2-n+2
=2n^2-5n+4
Sn-Sn-1=An= 2n^2-n+1-(2n^2-5n+4)
= 2n^2-n+1-2n^2+5n-4
=4n-3