Browse · MathNet
PrintFirst round – City competition
Croatia number theory
Problem
Determine the largest positive integer such that

Solution
Since is odd, the right-hand side is the product of two consecutive even numbers, so it is divisible by 8. The left-hand side is not divisible by 8, unless . It follows that the only solution is . 3.3. Let be the set of all cities in the country. We call a pair , where and are disjoint subsets of good if all cities in the set can be visited using only bus such that no city is visited twice and all cities in the set can be visited using only train such that no city is visited twice. Let be a good pair such that the set has the maximum number of elements. If we prove , the statement of the problem holds. Let us assume the opposite, i.e. there is a city which isn't from nor . Without loss of generality we can assume that and are non-empty, because otherwise we can transfer any city from a non-empty set to an empty one. Let be the number of cities in the set , and the number of cities in the set . Let us arrange the cities from in the series such that every two consecutive cities in that series are connected by a direct bus line. Also, let us arrange the cities from in the series such that every two consecutive cities in that series are connected by a direct train line. Since we assumed that the pair is maximum, the cities and have to be connected by train (otherwise the pair would be a good pair whose union would have more elements than ), and and have to be connected by bus (otherwise the pair would be a good pair whose union would have more elements than ). The cities and have to be connected by bus or by train. --- ## Croatia2016_booklet — Page 19
Final answer
2015
Techniques
Polynomials mod pDivisibility / Factorization