Slični zadaci
A pile of
pebbles is placed in a vertical column. This configuration is modified according to the following rules. A pebble can be moved if it is at the top of a column which contains at least two more pebbles than the column immediately to its right. (If there are no pebbles to the right, think of this as a column with 0 pebbles.) At each stage, choose a pebble from among those that can be moved (if there are any) and place it at the top of the column to its right. If no pebbles can be moved, the configuration is called a final configuration. For each
, show that, no matter what choices are made at each stage, the final configuration obtained is unique. Describe that configuration in terms of
.
IMO ShortList 2001, combinatorics problem 7, alternative



IMO ShortList 2001, combinatorics problem 7, alternative
For any integer
, we compute the integer
by applying the following procedure to its decimal representation. Let
be the rightmost digit of
.
If
, then the decimal representation of
results from the decimal representation of
by removing this rightmost digit
.If
we split the decimal representation of
into a maximal right part
that solely consists of digits not less than
and into a left part
that either is empty or ends with a digit strictly smaller than
. Then the decimal representation of
consists of the decimal representation of
, followed by two copies of the decimal representation of
. For instance, for the number
, we will have
,
and
.Prove that, starting with an arbitrary integer
, iterated application of
produces the integer
after finitely many steps.
Proposed by Gerhard Woeginger, Austria




If




















Proposed by Gerhard Woeginger, Austria