If the pth term of an ap is q and the qth term is p, then show that the nth term is (p+q-n).