IMO Shortlist 1994 problem C4
Kvaliteta:
Avg: 0,0Težina:
Avg: 7,0 There are
cells in a row labeled from
to
and
cards labeled from
to
. The cards are arbitrarily placed in the cells, one per cell. The objective is to get card
into cell
for each
. The allowed move is to find the smallest
such that cell
has a card with a label
, pick up that card, slide the cards in cells
,
, ... ,
one cell to the left and to place card
in cell
. Show that at most
moves are required to get every card into the correct cell and that there is a unique starting position which requires
moves. [For example, if $n = 2$ and the initial position is 210, then we get 102, then 012, a total of 2 moves.]



















Izvor: Međunarodna matematička olimpijada, shortlist 1994