A rectangle with sides equal to even integers a and b is drawn on the Cartesian plane. Its center (the intersection point of its diagonals) coincides with the point (0, 0), but the sides of the rectangle are not parallel to the axes; instead, they are forming 45 degree angles with the axes.
How many points with integer coordinates are located inside a given rectangle (including on its sides)?
>Pic related is a 6 by 4 rectangle with 23 points inside.
How many points with integer coordinates are located inside a given rectangle (including on its sides)?
>Pic related is a 6 by 4 rectangle with 23 points inside.
