# Ray in a Square

Ray in a Square

A ray enters a square at point , reflects off the top and bottom of the square, and leaves at point with integer coordinates. What is the ratio , where is the length of the side of the square?

A

B

|CD|/d

d=1,2,…,7