I found an answer. I'll outline my method below. However,
does anyone have a simpler method? I wouldn't want to advise OP to use this if there's a simpler way! Also
@damndaniel09 please let us know if you understand/ would be able to use this strategy (and if you think that there ought to be a simpler way). What have you been studying in class recently, and would you expect to use a method like this?
--
My strategy was to consider a single "cycle" as the dog going from X to Y and then from Y back to X (at which time X will be at a different position than they were at the start of the cycle).
1. Find an expression for how long a cycle takes in terms of the cycle's starting time.
2. Find an expression for the forward distance traveled by the dog, during one cycle, in terms of the cycle's starting time.
3. Using 1, find an expression for the staring time of cycle "n" (in terms of n). This involves solving a recursive sequence
4. Using 2 and 3,write a sum for the total forward distance from cycle 0 to cycle "n". Solving this giving an expression in terms of n
5. Using 4, find the limit of the total distance as "n" tends to infinity (this step is easy)
I found the result to be an integer (somewhere below 15,000m

)