Problem 6, Iberoamerican Olympiad 2011
Source:
October 2, 2011
floor functioncombinatorics proposedcombinatorics
Problem Statement
Let and be positive integers, with . In a straight line there are stones of colours, such that there are stones of each colour. A step consists of exchanging the position of two adjacent stones. Find the smallest positive integer such that it is always possible to achieve, with at most steps, that the stones are together, if:
a) is even.
b) is odd and