已知等差数列{a n }的前n项和为S n =pn 2 -2n+q(p,q∈R),n∈N + .