If the sum of n terms of an A.P. is (pn + qn2), where p and q are constants, find the common difference.