In a country, there are 100 cities. Each of these cities is connected to exactly three other cities by direct two-way roads. Prove that there exists a city from which one can travel from city to city and return to , without ever using the same road twice, and using a total number of roads that is not divisible by 3 (it is not required that all cities in the country be visited during this journey).
Problem 1355
Official solution
Since there is only a finite number of cities, we can consider a path C of maximum length. Let be one of the cities at the ends of C and traverse C starting from , numbering the cities as we go. The maximality of C ensures that the three cities connected to by a road are in C. These are , and with . We have thus identified three cycles:
If or is not divisible by 3, one of the first two cycles will do. Otherwise, it means where and the third cycle allows us to conclude.