ROSECODE 556
The Two Cities
A traveler goes from city to city .
When traveling uphill, he moves at speed km/h
When traveling on flat road, he moves at speed km/h
When traveling downhill, he moves at speed km/h
(Of course )
To go from to , it takes hours.
To go from to , it takes hours.
For some triples these information are sufficient to determinate the distance between and
(For instance )
How many such triples of positive integers with are there if ?
[My timing: 40 sec]
All values in this problem (speed or distance) are assumed to be integers.
When traveling uphill, he moves at speed
When traveling on flat road, he moves at speed
When traveling downhill, he moves at speed
(Of course
To go from
To go from
For some triples
(For instance
How many such triples of positive integers
[My timing: 40 sec]
All values in this problem (speed or distance) are assumed to be integers.