Find the number of rectangles made up of the cells of a board with \(m\) horizontals and \(n\) verticals that contain a cell with the coordinates \((p, q)\).
A square grid on the plane and a triangle with vertices at the nodes of the grid are given. Prove that the tangent of any angle in the triangle is a rational number.