Consider a rectangle units long, and units wide and the unit squares found in it. A diagonal is drawn from one corner to the opposite. The diagonal cuts through certain unit squares. Find in terms of and the number of unit squares that are cut through.