olymmath

CMO 2012 Problem 5

  • Paper
  • Answer

A bookshelf contains nn volumes, labelled 1 to nn, in some order. The librarian wishes to put them in the correct order as follows. The librarian selects a volume that is too far to the right, say the volume with label kk, takes it out, and inserts it in the kk-th position. For example, if the bookshelf contains the volumes 1,3,2,41,3,2,4 in that order, the librarian could take out volume 2 and place it in the second position. The books will then be in the correct order 1, 2, 3, 4 .

(a) Show that if this process is repeated, then, however the librarian makes the selections, all the volumes will eventually be in the correct order.

(b) What is the largest number of steps that this process can take?

Dataset text NuminaMath olympiads. Quoted with source.

Show the answer

2^{n-1}-1

Solutions

No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

Add a solution

Locator ca-cmo/2012/p5 · Tag BB6RDCJCRK · Edit this page on GitHub · Keys: j next, k previous