where p and q are integers and q #0 .