Misha came to country with cities, and every cities are connected by the road. Misha want visit some cities, but he doesn`t visit one city two time. Every time, when Misha goes from city to city , president of country destroy roads from city (president can`t destroy road, where Misha goes). What maximal number of cities Misha can visit, no matter how president does?
Solution
1. Model the Problem as a Graph:
Let be a complete graph representing the cities. In a complete graph, every pair of distinct vertices is connected by a unique edge. This means that every city is connected to every other city by a road.
2. Constraints on Misha's Travel:
Misha cannot visit a city more than once. Each time Misha travels from city to city , the president destroys roads from city , except the road Misha used to enter city .
3. Determine the Maximum Number of Cities Misha Can Visit:
Assume Misha has visited cities. After visiting cities, Misha cannot continue if there are no more roads available to travel to a new city.
4. Calculate the Number of Destroyed Roads:
- Misha has traveled times (since she starts at the first city and travels times to visit cities).
- Each time Misha travels to a new city, the president destroys roads from that city.
- Therefore, the total number of destroyed roads is .
5. Formulate the Inequality:
For Misha to be unable to continue her journey, the number of destroyed roads must be at least the total number of roads minus the roads she has used:
Simplifying this inequality:
6. Conclusion:
The maximum number of cities Misha can visit, regardless of how the president destroys the roads, is .
The final answer is .