Hansel has to count upwards from 1, increasing the value by
each second.
Gretel has to count downwards from 1000, decreasing the value by
each second.
If and are both positive integers, at how many (distinct) seconds can they possibly say the same number at the same time?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
At time t , Hansel will say 1 + n t will Gretel will say 1 0 0 0 − m t .
Thus, we're interested in the values of t such that
1 + n t = 1 0 0 0 − m t ⇒ ( n + m ) t = 9 9 9
So, t must be a positive divisor of 9 9 9 = 3 3 × 3 7 . There are ( 3 + 1 ) ( 1 + 1 ) = 8 of them, namely 1 , 3 , 9 , 2 7 , 3 7 , 1 1 1 , 3 3 3 , 9 9 9 .
However, we also require that n and m are both positive integers, which means that n + m ≥ 2 . Hence, t ≤ 2 9 9 9 , which means that we cannot include t = 9 9 9 as an answer.
For each of remaining 7 values, we have n = 1 , m = t 9 9 9 − 1 as a solution set. Thus, there are 7 possible values for t .