41.6k views
2 votes
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 less equal 4 but y > 4, f(x,y) = (x,y - 4). Otherwise, f(x,y) = (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?​

User Jiyeh
by
7.9k points

1 Answer

7 votes

9514 1404 393

Answer:

15

Explanation:

In order, the points visited are ...

{1,1}, {6,7}, {2,7}, {2,3}, {7,9}, {3,9}, {3,5}, {3,1}, {8,7}, {4,7}, {4,3}, {9,9}, {5,9}, {1,9}, {1,5}, and {1,1}, which starts the sequence over again.

A total of 15 different points are visited.

User JimR
by
8.1k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.