q and r terms of an A.P. are a