Two frogs are on an eternal stairway. Will they ever be able to meet?
Anton is on step 14 and jumps 4 steps. Billy is on step 16 and jumps 6 steps.
The way I look at this is that as long as they're not on the same step, the one on the lowest jumps next, so:
- Their difference (Anton-Billy) is -2
- Anton jumps to step 18, difference = 2
- Billy jumps to step 22, difference = -4
- Anton jumps to step 22 - THEY MEET
If Anton had been on step 15 instead:
- Their difference is -1
- Anton jumps to step 19, difference is 3
- Billy jumps to step 22, difference is -3
- Anton jumps to step 23, difference is -1
- Since the difference has repeated, they will never meet
However, I am certain there's a much better way to find out if and where they will ever meet in a single equation.
In the very general case, suppose Anton starts on step $a_0$ and jumps by $a$ steps each time. Similarly, suppose Billy starts on step $b_0$ and jumps by $b$ each time. Let $n$ denote the number of jumps made by Anton, and $m$ the number of jumps made by Billy.
Then, we are trying to ask if the equation
$$a_0 + an = b_0 + bm$$
has a solution, for variables $n, m$ and constants $a_0,a,b_0,b$. Rewrite this equality as
$$an - bm = b_0 - a_0$$
This is a linear Diophantine equation in two variables. It is well-known that this has solutions if and only if $\gcd(a, b)$ divides $b_0 - a_0$ (see e.g. this math.se post), and thus the frogs can meet if and only if the difference in their starting positions is divisible by the greatest common divisor of their step distances.
For your specific instance, we have $a=4$ and $b=6$, whereby $\gcd(a,b)=2$. Thus, Anton and Billy meet only if the difference between their starting steps is even.