If p and q are distance of object and real image from the principal focus of a concave mirror, then the relation between p,q and f is :