WOLFRAM|DEMONSTRATIONS PROJECT

Ray in a Square

​
side length
3
4
5
6
7
new question
What is the
ratio CD/5?
0
A ray enters a square at point
A
, reflects off the top and bottom of the square, and leaves at point
B
with integer coordinates. What is the ratio
|CD|/d
, where
d=1,2,…,7
is the length of the side of the square?