The applet below illustrates a problem from The American Mathematical Monthly (Vol. 75, No. 3. (Mar., 1968), pp. 299-301) proposed by D. W. Burns, Woodstock, Ill.
Given a finite sequence of nonnegative integers, consider the process of replacing each of the integers by the number of integers to its right which are smaller. Repeat the process in turn on each of the sequences obtained. Show that one will finally obtain a sequence such that repetition of the process makes no further change, i.e.,each integer equals the number of smaller integers to its right.
Many solutions were submitted, two have been published. One by induction and another so general that it prompted me to consider a few modifications of the problem. The problem requires to compare integers with those lying on their right. The applet allows to modify the condition of comparison from "smaller than" (LT) to "smaller than or equal to" (LE), "greater than" (GT), "greater than or equal to" (GE). The behavior of the iterations is different in every case, remarkably so in the last one, GE.
|What if applet does not run?|
Copyright © 1996-2018 Alexander Bogomolny
This solution is by E. S. Langford, U. S. Naval Postgraduate School.
The ultimate stability of 1-sequences is trivial, so suppose that every k-sequence is ultimately stable, and consider the
Suppose first that x''1 ≥ x'1. Iterate again to get
A similar argument holds if x''1 < x'1, since the sequence (x'1, x''1, x'''1, ... ) is bounded below by 0.
An associated combinatorial problem would be to enumerate all stable
A similar problem suggests itself when we replace "smaller" by "smaller than
or equal to" in the statement of the problem. In this case we can give the following more complete answer: Every
The proof is by induction on the following statement: Let the initial
This solution by C. B. A. Peck, Ordnance Research Laboratory, State College, Pa. We generalize the problem as follows: Given a finite sequence of objects from a set S, consider the process of replacing each object by an object in S depending only on the collection of objects to its right, the number of times an object occurs in the collection being taken into account. Repeat the process, etc.
The empty set is such a collection, and the first object (counting right to left) in the second sequence is thus determined and fixed thereafter. In general the nth object in the final sequence is determined by at most the nth sequence after the first.
It is not necessary that the process be applied to each object of the sequence, provided that some change results at each application. Furthermore, the arrangement of the objects in the sequence could be changed, if the same change is applied to all the sequences.
The change in the problem from "smaller than" to "greater than" makes iteration converge to a (stable) sequence of all zeros. (The last element becomes 0 on the first iteration and then others, perhaps a few at a time, also vanish for a similar reason.)
However, a change to "greater than or equal to" engenders a different behavior. In all examples I ran, the iterations settled to a 2-cycle, a repeating pattern of two sequences. This is obvious if we start with a monotone nonincreasing sequence. The next iteration will result in a sequence with all the terms 0 and the next one will then be
(n - 1, n - 2, n - 3, ..., 2, 1, 0)
which again leads to the 0 sequence. In a more general case, one of the sequences in the 2-cycle consists of groups of contiguous nonincreasing sequences whereas the other one parallels the first but in which the (same) groups consist of nondecreasing sequences.
The second solution above purports to encompass such situation but wrongly predicts convergence of the iterations.
Copyright © 1996-2018 Alexander Bogomolny[an error occurred while processing this directive]