If the sumk of n terms of an A.P. is (pn+qn2), Where pa and q are constants, find the common difference.