2. Use the floor function: $R = \left\{ {(x,y):\left\lfloor x \right\rfloor = \left\lfloor y \right\rfloor } \right\}$.