Subcontests
(6)Maximums and minimums in permutation
Let n be a positive integer. For a permutation a1,a2,…,an of the numbers 1,2,…,n we definebk=1≤i≤kminai+1≤j≤kmaxajWe say that the permutation a1,a2,…,an is guadiana if the sequence b1,b2,…,bn does not contain two consecutive equal terms. How many guadiana permutations exist? Set closed under gcd
A set X of positive integers is said to be iberic if X is a subset of {2,3,…,2018}, and whenever m,n are both in X, gcd(m,n) is also in X. An iberic set is said to be olympic if it is not properly contained in any other iberic set. Find all olympic iberic sets that contain the number 33.