The function f(x,y) accepts an ordered pair as input and gives another ordered pair as output.
It is defined according to the following rules: If x>4,f(x,y) = (x-4,y) . If x<= 4 but y>4, f(x,y) = (x,y-4). Otherwise,(x+5,y+6) .
A robot starts by moving to the point (1,1).
Every time it arrives at a point (x,y), it applies f to that point and then moves to f(x,y).
If the robot runs forever, how many different points will it visit?
\( f(x,y) =\begin{cases} f(x-4,y), & \text{if } x>4 \\\\ f(x,y-4), & \text{if } x\le4 \text{ and } y > 4 \\\\ f(x+5,y+5), & \text{if } x\le4 \text{ and } y \le 4 \\ \end{cases}\)
\(\begin{array}{|rcrcrcrc|} \hline & &f(x+5,y+5) & & f(x-4,y) & & f(x,y-4) \\ \hline f(1,1) &\rightarrow & f(6,6) &\rightarrow & f(2,6) & \rightarrow & f(2,2) \\ &\rightarrow & f(7,7) &\rightarrow & f(3,7) & \rightarrow & f(3,3) & \\ &\rightarrow & f(8,8) &\rightarrow & f(4,8) & \rightarrow & f(4,4) & \\ &\rightarrow & f(9,9) &\rightarrow & f(5,9) \\ & & &\rightarrow & f(1,9) & \rightarrow & f(1,5) & \\ & & & & & \rightarrow & f(1,1) \\ \hline \end{array} \)
The robot will 14 different points visit.