A straight line joins the points (0,0) and (p,q) on a grid. If p and q are coprime positve integers (that is a pair of whole numbers with no common factors) how many squares does this line cross and why?