All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Country With n Cities (Posted on 2024-08-25) Difficulty: 3 of 5
In a country with n cities, there is a recurrent one -way flight between every pair of cities. Every flight has a constant price in the range $100, $120, $140, $160, $180.

A $N flight ticket gives unlimited access to flights that cost $N, and tickets can be traded for tickets of lower prices.

For example, with a $160 ticket, Brad could take a $160 ticket, trade his ticket for a $120 ticket, then take a $120 flight.

Alice loves flying and wonders how many successive flights she can take with one ticket.

Determine the minimum value of n needed to guarantee, that she can take 4 such flights.

No Solution Yet Submitted by K Sengupta    
Rating: 2.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts re: I do not understand Comment 3 of 3 |
(In reply to I do not understand by Steve Herman)

Oh, now I see what I was missing.  Once you trade down to a lower priced ticket, you can no longer take a higher priced flight.


Also, in order to be an interesting problem, the flights need to be distinct.

In fact, the problem is trivial if a flight from A to B is considered distinct from a flight from B to A.  We need to limit the problem so that one can only fly once between any unordered pair of cities.


  Posted by Steve Herman on 2024-08-27 08:35:32
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (12)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information