Problem 1
In the plane, points with integer coordinates are vertices of unit squares, colored alternately black and white as on a chessboard. For positive integers , consider a right triangle with integer-coordinate vertices and legs of lengths along square edges. Let be the black area and the white area. Define . (a) Calculate when are both even or both odd. (b) Prove . (c) Show that no constant satisfies for all .
Step 1 of 3: Compute equal-parity cases
In plain words
Compute equal-parity cases
Detailed analysis
Complete the triangle to a rectangle and rotate it by about the midpoint of its hypotenuse. If are even, the midpoint is a lattice point and the two halves have equal black and white areas, so . If both are odd, the midpoint is the center of a unit square and the rectangle has color excess , so each half has excess .