This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Inventory Loops (i.e. Counting Sequences) have Pre-period 2maxS1+602\max S_{1}+60

Onno M. Cain - [email protected]
Sela T. Enin - [email protected]
(March 2020)

Abstract. An Inventory Sequence (S0,S1,S2,)(S_{0},S_{1},S_{2},...) is the iteration of the map ff defined roughly by taking an integer to its numericized description (e.g. f(1381)=211318f(1381)=211318 since “13811381” has two 11’s, one 33, and one 88). Our work analyzes the iteration under the infinite base. Any starting value of positive digits is known to be ultimately periodic [1] (e.g. S0=1381S_{0}=1381 reaches the 1-cycle f(3122331418)=3122331418f(3122331418)=3122331418). Parametrizations of all possible cycles are also known [2,3]. We answer Bronstein and Fraenkel’s open question of 26 years showing the pre-period of any such starting value is no more than 2M+602M+60 where M=maxS1M=\max S_{1}. And oddly the period of the cycle can be determined after only O(loglogM)O(\log\log M) iterations.

1 Games and Grammar

Mathematicians (as we all know by now) play games and often do so turning sentences into numbers. For example, what happens when we describe a number in English, and numericize the description? The number 1381 for example has

two 11’s, one 33, and one 8𝟐1𝟏3𝟏88\quad\rightarrow\quad\mathbf{2}1\mathbf{1}3\mathbf{1}8.

We might call “211318211318” the child of 13811381. So what’s the grandchild? The number 211318211318 has

three 11’s, one 22, one 33, and one 8𝟑1𝟏2𝟏3𝟏88\quad\rightarrow\quad\mathbf{3}1\mathbf{1}2\mathbf{1}3\mathbf{1}8.

Going on like this we generate the “Family Lineage” of 13811381,

[Uncaptioned image]

Figure 1.1

and find 𝟑1𝟐2𝟑3𝟏4𝟏8\mathbf{3}1\mathbf{2}2\mathbf{3}3\mathbf{1}4\mathbf{1}8 which has three 11’s, two 22’s, three 33’s, one 44, and one 88. We have found a number which describes itself (is the mathematical equivalent of an autogram!). Some call these self-inventoried numbers since they “take inventory”, so to speak, of their own digits. In our terms, we would say 31223314183122331418 is its own parent. So are there numbers strictly their own Grandparents? Great-grandparents? Yes and yes.

[Uncaptioned image]

Figure 1.2

The former examples terminate the Family Lineages of 5656 and 6767 respectively. These cycles will come up repeatedly in the article. We call them Inventory Loops since each entry takes inventory, so to speak, of its predecessor.

Similarly to Monopoly, as one continues playing, various rule choices come up.

  1. 1.

    When multi-digit numbers appear do we leave them clumped or split? E.g.111Thanks to math.stackexchange user Alexander Sibelius for improving this strange question’s wording. Does “1313” become one “11” and one “33” or a single “(13)(13)”?

  2. 2.

    Can we pick a starting value with infinite digits?

  3. 3.

    What order do we count the digits in? (notice so far digits have been counted up smallest-to-largest)

  4. 4.

    Do we count all the digits? or just consecutive runs? or even digits of all preceding ancestor?

  5. 5.

    Can we skip nouns?

Each answer choice branches a new variation and – wonderfully! – all the aforementioned variations have been studied. The first question is really asking whether our base is infinite (see [1,2,3]) or finite (see [5,6]). There are also perfectly reasonable infinite starting values [1]. The “number”222Since “(10)(10)” is acting as a single “digit” it is more technically correct to call this a sequence rather than a number. 2132231455565758696(10)2132231455565758696(10)... has

two 11’s, three 22’s, two 33’s, one 44, five 55’s, five 66’s, five 77’s, five 88’s, six 99’s, six 1010’s, …

Digits can be counted smallest-to-largest (see [1,2,3,8,9]), by appearance (see [5,6,7]), or largest-to-smallest (which isn’t much different from smallest-to-largest). And we have been counting all digits at once (see [1,2,3,6,8,9]) but the most famous variation – Conway’s look-and-say sequence [4,7] – counts only consecutive runs. Counting the digits of all ancestor has even been played (see OEIS:A060857). Lastly, one can skip nouns (see [8,9]) obtaining 𝟔𝟐𝟏𝟎𝟎𝟎𝟏𝟎𝟎𝟎\mathbf{6210001000} which has

six 0’s, two 11’s, one 22, zero 33’s, zero 44’s, zero 55’s, one 66, zero 77’s, zero 88’s, and zero 99’s.

These and other variations can be found on the Online Encyclopedia of Integer Sequences [10] (see A098155, A083671, A005151, A047842, A007890, A005150, A006711 for a sampling).

Researching any of these variations is confusing at first as many of them receive multiple names and some names are used of multiple variations. That is, the name\rightarrowvariation map is ill-defined in both directions. Our variation of present concern is studied in [1,2,3]:

  1. 1.

    infinite base (=clumping multi-digits),

  2. 2.

    finite amount of digits,

  3. 3.

    counting smallest-to-largest

  4. 4.

    all digits of the parent only,

  5. 5.

    and keeping nouns.

Although, the order of counting doesn’t have much effect as we’ll see later.

Bronstein and Fraenkel showed in 1994 [1] all starting values of positive digits eventually reach an Inventory Loop. They asked a few follow-up questions. One about a different variation was answered by Sauerberg and Shu in 1997 [3]. The only question about our present variation was: how long will a given starting value take to reach an Inventory Loop? (in their terms: what are “meaningful pre-period bounds”?). British mathematician The Math Book by Clifford Pickover mentions Roger Hargrave also did work on our variation but Mr. Pickover unfortunately no longer has the source 333Correspondence with the author.. That is all to say, the pre-period (or “time-to-loop”) has remained unbounded for 26 years.

Here, we replicate the enumerations of Inventory Loops in [1,2,3] by alternate methods leading to a pre-period bound of 2M+602M+60 where M=maxS1M=\max S_{1} is either the largest entry of our starting value or no greater than its length.

2 Clarifying Names

Our variation alone has appeared under the names “Counting Sequences” [1,2,3], “Reverse-likeness Sequences” [4], the “Pea-pattern Sequence” [5], and “Inventory Sequences” [6]. Technically, the first of the names is the only source in which the infinite base variation is rigorously defined (the base is either finite or undefined in the latter three sources). It is therefore tempting to leave our particular variation under the name “Counting Sequences” but the author hesitates to do so for two reasons.

  1. 1.

    Self-descriptive numbers [8,9] are sometimes called “Self-counting” numbers and thus we would have ambiguity between the nounless [8,9] and nounful [1,2,3,4,5,6,7] variations.

  2. 2.

    The adjective “Counting” is in general hideously ambiguous in mathematics.

Out of the aforementioned names, “Inventory” is intuitive and has relatively little existing usage in the literature. It is therefore proposed to call both the finite-base and infinite-base variations of our iteration “Inventory Sequences” and the corresponding cycles “Inventory Loops”. For example we would say: “Kowacs [5] enumerates Inventory Loops in bases 22 through 99” – and – “We analyze Inventory Loops in the infinite base” – etc.

3 Multisets

Our analysis will be done in the language of multisets – that is (as one may guess) sets with multiple copies of elements. This guts much redundancy from the start since ff maps integers/sequences to the same value regardless of their digits/elements’ ordering (e.g. f(1381)=f(1138)=f(8113)=f(1381)=f(1138)=f(8113)=...). To build up ff in the multiset ecosystem some symbols must be first defined. Let

  • +={1,2,3,}\mathbb{N}_{+}=\{1,2,3,...\} denote positive integers,

  • +\mathbb{N}_{+}^{*} denote multisets of positive integers (e.g. S={1,1,3,8}+S=\{1,1,3,8\}\in\mathbb{N}_{+}^{*}),

  • [R][R]” denote the set of elements in RR (e.g. [S]={1,3,8}[S]=\{1,3,8\}),

  • multR(x)\text{mult}_{R}(x)444Note a multiset RR is also a set if multR:+{0,1}\text{mult}_{R}:\mathbb{N}_{+}^{*}\rightarrow\{0,1\}. denote “the multiplicity of xx in RR” (e.g. multS(1)=2,multS(4)=0\text{mult}_{S}(1)=2,\ \text{mult}_{S}(4)=0), and

  • μ(R)\mu(R)” denote “The multiset of multiplicities in RR”. I.e.

    μ(R)={multR(x):x[R]}\mu(R)=\{\text{mult}_{R}(x):x\in[R]\}

    So for example μ({1,1,3,8})={1,1,2}\mu(\{1,1,3,8\})=\{1,1,2\}.

  • For multisets A,B+A,B\in\mathbb{N}_{+}^{*}, the sum “A+BA+B” will mean concatenation (essentially adding multiplicities). I.e.

    multA+B(x)=multA(x)+multB(x).\text{mult}_{A+B}(x)=\text{mult}_{A}(x)+\text{mult}_{B}(x).

    So for example {1,3,8}+{1,1,2}={1,1,1,2,3,8}\{1,3,8\}+\{1,1,2\}=\{1,1,1,2,3,8\}. This generalizes set union.

  • And “ABA^{B}” will mean “the elements of AA also in BB”. Thus if we have A={1,1,2}A=\{1,1,2\} and B={1,3,8}B=\{1,3,8\} then AB={1,1}A^{B}=\{1,1\}. This generalizes set intersection.

  • Similarly “A¬BA^{\neg B}” will mean “the elements of AA not in BB”. Thus A¬B={2}A^{\neg B}=\{2\} and B¬A={3,8}B^{\neg A}=\{3,8\}. This – as may be expected – generalizes set difference.

With the new vocabulary our iteration of interest f:++f:\mathbb{N}_{+}^{*}\rightarrow\mathbb{N}_{+}^{*} becomes

f(S)=[S]+μ(S).f(S)=[S]+\mu(S).

For example, f({1,1,3,8})={1,1,1,2,3,8},f2({1,1,3,8})={1,1,1,1,2,3,3,8},f(\{1,1,3,8\})=\{1,1,1,2,3,8\},\ f^{2}(\{1,1,3,8\})=\{1,1,1,1,2,3,3,8\},\ etc.

In addition to these symbols, we also use metaphor throughout to guide intuition. The metaphorical terms will be capitalized from here on to avoid ambiguity and are as follows555The authors wonder if all mathematicians shouldn’t enumerate their metaphors as with definitions.

  • f(S)f(S) is thought of as the Child of SS and thus ff as the Parent\rightarrowChild map (f2(S)f^{2}(S) is thought of as the Grandchild and so on).

  • Accordingly S0𝑓S1𝑓S2𝑓S_{0}\overset{f}{\rightarrow}S_{1}\overset{f}{\rightarrow}S_{2}\overset{f}{\rightarrow}... is thought of as the Family Lineage of S0S_{0},

  • Any R+R\in\mathbb{N}_{+}^{*} such that fk(R)=Sf^{k}(R)=S for some k>0k>0 is thought of as an Ancestor of SS, and all such Ancestors are thought of as the Family Tree or Ancestry of SS.

  • S0S_{0} is thought of as the First Generation, S1S_{1} as the Second Generation, and so on.

  • The largest element maxS\max S is thought of as the Height of SS. Thus if maxf(S)>maxS\max f(S)>\max S we say f(S)f(S) has Grown Taller than its Parent.

  • The set of multiplicities μ(S)\mu(S) is thought of as the Adjectives of SS and the set [S][S] as the Nouns of SS.

  • Later on, some particular Adjectives which are neither the smallest or the largest of a multiset will be called the Core Adjectives.

  • Also later on, some multisets are obtained from others by removing or decreasing elements. This is thought of as Deterioration and the resulting multiset as a Deteriorate.

Lastly, for easier reading we sometimes represent multisets as integers (e.g. “4142x37y4142x37y” stands for “{4,1,4,2,x,3,7,y}\{4,1,4,2,x,3,7,y\}”). Parenthesis are placed where ambiguity requires (e.g. “113777(12)(77)113777(12)(77)” stands for “{1,1,3,7,7,7,12,77}\{1,1,3,7,7,7,12,77\}”). This will be specified when used as “Integer Notation”.

4 Establishing Cycles

This section we 1) specify multisets Taller than their Parents, 2) deduce therefrom all Inventory Sequences reach a maximum Height, and 3) conclude a Loop results in all cases. Presume our Inventory Sequence {Si}i=0\{S_{i}\}_{i=0}^{\infty} (so in other words S0𝑓S1𝑓S2𝑓S_{0}\overset{f}{\rightarrow}S_{1}\overset{f}{\rightarrow}S_{2}\overset{f}{\rightarrow}...). We take the first part first.

Lemma 4.1.

If maxSi+1>maxSi\max S_{i+1}>\max S_{i} and i1i\geq 1 then Si1=m{1,,n}S_{i-1}=m\{1,...,n\} where 1mn1\leq m\leq n. In other words if a multiset past the first Generation is Taller than its Parent, we can nicely parametrize its Grandparent in two variables.

Proof.

The plan is to nail down [Si1][S_{i-1}] with one bound, nail down μ(Si1)\mu(S_{i-1}) with a second, and then put them together giving a form for Si1S_{i-1} itself.

Since i0i\not=0, Si1S_{i-1} exists and Si=[Si1]+μ(Si1)S_{i}=[S_{i-1}]+\mu(S_{i-1}). Let n=|[Si1]|=|μ(Si1)|n=|[S_{i-1}]|=|\mu(S_{i-1})|, the amount of distinct elements in Si1S_{i-1}. It follows by pigeon-holing some element of Si1S_{i-1} is at least nn (just as if you had ten people in a room all different ages some person must be at least ten years old). And by the inclusion [Si1]Si[S_{i-1}]\subseteq S_{i} we can know

maxSimaxSi1n\max S_{i}\geq\max S_{i-1}\geq n

with equality throughout when [Si]=[Si1]={1,,n}[S_{i}]=[S_{i-1}]=\{1,...,n\}.

Next notice maxSi+1\max S_{i+1} must be an Adjective of SiS_{i} (otherwise maxSi+1Si\max S_{i+1}\in S_{i}). So maxSi+1=multSi(m)\max S_{i+1}=\text{mult}_{S_{i}}(m) for some mSim\in S_{i}. Because [Si1][S_{i-1}] by definition contains only distinct values we know multSi(m)|μ(Si1)|+1=n+1\text{mult}_{S_{i}}(m)\leq|\mu(S_{i-1})|+1=n+1. Thus

maxSi+1=multSi(m)n+1\max S_{i+1}=\text{mult}_{S_{i}}(m)\geq n+1

with equality when μ(Si1)=n{m}\mu(S_{i-1})=n\{m\} for some m[Si1]m\in[S_{i-1}].

Taking our inequalities together,

n+1maxSi+1>maxSinn+1\geq\max S_{i+1}>\max S_{i}\geq n

implies equality in both cases. Consequently [Si1]={1,,n}[S_{i-1}]=\{1,...,n\} and μ(Si1)=n{m}\mu(S_{i-1})=n\{m\} which together force Si1=m{1,,n}S_{i-1}=m\{1,...,n\}. The constraint “mSi1m\in S_{i-1}” becomes “1mn1\leq m\leq n”. ∎

Corollary 4.1.1.

The Height of a multiset is either equal to, or the increment of, its Parent’s Height (excepting only when the Parent is the starting value).

Lemma 4.2.

If i1i\geq 1 then |Si+1||Si||S_{i+1}|\geq|S_{i}|. In other words, a Child is always larger (in order) than its Parent except possibly only when the Parent is the starting value.

Proof.

The inclusion [Si1]Si[S_{i-1}]\subseteq S_{i} tells us |[Si]||[Si1]||[S_{i}]|\geq|[S_{i-1}]|. The lemma follows from |Si+1|=2|[Si]||S_{i+1}|=2|[S_{i}]| and |Si|=2|[Si1]||S_{i}|=2|[S_{i-1}]|

Lemma 4.3.

If maxSi+1>maxSi\max S_{i+1}>\max S_{i} and i2i\geq 2 then either Si1={1,,n}S_{i-1}=\{1,...,n\} or Si1=2{1,,n}S_{i-1}=2\{1,...,n\}.

Proof.

Lemma 4.1 applies so Si1=m{1,,n}S_{i-1}=m\{1,...,n\} for some 1mn1\leq m\leq n. Consequently Si=[Si1]+μ(Si1)={1,,n}+n{m}S_{i}=[S_{i-1}]+\mu(S_{i-1})=\{1,...,n\}+n\{m\}. The bound i2i\geq 2 implies Si1S_{i-1} is not the starting value – and therefore Lemma 4.2 gives us

|Si|=2nmn=|Si1||S_{i}|=2n\geq mn=|S_{i-1}|

implying m=1,2m=1,2. ∎

Lemma 4.4.

If maxSi+1>maxSi\max S_{i+1}>\max S_{i} and i3i\geq 3 then Si1S_{i-1} is one of

{1,2},{1,2,3,4},{1,2,3,4,5,6},{1,1,2,2,3,3}.\{1,2\},\quad\{1,2,3,4\},\quad\{1,2,3,4,5,6\},\quad\{1,1,2,2,3,3\}.

In other words, if a multiset past the fourth Generation is Taller than its Parent, its Grandparent must be one of the former multisets.

Proof.

Lemma 4.3 narrows Si1S_{i-1} down to two possibilities.

In the case Si1={1,,n}S_{i-1}=\{1,...,n\} the number nn must be even since |Si1|=n=2|[Si2]||S_{i-1}|=n=2|[S_{i-2}]|. We will bound nn by the fact

|Si2|=xμ(Si2)x.|S_{i-2}|=\sum_{x\in\mu(S_{i-2})}x.

Since μ(Si2)Si1={1,,n}\mu(S_{i-2})\subseteq S_{i-1}=\{1,...,n\} and since μ(Si2)\mu(S_{i-2}) contains n2\frac{n}{2} elements the former tells us |Si2|1+2++n2=n(n+2)8|S_{i-2}|\geq 1+2+...+\frac{n}{2}=\frac{n(n+2)}{8} (the latter equality is the triangular number formula Tk=k(k+1)2T_{k}=\frac{k(k+1)}{2} with k=n2k=\frac{n}{2}). Using Lemma 4.2 again,

n=|Si1||Si2|n(n+2)8n=|S_{i-1}|\geq|S_{i-2}|\geq\frac{n(n+2)}{8}

implies n+281\frac{n+2}{8}\leq 1 or equivalently n6n\leq 6. Thus in this first case n{2,4,6}.n\in\{2,4,6\}.

Alternatively if Si1=2{1,,n}S_{i-1}=2\{1,...,n\} we create a similar bound using

2n=|Si1||Si2|1+2++n=n(n+1)22n=|S_{i-1}|\geq|S_{i-2}|\geq 1+2+...+n=\frac{n(n+1)}{2}

yielding n3n\leq 3. But we can do better. The multisets Si1={1,1}S_{i-1}=\{1,1\} and Si1={1,1,2,2}S_{i-1}=\{1,1,2,2\} (corresponding to n=1n=1 and n=2n=2) have no Grandparents because their Parents,

{1}and{1,1,2},{1,2,2},\{1\}\quad\text{and}\quad\{1,1,2\},\ \{1,2,2\},

are all odd in order. But Si1S_{i-1} must have Grandparents by i3i\geq 3 implying n1,2n\not=1,2. This leaves n=3n=3 and Si1={1,1,2,2,3,3}.S_{i-1}=\{1,1,2,2,3,3\}.

We are ready for part 2. The Family Trees of the four possible Si1S_{i-1}’s of the previous lemma were worked out in full. And only three Family Trees are actually needed since {1,2}\{1,2\} appears in {1,1,2,2,3,3}\{1,1,2,2,3,3\}’s Ancestry.

[Uncaptioned image]

Figure 4.1

[Uncaptioned image]

Figure 4.2

[Uncaptioned image]

Figure 4.3

Integer Notation is being used (e.g. “111333111333” stands for “{1,1,1,3,3,3}\{1,1,1,3,3,3\}”). Orange nodes are odd in order (and therefore have no Parents). Blue nodes have so many elements Nouns cannot be selected distinctly (again meaning no Parents).

The figure lets us enumerate all starting values with Tallest Descendants appearing past the fourth Generation.

Theorem 4.5.

For all S0+S_{0}\in\mathbb{N}_{+}^{*} the maximum Height appears by S8S_{8} and, for all but finitely many S0S_{0}, by S3S_{3} (I.e. maxSi=maxS8\max S_{i}=\max S_{8} for i8i\geq 8). The exceptions are given exhaustively by the entries (and the Descendants) of

max at S0S_{0}
S4S_{4} 1112223, 22224444, 44444455555566661112223^{*},\ 22224444,\ 4444445555556666^{**}
S5S_{5} 11122, 111222, 111333, 11222, 113, 11333, 133, 222244, 223, 224444, 23311122,\ 111222,\ 111333,\ 11222,\ 113,\ 11333,\ 133,\ 222244,\ 223,\ 224444,\ 233
S6S_{6} 222, 222333222,\ 222333
S7S_{7} 111333, 112, 122, 2, 22233, 22333, 333111333,\ 112,\ 122,\ 2,\ 22233,\ 22333,\ 333
S8S_{8} 1, 111, 31,\ 111,\ 3

The entries are written as integers for easier reading (e.g. “1133311333” stands for {1,1,3,3,3}\{1,1,3,3,3\}).

* The entry “11122231112223” in particular stands for a Family of 1515 multisets: the Grandparents of “112233112233” which themselves have no Parents. The Family is also equivalent to f2({1,1,2,2,3})f1(1,1,1,2,2,3)f^{-2}(\{1,1,2,2,3\})-f^{-1}(1,1,1,2,2,3).

** The entry “44444455555566664444445555556666” in particular stands for a Family of 1818 multisets: the Grandparents of “123456123456”.

Proof.

Lemma 2.4 ensures all such exceptions must pass through one of the four given Si1S_{i-1} values. The Family Trees given above are complete since a multiset has no Parent if

  1. 1.

    its order is odd or

  2. 2.

    there are too many elements to assign Nouns distinctly (i.e. if |S|>2|[S]||S|>2|[S]|).

Thus ends part 2 of this section. Part 3 is the shortest.

Corollary 4.5.1.

The Inventory Game ends in a Loop for all S0+S_{0}\in\mathbb{N}_{+}^{*}.

Proof.

Since maxSi=maxS8\max S_{i}=\max S_{8} for i8i\geq 8, the proceeding multisets are bounded in length (in particular |Si|2maxS8|S_{i}|\leq 2\max S_{8}). Thus the Descendants can take on only (maxS8)2maxS8(\max S_{8})^{2\max S_{8}}. ∎

Corollary 4.5.2.

This gives us our first (and worst) pre-period bound: O(M2M)O(M^{2M}) where M=maxS1.M=\max S_{1}.

Proof.

Since Height at most increments we know maxS8maxS1+7O(M)\max S_{8}\leq\max S_{1}+7\in O(M). Past S8S_{8}, all multisets are one of M2MM^{2M} values. ∎

5 Enumerating Cycles

It turns out easier to create another game having cycles corresponding to the those of the Inventory Game and then to find all the cycles in the new game. This new game is played on the Adjectives of the Inventory Game.

Firstly, we define the new Parent-Child relationship with two functions:

  1. 1.

    μ+(S)={multS(x)+1:x[S]}={m+1:mμ(S)}\mu_{+}(S)=\{\text{mult}_{S}(x)+1:x\in[S]\}=\{m+1:m\in\mu(S)\}

  2. 2.

    gn(S)=μ+(S)+(n|μ+(S)|){1}g_{n}(S)=\mu_{+}(S)+(n-|\mu_{+}(S)|)\{1\}

Lemma 5.1.

Every cycle under ff corresponds to a cycle under some gng_{n}. In particular if

S0𝑓S1𝑓𝑓Sk=S0S_{0}\overset{f}{\rightarrow}S_{1}\overset{f}{\rightarrow}...\overset{f}{\rightarrow}S_{k}=S_{0}

then

μ(S0)gnμ(S1)gngnμ(S0)=μ(Sk).\mu(S_{0})\overset{g_{n}}{\rightarrow}\mu(S_{1})\overset{g_{n}}{\rightarrow}...\overset{g_{n}}{\rightarrow}\mu(S_{0})=\mu(S_{k}).

with n=|[S0]|n=|[S_{0}]|

Proof.

The rule Si+1=f(Si)=[Si]+μ(Si)S_{i+1}=f(S_{i})=[S_{i}]+\mu(S_{i}) gives us an inclusion chain

[S0][S1][Sk]=[S0][S_{0}]\subseteq[S_{1}]\subseteq...\subseteq[S_{k}]=[S_{0}]

forcing [S0]=[S1]==[Sk][S_{0}]=[S_{1}]=...=[S_{k}]. So let R=[S0]==[Sk]R=[S_{0}]=...=[S_{k}] and we get a new rule

Si+1=R+μ(Si).S_{i+1}=R+\mu(S_{i}).

For easier further reading, we use a change of variables: Ai=μ(Si)A_{i}=\mu(S_{i}) (with AiA_{i} for AAdjectives!). The the new rule becomes Si+1=R+AiS_{i+1}=R+A_{i}. Taking this together with the fact that [Ai][Si+1]=R[A_{i}]\subset[S_{i+1}]=R we deduce

Ai+1=μ(Si+1)=μ(R+Ai)=μ+(Ai)+k{1}A_{i+1}=\mu(S_{i+1})=\mu(R+A_{i})=\mu_{+}(A_{i})+k\{1\}

where k=|R||[Ai]|k=|R|-|[A_{i}]|. Letting n=|R|n=|R| and substituting |[Ai]|=|μ(Ai)|=|μ+(Ai)||[A_{i}]|=|\mu(A_{i})|=|\mu_{+}(A_{i})| we have k=n|μ+(Ai)|k=n-|\mu_{+}(A_{i})| which by definition means Ai+1=gn(Ai)A_{i+1}=g_{n}(A_{i}). ∎

To further investigate gng_{n} we should place it in its natural habitat. Let Tn+T_{n}^{*}\subset\mathbb{N}_{+}^{*} be the set of all order nn multisets whose totals are twice their order. In other words

Tn={S+:2|S|=2n=xSx}.T_{n}^{*}=\{S\in\mathbb{N}_{+}^{*}:2|S|=2n=\sum_{x\in S}x\}.
Lemma 5.2.

Our function gng_{n} sends any multiset of nn elements into TnT_{n}^{*}. That is, if |S|=n|S|=n then gn(S)Tng_{n}(S)\in T_{n}^{*}.

Proof.

Suppose |S|=n|S|=n. Noting firstly |μ+(S)|=|[S]||\mu_{+}(S)|=|[S]|, the order

|gn(S)|=|μ+(S)|+n|[S]|=n|g_{n}(S)|=|\mu_{+}(S)|+n-|[S]|=n

is correct. Proceedingly observe

mμ+(S)m=|μ+(S)|+mμ(S)m=|[S]|+n.\sum_{m\in\mu_{+}(S)}m=|\mu_{+}(S)|+\sum_{m\in\mu(S)}m=|[S]|+n.

From this it follows the total,

xgn(S)x=n|μ+(S)|+mμ+(S)m=2n,\sum_{x\in g_{n}(S)}x=n-|\mu_{+}(S)|+\sum_{m\in\mu_{+}(S)}m\quad=2n,

is correct as well. ∎

Corollary 5.2.1.

Every cycle of multisets with order 2n2n corresponds to a cycle in TnT_{n}^{*} under gng_{n}.

Accordingly here are graphs displaying the action of gng_{n} on T1,,T7T_{1}^{*},...,T_{7}^{*}:

[Uncaptioned image]

Figure 5.1

The cycles are marked with thicker cell borders and once again we use integers to represent multisets (e.g. “111225111225” stands for “{1,1,1,2,2,5}\{1,1,1,2,2,5\}”).

Theorem 5.3.

The Inventory Loops of 1414 elements or less are given exhaustively by

No. elements Loop(s)
22 22...\rightarrow 22\rightarrow...
88 2132231a...\rightarrow 2132231a\rightarrow...
31331a1b...\rightarrow 31331a1b\rightarrow...
1010 3122331a1b...\rightarrow 3122331a1b\rightarrow...
1212 314213241a1b412223241a1b...\rightarrow 314213241a1b\rightarrow 412223241a1b\rightarrow...
1414 413223241a1b1c...\rightarrow 413223241a1b1c\rightarrow...
41421314251a1b51221334151a1b51222314251a1b...\rightarrow 41421314251a1b\rightarrow 51221334151a1b\rightarrow 51222314251a1b\rightarrow...

where a,b,a,b, and cc can be any distinct whole numbers that aren’t already in the Loop.

Proof.

By the Corollary, any such Inventory loop must correspond to one of the nine cycles shown in Figure 5.1. The seven Inventory Loops above correspond to the cycles under g1,g4,g5,g6g_{1},g_{4},g_{5},g_{6} and g7g_{7} (in the manner laid out in Lemma 5.1). We claim the cycles under g2g_{2} and g3g_{3} do not correspond to any Inventory Loop.

The cycle of g2g_{2} oscillates between {2,2}\{2,2\} and {1,3}\{1,3\}. But this means any corresponding Inventory Loop must contain 1,21,2 and 33 and thus be at least order 66. But the correspondence would enforce g2g_{2}’s Loop order 44. Similarly, the cycle under g3g_{3} suffers the same illness. Any corresponding loop would contain 1,2,3,1,2,3, and 44 – and would therefore be on multisets at least order 88. ∎

We could use this same strategy on g8,g9,g_{8},g_{9}, and so on… But we have infinitely gng_{n} to go! We need an approach to knock out n8n\geq 8 and will create one in the next lemma (which should really be three or four lemmas but every attempt to split it felt unnatural and added confusion – so it was left as a single super-lemma).

Lemma 5.4.

Any cycle in TnT_{n}^{*} under gng_{n} with n8n\geq 8 contains one of

{1,,1,2,n},{1,,3,n1},\{1,...,1,2,n\},\quad\{1,...,3,n-1\},
{1,,1,2,2,n1},{1,,1,2,3,n2},\{1,...,1,2,2,n-1\},\quad\{1,...,1,2,3,n-2\},
{1,,1,2,2,2,n2},{1,,1,2,2,3,n3}.\{1,...,1,2,2,2,n-2\},\quad\{1,...,1,2,2,3,n-3\}.
Proof.

Suppose our cycle

A0gnA1gngnAk=A0.A_{0}\overset{g_{n}}{\rightarrow}A_{1}\overset{g_{n}}{\rightarrow}...\overset{g_{n}}{\rightarrow}A_{k}=A_{0}.

The total proof consists of ten subproofs each of which respectively proves

  1. 1.

    |[Ai+1]||[Ai]|+1|[A_{i+1}]|\leq|[A_{i}]|+1,

  2. 2.

    |[Ai+2]||[μ2(Ai)]|+2|[A_{i+2}]|\leq|[\mu^{2}(A_{i})]|+2,

  3. 3.

    if |[Ai+1]|=|[Ai]|+1|[A_{i+1}]|=|[A_{i}]|+1 then |[Ai+2]|3|[A_{i+2}]|\leq 3,

  4. 4.

    if |[Ai+1]|=|[Ai]||[A_{i+1}]|=|[A_{i}]| then |[Ai+2]|4|[A_{i+2}]|\leq 4,

  5. 5.

    |[Ai]|4|[A_{i}]|\leq 4 for all ii,

  6. 6.

    |[Aj]||[Aj+1]|4|[A_{j}]|\leq|[A_{j+1}]|\leq 4 for some 0j<k0\geq j<k,

  7. 7.

    |[Ai]|=|{xAi+1:x>1}||[A_{i}]|=|\{x\in A_{i+1}:x>1\}|,

  8. 8.

    if n8n\geq 8 then maxAi+1=multAi(1)+1\max A_{i+1}=\text{mult}_{A_{i}}(1)+1,

  9. 9.

    |[Ai]|=mAi+2(m1)maxAi+2+1|[A_{i}]|=\sum_{m\in A_{i+2}}(m-1)-\max A_{i+2}+1, and

  10. 10.

    Aj+2A_{j+2} is one of the multisets listed above.

To summarize in English, we track the amount of distinct elements in each AiA_{i} (written “|[Ai]||[A_{i}]|”), find that it it drops to 44 or less, and use the fact to whittle down a finite list of required cycle elements. We will take the first point first.

1.) The amount of distinct elements in Ai+1A_{i+1} is at most one more than that of AiA_{i}. Using the definition of Ai+1A_{i+1} and the fact 1μ+(R)1\not\in\mu_{+}(R) for any R+R\in\mathbb{N}_{+}^{*} we have

|[Ai+1]|=|[μ+(Ai)+{1}]|=|[μ+(Ai)]|+1|μ+(Ai)|+1=|[Ai]|+1.|[A_{i+1}]|=|[\mu_{+}(A_{i})+*\{1\}]|=|[\mu_{+}(A_{i})]|+1\leq|\mu_{+}(A_{i})|+1=|[A_{i}]|+1.

We use the “*” as a multiset scalar to simply indicate the exact order is not needed but can be assumed greater than zero.

2.) The amount of distinct elements in Ai+2A_{i+2} is at most two more than that of μ2(Ai)\mu^{2}(A_{i}). We start similarly with

|[Ai+2]|=|[μ+(Ai+1])+{1}|=|[μ+(Ai+1)]|+1=|[μ(Ai+1)]|+1.|[A_{i+2}]|=|[\mu_{+}(A_{i+1}])+*\{1\}|=|[\mu_{+}(A_{i+1})]|+1=|[\mu(A_{i+1})]|+1.

This next part is a bit ugly. We must figure out what exactly μ(Ai+1)=μ(μ+(Ai)+l{1})\mu(A_{i+1})=\mu(\mu_{+}(A_{i})+l\{1\}) looks like. But again, since 1μ+(R)1\not\in\mu_{+}(R) for any R+R\in\mathbb{N}_{+}^{*},

μ(μ+(Ai)+l{1})=μ(μ+(Ai))+{l}=μ2(Ai)+{l}.\mu(\mu_{+}(A_{i})+l\{1\})=\mu(\mu_{+}(A_{i}))+\{l\}=\mu^{2}(A_{i})+\{l\}.

Putting the two together, |[Ai+2]|=|[μ2(Ai)+{l}]|+1|[μ2(Ai)]|+2.|[A_{i+2}]|=|[\mu^{2}(A_{i})+\{l\}]|+1\leq|[\mu^{2}(A_{i})]|+2.

3.) If any Ai+1A_{i+1} has more distinct elements than AiA_{i}, then Ai+2A_{i+2} has at most 33 distinct elements. From subproof (1.), if |[Ai+1]|=|[Ai]|+1|[A_{i+1}]|=|[A_{i}]|+1 then |[μ+(Ai)]|=|μ+(Ai)||[\mu_{+}(A_{i})]|=|\mu_{+}(A_{i})|. In other words, μ+(Ai)\mu_{+}(A_{i}) – and therefore also μ(Ai)\mu(A_{i}) – contains all distinct values. It follows μ2(Ai)={1}\mu^{2}(A_{i})=*\{1\} and therefore from subproof (2.): |[Ai+2]||[{1}]|+2=3|[A_{i+2}]|\leq|[*\{1\}]|+2=3.

4.) If any Ai+1A_{i+1} has equal amount of distinct elements as AiA_{i}, then Ai+2A_{i+2} has at most 44 distinct elements. Similarly, if |[Ai+1]|=|[Ai]||[A_{i+1}]|=|[A_{i}]|, then |[μ(Ai)]|=|μ(Ai)|1|[\mu(A_{i})]|=|\mu(A_{i})|-1. In other words, μ(Ai)\mu(A_{i}) contains exactly one duplicate entry and distinct elements otherwise implying

μ2(Ai)={1}+{2}.\mu^{2}(A_{i})=*\{1\}+\{2\}.

It follows |[Ai+2]||[{1}+{2}]|+2=4|[A_{i+2}]|\leq|[*\{1\}+\{2\}]|+2=4.

5.) All AiA_{i} have 44 or less distinct elements. From the two former subproofs, either |[Ai+1]|<|[Ai]||[A_{i+1}]|<|[A_{i}]| or Ai+24A_{i+2}\leq 4. Thus eventually the distinct element counts drops to 44. It then either remains at 44 indefinitely (as with the self-inventoried number 2132231421322314), drops to 33 or less (in which case our claim remains true), or increments to 55. But if increments, then again, |[Ai+2]|3|[A_{i+2}]|\leq 3 and the distinct element count can never again climb up above 44. Thus at some point all AiA_{i} have 44 or less distinct elements. But we are in a cycle (Ak=A0A_{k}=A_{0})! So at some point really means always.

6.) Since what goes up must come down we may as well assume also: |[Aj]||[Aj+1]|4|[A_{j}]|\leq|[A_{j+1}]|\leq 4 for some 0j<k0\leq j<k.

We now switch tracks. Instead of narrowing down the distinct element count further, we use what we’ve got to narrow down required cycle elements.

7.) The amount of non-11 elements in Ai+1A_{i+1} is the amount of distinct elements of AiA_{i}. Note

|{xAi+1:x>1}|=|μ+(Ai)|=|[Ai]|.|\{x\in A_{i+1}:x>1\}|=|\mu_{+}(A_{i})|=|[A_{i}]|.

8.) The largest element of Ai+1A_{i+1} is one greater than the count of 11’s in AiA_{i} (if n8n\geq 8). From the previous two subproofs we know

|{xAi+1:x>1}|=|[Ai]|4.|\{x\in A_{i+1}:x>1\}|=|[A_{i}]|\leq 4.

In other words, at most 44 of the nn elements in Ai+1A_{i+1} are not 11’s. Equivalently, at least n4n-4 of the nn elements are 11’s. Thus 11’s are the majority if

n4n2n8.n-4\geq\frac{n}{2}\quad\Leftrightarrow\quad n\geq 8.

And lastly, if 11’s are majority then maxAi+1=maxμ+(Ai)=multAi(1)+1.\max A_{i+1}=\max\mu_{+}(A_{i})=\text{mult}_{A_{i}}(1)+1.

9.) The distinct element count of AiA_{i} can be calculated from Ai+2A_{i+2}. Firstly,

mAi+2(m1)=mμ+(Ai+1)(m1)=mμ(Ai+1)m=|Ai+1|.\sum_{m\in A_{i+2}}(m-1)=\sum_{m\in\mu_{+}(A_{i+1})}(m-1)=\sum_{m\in\mu(A_{i+1})}m=|A_{i+1}|.

Next we rework |Ai+1|,|A_{i+1}|,

|Ai+1|=|μ+(Ai)|+|{1}|=|[Ai]|+multAi+1(1),|A_{i+1}|=|\mu_{+}(A_{i})|+|*\{1\}|=|[A_{i}]|+\text{mult}_{A_{i+1}}(1),

which together with the former gives

mAi+2(m1)=|[Ai]|+multAi+1(1).\sum_{m\in A_{i+2}}(m-1)=|[A_{i}]|+\text{mult}_{A_{i+1}}(1).

The previous subproof is now needed. It tells us multAi+1(1)=maxAi+21\text{mult}_{A_{i+1}}(1)=\max A_{i+2}-1. Thus by rearranging and substitution

|[Ai]|=mAi+2(m1)(maxAi+21).|[A_{i}]|=\sum_{m\in A_{i+2}}(m-1)-(\max A_{i+2}-1).

10. One of the following appears in any cycle under gng_{n} for n8n\geq 8. The value of jj is that specified in subproof (6.). We use the formulas from subproofs (7.) and (9.) to calculate |[Aj]||[A_{j}]| and |[Aj+1]||[A_{j+1}]| from the elements of Aj+2A_{j+2}.

Aj+2A_{j+2} |[Aj+1]||[A_{j+1}]| |[Aj]||[A_{j}]|
{1,,1,n+1}\{1,...,1,n+1\} 11 0
{1,,1,2,n}\{1,...,1,2,n\} 22 11
{1,,1,3,n1}\{1,...,1,3,n-1\} 22 22
{1,,1,2,2,n1}\{1,...,1,2,2,n-1\} 33 22
{1,,1,2,3,n2}\{1,...,1,2,3,n-2\} 33 33
{1,,1,2,2,2,n2}\{1,...,1,2,2,2,n-2\} 44 33
{1,,1,2,2,3,n3}\{1,...,1,2,2,3,n-3\} 44 44

The first multiset, {1,,n+1}\{1,...,n+1\}, however cannot appear as it enforces |[Aj]|=0|[A_{j}]|=0. In other words, it has no Grandparents. It’s Parent is n{2}n\{2\} which itself has a Parent only when 1+2++n=n(n+1)22n1+2+...+n=\frac{n(n+1)}{2}\leq 2n – or equivalently, when n3n\leq 3 (look back to Figure 5.1 and observe only g1,g2,g3g_{1},g_{2},g_{3} include n{2}n\{2\} in their cycles). ∎

Accordingly, here is a graph displaying the action of gng_{n} on the 66 multisets (and one more) from the lemma:

[Uncaptioned image]

Figure 5.2

Once again, we use integers to represent multisets (e.g. “1123(n2)1...123(n-2)” stands for “{1,,1,2,3,n2}\{1,...,1,2,3,n-2\}”). The integer by each arrow is the smallest value of nn at and past which the map holds true.

Theorem 5.5.

All Inventory Loops of length n8n\geq 8 fall into one of the two following parametric families:

  1. 1.

    (n3)132232(n3)1a11an4...\ \rightarrow\ (n-3)132232(n-3)1a_{1}...1a_{n-4}\ \rightarrow\ ...

  2. 2.

    (n3)142141(n3)2(n2)1a11an5(n2)122242(n3)1(n2)1a11an5...\ \rightarrow\ (n-3)142141(n-3)2(n-2)1a_{1}...1a_{n-5}\ \rightarrow\ (n-2)122242(n-3)1(n-2)1a_{1}...1a_{n-5}\ \rightarrow\ ...

where the aia_{i}’s can be any whole numbers not already present in the Loop.

Proof.

Lemma 5.4 gives six multisets which must appear in any Inventory Loop and Figure 5.2 show which Loops those six multisets must fall into. The Inventory Loops above (written in Integer Notation) follow the correspondence of Lemma 5.1. ∎

Corollary 5.5.1.

No Inventory Loop is longer than three numbers.

Proof.

Theorems 5.3 and 5.5 together give all Inventory Loops. The longest is length 33 appearing only at n=7n=7. ∎

Corollary 5.5.2.

This gives us a better (but not best) pre-period bound: O(M2)O(M^{2}) where M=maxS1M=\max S_{1}.

Proof.

From Lemma 5.4 the value |[Ai]||[A_{i}]| either decrements or falls below 44 as ii increases on the assumption all elements have appeared. Thus after O(|[Ai]|)O(|[A_{i}]|) iterations, either a loop has been entered or a new element appears. Since, from the previous section, maxSiO(M)\max S_{i}\in O(M) we may conclude at most O(M)O(M) elements appear. Since also |[Ai]||Ai|=12|Si|O(M)|[A_{i}]|\leq|A_{i}|=\frac{1}{2}|S_{i}|\in O(M) we may presume the pre-period quadratic in MM.

This is not rigorous and the case n<8n<8 has not been included. We leave a full proof undone as the bound is improved (with rigor) in the following section. ∎

6 Tracking Distinct Adjectives

This section and the next generalize the methods of the previous to Inventory Sequences in general (as opposed to just Loops). The main result is the amount of distinct Adjectives of an Inventory Sequence (i.e. |[Si]||[S_{i}]|) drops to 77 or less in loglog\log\log time. Deducing this will require some husky machinery. To make matters worse, this is one of the few sections without pictures.

Lemma 6.1.

For any S+S\in\mathbb{N}_{+}^{*} if δ\delta is the difference between SS’s order and the count of distinct elements (in other words, if δ=|S||[S]|\delta=|S|-|[S]|) then

|[μ(S)]|1+1+8δ2.|[\mu(S)]|\leq\frac{1+\sqrt{1+8\delta}}{2}.
Proof.

Let c=|[μ(S)]|c=|[\mu(S)]|. Then

|S|=mμ(S)m1++1+2+3++c.|S|=\sum_{m\in\mu(S)}m\geq 1+...+1+2+3+...+c.

And since |μ(S)|=|[S]||\mu(S)|=|[S]|, we may proceed

δ=|S||[S]|=mμ(S)(m1)0++0+1+2++(c1)=c(c1)2.\delta=|S|-|[S]|=\sum_{m\in\mu(S)}(m-1)\geq 0+...+0+1+2+...+(c-1)=\frac{c(c-1)}{2}.

Rearranging yields c2c2δ0c^{2}-c-2\delta\leq 0 from which the lemma follows by quadratic formula. ∎

The previous section was easy on us since we could assume no new elements were appearing (i.e. that [μ(Si)]Si[\mu(S_{i})]\in S_{i}). Here the assumption doesn’t hold. Whereas before we had a simple recurrence of Adjectives, μ(Si+1)=μ+(μ(Si))+{1}\mu(S_{i+1})=\mu_{+}(\mu(S_{i}))+*\{1\}, here the corresponding recurrence – the Ugly Recurrence – becomes much messier:

μ(Si+1)=μ+(μ(Si)Si)+μ(μ(Si)¬Si)+{1}\mu(S_{i+1})=\mu_{+}(\mu(S_{i})^{S_{i}})+\mu(\mu(S_{i})^{\neg S_{i}})+*\{1\}

Consequentially, some work is needed to patch the holes.

Lemma 6.2.

For any multisets A,BA,B

(a)|[μ(A+[B])]|2|[μ(A)]|+1,\text{(a)}\quad|[\mu(A+[B])]|\leq 2|[\mu(A)]|+1,
(b)|μ+(AB)+μ(A¬B)|=|[A]|,\text{(b)}\quad|\mu_{+}(A^{B})+\mu(A^{\neg B})|=|[A]|,

and if |[B]|=1|[B]|=1 – or in other words if BB is of the form m{x}m\{x\} – then

(c)|[μ(A+B)]||[μ(A)]|+1.\text{(c)}\quad|[\mu(A+B)]|\leq|[\mu(A)]|+1.
Proof.

By our generalizations of set intersection and difference we may say A=AB+A¬BA=A^{B}+A^{\neg B} with [AB]B[A^{B}]\subseteq B. This tells us μ(A+[B])=μ+(AB)+μ(A¬B)+{1}\mu(A+[B])=\mu_{+}(A^{B})+\mu(A^{\neg B})+*\{1\} where the “*” simply marks an unspecified scalar. Paired with the fact |[R+S]||[R]|+|[S]||[R+S]|\leq|[R]|+|[S]| we may deduce

|[μ(A+[B])]||[μ+(AB)]|+|[μ(A¬B)]|+1.|[\mu(A+[B])]|\leq|[\mu_{+}(A^{B})]|+|[\mu(A^{\neg B})]|+1.

Lastly, since ABA^{B} and A¬BA^{\neg B} are essentially a disjoint partition of AA we know μ(AB),μ(A¬B)μ(A)\mu(A^{B}),\mu(A^{\neg B})\subseteq\mu(A). This implies |[μ+(AB)]|=|[μ(AB)]|,|[μ(A¬B)]||[μ(A)]||[\mu_{+}(A^{B})]|=|[\mu(A^{B})]|,|[\mu(A^{\neg B})]|\leq|[\mu(A)]| which in turn implies

|[μ+(AB)]|+|[μ(A¬B)]|+12|[μ(A)]|+1.|[\mu_{+}(A^{B})]|+|[\mu(A^{\neg B})]|+1\leq 2|[\mu(A)]|+1.

For part (b) simply observe

|μ+(AB)+μ(A¬B)|=|μ(AB)+μ(A¬B)|=|μ+(AB+A¬B)|=|μ(A)|=|[A]|.|\mu_{+}(A^{B})+\mu(A^{\neg B})|=|\mu(A^{B})+\mu(A^{\neg B})|=|\mu_{+}(A^{B}+A^{\neg B})|=|\mu(A)|=|[A]|.

Taking part (c), if we have xAx\not\in A then

μ(A+m{x})=μ(A)+{m}\mu(A+m\{x\})=\mu(A)+\{m\}

and if instead xAx\in A then

μ(A+m{x})=μ(A)¬{m}+{m+m}\mu(A+m\{x\})=\mu(A)^{\neg\{m^{\prime}\}}+\{m+m^{\prime}\}

where m=multA(x).m^{\prime}=\text{mult}_{A}(x). In either case at most one element is appended to μ(A)\mu(A) with another possibly removed. ∎

Our next lemma generalizes subproofs (1.) through (4.) of Lemma 5.4.

Lemma 6.3.

Letting ci=|[μ(Si)]|c_{i}=|[\mu(S_{i})]|, in any Inventory Sequence

(a)ci+1ci+1\text{(a)}\quad c_{i+1}\leq c_{i}+1

and if ci+1ci+1δc_{i+1}\leq c_{i}+1-\delta^{\prime} then

(b)ci+23+9+8δ.\text{(b)}\quad c_{i+2}\leq 3+\sqrt{9+8\delta^{\prime}}.
Proof.

To make reading easier we define Ui=μ+(μ(Si)Si)+μ(μ(Si)¬Si)U_{i}=\mu_{+}(\mu(S_{i})^{S_{i}})+\mu(\mu(S_{i})^{\neg S_{i}}) thus partially hiding the ugliness of the Ugly Recurrence. We have then μ(Si+1)=Ui+{1}\mu(S_{i+1})=U_{i}+*\{1\}. Since |[R+T]||[R]|+|[T]||[R+T]|\leq|[R]|+|[T]| for any multisets RR and TT we may deduce

ci+1=|[μ(Si+1]||[Ui]|+1|Ui|+1.c_{i+1}=|[\mu(S_{i+1}]|\leq|[U_{i}]|+1\leq|U_{i}|+1.

Applying Lemma 6.2b with A=μ(Si)A=\mu(S_{i}) tells us further |Ui|=|[μ(Si)]|=ci|U_{i}|=|[\mu(S_{i})]|=c_{i}.

And for (b) we start noting

ci+2=|[μ(Si+2)]|=|[μ([Si+1]+μ(Si+1))]|=|[μ([Si+1]+Ui+{1})]|.c_{i+2}=|[\mu(S_{i+2})]|=|[\mu([S_{i+1}]+\mu(S_{i+1}))]|=|[\mu([S_{i+1}]+U_{i}+*\{1\})]|.

We can apply Lemma 6.2c (choosing B={1}B=*\{1\}) and then 6.2a (choosing B=Si+1B=S_{i+1}) obtaining

ci+22|[μ(Ui)]|+2.c_{i+2}\leq 2|[\mu(U_{i})]|+2.

Now we saw earlier ci+1=|[Ui+{1}]|c_{i+1}=|[U_{i}+*\{1\}]| implying ci+1|[Ui]|c_{i+1}\geq|[U_{i}]|. Taking this together with ci=|Ui|c_{i}=|U_{i}| and δcici+1+1\delta^{\prime}\leq c_{i}-c_{i+1}+1 tell us

δ|Ui||[Ui]|+1.\delta^{\prime}\leq|U_{i}|-|[U_{i}]|+1.

Thus we apply Lemma 6.1 with δ=|Ui||[Ui]|\delta=|U_{i}|-|[U_{i}]| obtaining

|[μ(Ui)]|1+9+8δ2|[\mu(U_{i})]|\leq\frac{1+\sqrt{9+8\delta^{\prime}}}{2}

since δδ+1\delta^{\prime}\leq\delta+1. Substituting into our bound on ci+2c_{i+2} yields the lemma statement. ∎

Going forward, this bound on cic_{i}’s is our fuel. We need one last lemma to convert it into a loglog\log\log bound of the pre-period.

Lemma 6.4.

Suppose {bi}i=0\{b_{i}\}_{i=0}^{\infty} obeys

bi+2bi+1+bi26bi88.b_{i+2}\geq b_{i+1}+\frac{b_{i}^{2}-6b_{i}-8}{8}.

If b1>b0>8b_{1}>b_{0}>8 and in particular b1>max(34b0+4,8(b08)2)b_{1}>\max(\frac{3}{4}b_{0}+4,8\Big{(}\frac{b_{0}}{8}\Big{)}^{\sqrt{2}}) then for all i1i\geq 1

bi>8(b08)2i.b_{i}>8\Big{(}\frac{b_{0}}{8}\Big{)}^{\sqrt{2}^{i}}.
Proof.

Firstly the sequence is increasing. This is seen inductively since if bi+1>bi>8b_{i+1}>b_{i}>8 then bi26bi8=bi(bi6)8>8b_{i}^{2}-6b_{i}-8=b_{i}(b_{i}-6)-8>8 and the recursive bound tells us bi+2>bi+1+1b_{i+2}>b_{i+1}+1. Secondly we claim bi+2>18bi2b_{i+2}>\frac{1}{8}b_{i}^{2} when bi1b_{i-1} is defined – or equivalently when i1i\geq 1. We may substitute the recursive bound into itself obtaining

bi+2bi+bi126bi188+bi26bi88>bi2+2bi88>bi28.b_{i+2}\geq b_{i}+\frac{b_{i-1}^{2}-6b_{i-1}-8}{8}+\frac{b_{i}^{2}-6b_{i}-8}{8}>\frac{b_{i}^{2}+2b_{i}-8}{8}>\frac{b_{i}^{2}}{8}.

The case i=0i=0 reduces to showing 8b16b08>08b_{1}-6b_{0}-8>0 – or equivalently b1>34b0+4b_{1}>\frac{3}{4}b_{0}+4 which is given by assumption.

The lemma statement may now be shown through strong induction assuming more weakly bi8(b08)2ib_{i}\geq 8\Big{(}\frac{b_{0}}{8}\Big{)}^{\sqrt{2}^{i}} since the base case i=0i=0 forces equality in the bound. The base case i=1i=1 is given by assumption. The inductive case is

bi+2>bi818(8(b08)2i)2=8(b08)22i=8(b08)2i+2.b_{i+2}>\frac{b_{i}}{8}\geq\frac{1}{8}\Big{(}8\big{(}\frac{b_{0}}{8}\big{)}^{\sqrt{2}^{i}}\Big{)}^{2}=8\Big{(}\frac{b_{0}}{8}\Big{)}^{2\sqrt{2}^{i}}=8\Big{(}\frac{b_{0}}{8}\Big{)}^{\sqrt{2}^{i+2}}.

Theorem 6.5.

Letting ci=|[μ(Si)]|c_{i}=|[\mu(S_{i})]| there exists

k6+log2log5/4max(c0,8)8k\leq 6+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},8)}{8}

such that ck,ck+17c_{k},c_{k+1}\leq 7.

Proof.

We should first establish some such kk exists. Lemma 6.3b tells us if ci+1>cic_{i+1}>c_{i} (i.e. δ=0\delta^{\prime}=0) then ci+26c_{i+2}\leq 6 and if ci+1=cic_{i+1}=c_{i} (i.e. δ=1\delta^{\prime}=1) then ci+27c_{i+2}\leq 7. It follows there eventually must be ck,ck+17c_{k},c_{k+1}\leq 7 for some k0k\geq 0.

More generally the same lemma gives us a bound on ci+2c_{i+2} from above,

ci+23+9+8(cici+1+1),c_{i+2}\leq 3+\sqrt{9+8(c_{i}-c_{i+1}+1)},

which after proper rearrangement gives us a bound on cic_{i} from below,

cici+1+ci+226ci+288.c_{i}\geq c_{i+1}+\frac{c_{i+2}^{2}-6c_{i+2}-8}{8}.

This is of course the bound from the previous lemma and by no coincidence. We may now climb back up from ckc_{k} to c0c_{0}. But we need footing to get started.

Let’s presume our kk is the smallest such kk. Therefore if they are defined ck18c_{k-1}\geq 8 (since otherwise ck1,ck7c_{k-1},c_{k}\leq 7 and k1k-1 will do) and ck27c_{k-2}\geq 7 (since otherwise ck1ck2+17c_{k-1}\leq c_{k-2}+1\leq 7). From here all prior cic_{i} can be bounded recursively. For example,

ck37+826(8)88=8,ck48+726(7)88=7.875,c_{k-3}\geq 7+\frac{8^{2}-6(8)-8}{8}=8,\quad c_{k-4}\geq 8+\frac{7^{2}-6(7)-8}{8}=7.875,\quad...

Since each cic_{i} is an integer we may presume ck48c_{k-4}\geq 8. Going on in this way we may backtrack from ckc_{k} taking the smallest integer value at each turn:

,61660878524,68802238,701955,23344,2333,413,127,51,28,17,13,10,9,8,8,7,8,ck,ck+1....,61660878524,68802238,701955,23344,2333,413,127,51,28,17,13,10,9,8,8,7,8,c_{k},c_{k+1}.

For instance, this sequence tells us if k17k\geq 17 then c0=|[μ(S0)]|61660878524c_{0}=|[\mu(S_{0})]|\geq 61660878524 – or conversely, if the distinct Adjective count starts at less than 6166087852461660878524 it will be down to 77 or less before the 17th Generation. We now see just how quickly this metric drops. It’s time to apply the previous lemma.

Let’s define bi=ck6ib_{i}=c_{k-6-i} so that b010b_{0}\geq 10 and b113b_{1}\geq 13. We have

34b0+4=11.5and8(b08)2=10.96\frac{3}{4}b_{0}+4=11.5\quad\text{and}\quad 8\Big{(}\frac{b_{0}}{8}\Big{)}^{\sqrt{2}}=10.96...

so Lemma 6.4 applies and

bi>8(54)2i.b_{i}>8\Big{(}\frac{5}{4}\Big{)}^{\sqrt{2}^{i}}.

Picking i=k6i=k-6 in particular tells us

c0>8(54)2k6.c_{0}>8\Big{(}\frac{5}{4}\Big{)}^{\sqrt{2}^{k-6}}.

Thus a first logarithm gives us log5/4c08>2k6\log_{5/4}\frac{c_{0}}{8}>\sqrt{2}^{k-6} and a second gives

k6+log2log5/4c08.k\leq 6+\log_{\sqrt{2}}\log_{5/4}\frac{c_{0}}{8}.

One last point must be made. In defining bi=ck6ib_{i}=c_{k-6-i} we have presumed k6k\geq 6 and further the loglog\log\log bound gives sensible results only if c010c_{0}\geq 10. Both hiccups are resolved exchanging “c0c_{0}” for “max(c0,10)\max(c_{0},10)” in the bound. ∎

7 Tracking Core Adjectives

Once the amount of distinct Adjectives has fallen below 77, we can nearly determine the precise identity of the Adjectives themselves. But to see why we can only nearly determine their identity we first should define two new terms. Let mi=maxμ(Si)m_{i}=\max\mu(S_{i}) and RiR_{i} be the unique multiset such that

  1. 1.

    1Ri1\not\in R_{i}, and

  2. 2.

    μ(Si)={1}+Ri+{mi}.\mu(S_{i})=*\{1\}+R_{i}+\{m_{i}\}.

We call RiR_{i} the Core Adjectives of SiS_{i} (where as μ(Si)\mu(S_{i}) is just the Adjectives). By the end of this section, we will have used Theorem 6.5 to narrow down the Core Adjectives to just eight possibilities past a certain point. As before, some machinery is needed before we can say so.

This next lemma generalizes subproofs (6.) through (9.) from Lemma 5.4.

Lemma 7.1.

If |[μ(Sk)]|,|[μ(Sk+1)]|l|[\mu(S_{k})]|,|[\mu(S_{k+1})]|\leq l then |Rk+2|l1|R_{k+2}|\leq l-1 and

rRk+2(r1)l+1.\sum_{r\in R_{k+2}}(r-1)\leq l+1.

In other words, if the distinct Adjective counts of two consecutive Generations are ll or less, then there are at most l1l-1 Core Adjectives in the third Generation and their count subtracted from their sum is at most l+1l+1.

Proof.

We must bring back the Ugly Recurrence from the previous section:

μ(Sk+2)=μ+(μ(Sk+1)Sk+1)+μ(μ(Sk+1)¬Sk+1)+{1}.\mu(S_{k+2})=\mu_{+}(\mu(S_{k+1})^{S_{k+1}})+\mu(\mu(S_{k+1})^{\neg S_{k+1}})+*\{1\}.

From our definition of RkR_{k} it then follows

|Rk+2+{mk+2}|=|{xμ(Sk+2:x>1}||μ+(μ(Sk+1)Sk+1)+μ(μ(Sk+1)¬Sk+1)|.|R_{k+2}+\{m_{k+2}\}|=|\{x\in\mu(S_{k+2}:x>1\}|\leq|\mu_{+}(\mu(S_{k+1})^{S_{k+1}})+\mu(\mu(S_{k+1})^{\neg S_{k+1}})|.

That left hand side looks bad, but Lemma 6.2b gives us |Rk+2+{mk+2}||[μ(Sk+1)]|l.|R_{k+2}+\{m_{k+2}\}|\leq|[\mu(S_{k+1})]|\leq l. Deducing |Rk+2|l1|R_{k+2}|\leq l-1 from here amounts to noticing {mk+2}\{m_{k+2}\} is a singleton.

The second part is trickier. It begins with the equation

(mk+21)+rRk+2(r1)=xμ(Sk+2)(x1)(m_{k+2}-1)+\sum_{r\in R_{k+2}}(r-1)=\sum_{x\in\mu(S_{k+2})}(x-1)

And here the author is not sure how to proceed with clarity. It seems the Ugly Recurrence must be used once more. Note that if we replaced one “μ\mu” in particular with a “μ+\mu_{+}” the Ugly Recurrence becomes much less intolerable:

μ+(μ(Sk+1)Sk+1)+μ+(μ(Sk+1)¬Sk+1)=μ+(μ(Sk+1)Sk+1+μ(Sk+1)¬Sk+1)=μ+(μ(Sk+1)).\mu_{+}(\mu(S_{k+1})^{S_{k+1}})+\mathbf{\mu_{+}}(\mu(S_{k+1})^{\neg S_{k+1}})=\mu_{+}(\mu(S_{k+1})^{S_{k+1}}+\mu(S_{k+1})^{\neg S_{k+1}})=\mu_{+}(\mu(S_{k+1})).

In total, the change increments a few elements of μ(Sk+2)\mu(S_{k+2}). Thus we may say

xμ(Sk+2)(x1)xμ+(μ(Sk+1))(x1)=xμ(μ(Sk+1))x=|μ(Sk+1)|.\sum_{x\in\mu(S_{k+2})}(x-1)\leq\sum_{x\in\mu_{+}(\mu(S_{k+1}))}(x-1)=\sum_{x\in\mu(\mu(S_{k+1}))}x=|\mu(S_{k+1})|.

Another application of the Ugly Recurrence and Lemma 6.2b give us

|μ(Sk+1)|=|μ+(μ(Sk)Sk)+μ(μ(Sk)¬Sk)+{1}|=|[μ(Sk)]|+multμ(Sk+1)(1)l+multμ(Sk+1)(1).|\mu(S_{k+1})|=|\mu_{+}(\mu(S_{k})^{S_{k}})+\mu(\mu(S_{k})^{\neg S_{k}})+*\{1\}|=|[\mu(S_{k})]|+\text{mult}_{\mu(S_{k+1})}(1)\leq l+\text{mult}_{\mu(S_{k+1})}(1).

Linking these four messes together neatly gives us

(mk+21)+rRk+2(r1)l+multμ(Sk+1)(1).(m_{k+2}-1)+\sum_{r\in R_{k+2}}(r-1)\leq l+\text{mult}_{\mu(S_{k+1})}(1).

Finishing off the lemma now amounts to showing multμ(Sk+1)(1)mk+2\text{mult}_{\mu(S_{k+1})}(1)\leq m_{k+2}. Note Sk+2=[Sk+1]+μ(Sk+1)S_{k+2}=[S_{k+1}]+\mu(S_{k+1}) tells us multμ(Sk+1)(1)multSk+2(1)\text{mult}_{\mu(S_{k+1})}(1)\leq\text{mult}_{S_{k+2}}(1). And since we defined mk+2=maxμ(Sk+2)m_{k+2}=\max\mu(S_{k+2}) we may conclude

multμ(Sk+1)(1)multSk+2(1)mk+2.\text{mult}_{\mu(S_{k+1})}(1)\leq\text{mult}_{S_{k+2}}(1)\leq m_{k+2}.

Corollary 7.1.1.

If |[μ(Sk)]|,|[μ(Sk+1)]|7|[\mu(S_{k})]|,|[\mu(S_{k+1})]|\leq 7 then Rk+2R_{k+2} – expressed in Integer Notation – is one of

2,3,4,5,6,7,8,9,2,3,4,5,6,7,8,9,
22,23,24,33,25,34,26,35,44,27,36,45,28,37,46,55,22,23,24,33,25,34,26,35,44,27,36,45,28,37,46,55,
222,223,224,233,225,234,333,226,235,244,334,227,236,245,335,344,222,223,224,233,225,234,333,226,235,244,334,227,236,245,335,344,
2222,2223,2224,2233,2225,2234,2333,2226,2235,2244,2334,3333,2222,2223,2224,2233,2225,2234,2333,2226,2235,2244,2334,3333,
22222,22223,22224,22233,22225,22234,22333,22222,22223,22224,22233,22225,22234,22333,
222222,222223,222224,222233,222222,222223,222224,222233,

or is the empty set \emptyset.

Proof.

Simply exhaust the possibilities specified by the previous lemma with l=6l=6. ∎

To proceed we must study how these 6464 possibilities of the Core Adjectives map to each other under ff. Unfortunately, ff does not determine their mapping uniquely. In other words, knowing RiR_{i} is not enough information to determine Ri+1R_{i+1}. The relationship is determined in Loops but in Inventory Sequences in general knowing RiR_{i} only narrows the identity of Ri+1R_{i+1} down to some candidate values. This indeterminacy is caused again by the same non-inclusion which made the Ugly Recurrence ugly.

So what assumptions, then, did we make when working with Loops? Two actually:

  1. 1.

    All new elements have appeared.

  2. 2.

    n=|μ(Si)|n=|\mu(S_{i})| is sufficiently large.

And indeed when we assume these, ff forces a unique map on Core Adjectives since

  1. 1.

    if all new elements have appeared then [Ri+{mi}]Si[R_{i}+\{m_{i}\}]\subset S_{i} and

  2. 2.

    if nn is large enough then most Adjectives must be 11’s (presuming the Core Adjectives are known and fixed) and thus mi+1=multSi+1(1)m_{i+1}=\text{mult}_{S_{i+1}}(1).

With such assumptions fullfilled the equation

μ(Si+1)=μ([Si]+{1}+Ri+{mi})={1}+{mi+1}+μ+(Ri)+{2}\mu(S_{i+1})=\mu([S_{i}]+*\{1\}+R_{i}+\{m_{i}\})=*\{1\}+\{m_{i+1}\}+\mu_{+}(R_{i})+\{2\}

tells us Ri+1={2}+μ+(Ri)R_{i+1}=\{2\}+\mu_{+}(R_{i}). Simple enough. So in accordance with our naming convention from Section 5 (where gng_{n} was the map on Adjectives) and the former two naive assumptions we define a map on Core Adjectives:

gnaive(R)={2}+μ+(R).g_{\text{naive}}(R)=\{2\}+\mu_{+}(R).

Here then is gnaiveg_{\text{naive}}’s action on the 6464 possibilities from the previous corollary:

[Uncaptioned image]

Figure 7.1

[Uncaptioned image]

Figure 7.2

The Core Adjectives appear in Integer Notation and are arranged vertically by rRi(r1)\sum_{r\in R_{i}}(r-1) as indicated on the left/right.

One can see a single self-cyclic node in Figure 7.1 and a loop of two nodes in Figure 7.2. As one might expect, these correspond to the parametric 11-cycle and 22-cycle given in theorem 5.5. And if gnaiveg_{\text{naive}} covered the general case we would be done. Unfortunately, it is ff which determines RiRi+1R_{i}\rightarrow R_{i+1}.

At this point we can specify how exactly gnaiveg_{\text{naive}} narrows down the identity of Ri+1R_{i+1}. We must first define Deterioration. A multiset RR is called a Deteriorate of another SS if RR can be obtained from SS using one or both of the following operations:

  1. 1.

    Replace any subset of the elements by their decrements discarding 11’s (e.g. {2,𝟐,𝟒,5,𝟖}{2,𝟑,5,𝟕}\{2,\mathbf{2},\mathbf{4},5,\mathbf{8}\}\rightarrow\{2,\mathbf{3},5,\mathbf{7}\}).

  2. 2.

    Replace the largest element by any lesser value or discard it entirely (e.g. {2,2,4,𝟖}{2,2,4,𝟒,5}\{2,2,4,\mathbf{8}\}\rightarrow\{2,2,4,\mathbf{4},5\} or {2,3,𝟓}{2,3}\{2,3,\mathbf{5}\}\rightarrow\{2,3\}).

Lemma 7.2.

The multiset Ri+1R_{i+1} is either equal to or a Deteriorate of gnaive(Ri)g_{\text{naive}}(R_{i}) and is equal only if [Ri+{mi}]Si[R_{i}+\{m_{i}\}]\subseteq S_{i} and mi+1=multSi+1(1)m_{i+1}=\text{mult}_{S_{i+1}}(1).

Proof.

We claim the two operations of Deterioration correspond respectively to the two assumptions made in defining gnaiveg_{\text{naive}}. To see this we should start by writing out the recurrence defining RiRi+1R_{i}\rightarrow R_{i+1} in the full messy general case:

μ(Si+1)=μ([Si]+{1}+Ri+{mi})={1}+{multSi+1(1)}+μ+(RiSi)+μ(Ri¬Si)+{{2}if miSiotherwise.\mu(S_{i+1})=\mu([S_{i}]+*\{1\}+R_{i}+\{m_{i}\})=*\{1\}+\{\text{mult}_{S_{i+1}}(1)\}+\mu_{+}(R_{i}^{S_{i}})+\mu(R_{i}^{\neg S_{i}})+\begin{cases}\{2\}&\text{if }m_{i}\in S_{i}\\ \emptyset&\text{otherwise}\end{cases}.

Thus consider some particular xRix\in R_{i}. If xSix\in S_{i} then xx might contribute a “multRi(x)+1\text{mult}_{R_{i}}(x)+1” to Ri+1R_{i+1} via μ+(RiSi)\mu_{+}(R_{i}^{S_{i}}) (and fails to do so only if mi+1=multRi(x)+1m_{i+1}=\text{mult}_{R_{i}}(x)+1 – i.e. only if the contribution is the largest Adjective). But if xSix\not\in S_{i} then xx might contribute only a “multRi(x)\text{mult}_{R_{i}}(x)” (and fails to do so as in the former case). And this nearly covers the first operation of Deterioration. Note lastly in the latter case if multRi(x)=1\text{mult}_{R_{i}}(x)=1 then the contribution is absorbed into {1}*\{1\}.

The second operation of Deterioration covers the possibility multSi+1(1)\text{mult}_{S_{i+1}}(1) might not be the largest Adjective. If not, some element of μ+(RiSi)\mu_{+}(R_{i}^{S_{i}}) or of μ(Ri¬Si)\mu(R_{i}^{\neg S_{i}}) will take the place of “mi+1m_{i+1}” and multSi+1(1)\text{mult}_{S_{i+1}}(1) will fall into Ri+1R_{i+1} – or will be discarded entirely if =1=1. Thus the second operation covers all such possible exchanges (in fact, it covers more – but its tight enough for the use we will make of it).

From this the “if” of the lemma’s “only if” follows immediately. Conversely, if Ri+1=gnaive(Ri)R_{i+1}=g_{\text{naive}}(R_{i}) then we have

{mi+1}+μ+(Ri)+{2}={multSi+1(1)}+μ+(RiSi)+μ(Ri¬Si)+{{2}if miSiotherwise.\{m_{i+1}\}+\mu_{+}(R_{i})+\{2\}=\{\text{mult}_{S_{i+1}}(1)\}+\mu_{+}(R_{i}^{S_{i}})+\mu(R_{i}^{\neg S_{i}})+\begin{cases}\{2\}&\text{if }m_{i}\in S_{i}\\ \emptyset&\text{otherwise}\end{cases}.

with all elements 2\geq 2. Equality of order dictates miSim_{i}\in S_{i} simplifying the equation to

{mi+1}+μ+(Ri)={multSi+1(1)}+μ+(RiSi)+μ(Ri¬Si).\{m_{i+1}\}+\mu_{+}(R_{i})=\{\text{mult}_{S_{i+1}}(1)\}+\mu_{+}(R_{i}^{S_{i}})+\mu(R_{i}^{\neg S_{i}}).

And since mi+1m_{i+1} is at least as big as anything in μ+(Ri)\mu_{+}(R_{i}) we may presume either mi+1=multSi+1(1)m_{i+1}=\text{mult}_{S_{i+1}}(1) or mi+1μ+(RiSi)m_{i+1}\in\mu_{+}(R_{i}^{S_{i}}). But in the latter case either we have also the former or the elements of the right-hand-side sum to strictly less than the sum of those on the left-hand-side. We may then presume mi+1=multSi+1(1)m_{i+1}=\text{mult}_{S_{i+1}}(1) and are left with

μ+(Ri)=μ+(RiSi)+μ(Ri¬Si).\mu_{+}(R_{i})=\mu_{+}(R_{i}^{S_{i}})+\mu(R_{i}^{\neg S_{i}}).

Considering the sum of elements again tells us μ+(Ri)=μ+(RiSi)\mu_{+}(R_{i})=\mu_{+}(R_{i}^{S_{i}}) implying Ri=RiSiR_{i}=R_{i}^{S_{i}} implying finally [Ri]Si[R_{i}]\subseteq S_{i}. ∎

These lemmas taken together are enough to wrangle RiR_{i}’s list of candidate values from the infinite into the finite.

Theorem 7.3.

Letting c0=|[μ(S0)]|c_{0}=|[\mu(S_{0})]|, then for

k=13+log2log5/4max(c0,10)8k=13+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}

then either

  1. 1.

    SkS_{k} is a fixed point under ff (i.e. and therefore an Inventory Loop), or

  2. 2.

    The Core Adjectives RkR_{k} in Integer Notation are one of 2,3,4,22,23,24,222,2,3,4,22,23,24,222, or are the empty set \emptyset.

Proof.

Theorem 6.5 and Corollary 7.1.1 taken together imply there exists

i8+log2log5/4max(c0,10)8i\leq 8+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}

such that RiR_{i} is one of the 64 multisets there listed. But more strongly, we make the claim not simply of RiR_{i} but for all RjR_{j} thereafter (i.e. that RjR_{j} is one of the 64 multisets for jij\geq i). Those 6464 multisets are clearly closed under gnaiveg_{\text{naive}} (as Figures 7.1 and 7.2 show). But they are closed also under Deterioration since rRi(r1)\sum_{r\in R_{i}}(r-1) is strictly decreased. Lemma 6.2 tells us then if RiR_{i} is one of our 64 values, then so is Ri+1R_{i+1}. In other words for

j8+log2log5/4max(c0,10)8j\geq 8+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}

the multiset RjR_{j} is one of the 64 values.

Further, after adding Deteriorate edges to Figures 7.1 and 7.2 the resulting graph has exactly two self-cyclic strongly-connected-components (SCCs). This can of course be verified by computer but can also be seen more easily from the Figures. Since Deterioration strictly decreases rRi(r1)\sum_{r\in R_{i}}(r-1) we are assured all but 3 Deteriorate edges originating beneath the dashed green line point upwards (with exceptions 2222{24,5}, 22222{25,6},2222\rightarrow\{24,5\},\ 22222\rightarrow\{25,6\},\ and 222222{27,8}222222\rightarrow\{27,8\} which each point horizontally). Hence the graphs were arranged vertically as they were.

After 44 additional iterations the sequence {Ri}i=0\{R_{i}\}_{i=0}^{\infty} must therefore enter one of the two SCCs:

  1. 1.

    {,2,3,4,22,23,24,222}\{\emptyset,2,3,4,22,23,24,222\} or

  2. 2.

    {223}\{223\}.

If the first is entered, the theorem holds true. If instead the 2nd SCC is entered, then after another additional iteration (so after 55 in total) we must have Ri=Ri+1=Ri+2={2,2,3}R_{i}=R_{i+1}=R_{i+2}=\{2,2,3\} for some i>2i>2. It turns out this is enough information to know Si+2S_{i+2} a fixed point of ff (and on this we spend the proof’s remainder).

To make things easier we presume 1Si1\in S_{i} (and address the case 1Si1\not\in S_{i} last). Lemma 7.2 tells us [Ri+{mi}]Si[R_{i}+\{m_{i}\}]\subseteq S_{i}. But since in addition to mim_{i} and the elements of RiR_{i} the multiset μ(Si)\mu(S_{i}) contains only 11’s, the former really means [μ(Si)]Si[\mu(S_{i})]\subseteq S_{i} implying [Si+1]=[Si][S_{i+1}]=[S_{i}] – or in English, that no new elements have appeared. The same can be said also of μ(Si+1)\mu(S_{i+1}) so in total

[Si+2]=[Si+1]=[Si].[S_{i+2}]=[S_{i+1}]=[S_{i}].

The definition/equation μ(Sj)={1}+Rj+{mj}\mu(S_{j})=*\{1\}+R_{j}+\{m_{j}\} also tells us

|[Sj]|=|μ(Sj)|=multμ(Sj)(1)+4|[S_{j}]|=|\mu(S_{j})|=\text{mult}_{\mu(S_{j})}(1)+4

for j=i,i+1,i+2.j=i,i+1,i+2. Putting the former with the latter we then obtain

multμ(Si)(1)=multμ(Si+1)(1)=multμ(Si+2)(1).\text{mult}_{\mu(S_{i})}(1)=\text{mult}_{\mu(S_{i+1})}(1)=\text{mult}_{\mu(S_{i+2})}(1).

Here again the assumption 1Si1\in S_{i} is relevant. By it, the definition Sj+1=[Sj]+μ(Sj)S_{j+1}=[S_{j}]+\mu(S_{j}) tells us

multSj+1(1)=multμ(Sj)(1)+1\text{mult}_{S_{j+1}}(1)=\text{mult}_{\mu(S_{j})}(1)+1

for j=i,i+1j=i,i+1. In particular, we therefore have multSi+1(1)=multSi+2(1)\text{mult}_{S_{i+1}}(1)=\text{mult}_{S_{i+2}}(1) which by Lemma 7.2 again tells us mi+1=mi+2m_{i+1}=m_{i+2}. Now if we simply put together the deductions A) Ri+1=Ri+2R_{i+1}=R_{i+2}, B) multμ(Si+1)(1)=multμ(Si+2)(1)\text{mult}_{\mu(S_{i+1})}(1)=\text{mult}_{\mu(S_{i+2})}(1), and C) mi+1=mi+2m_{i+1}=m_{i+2} it follows that μ(Si+1)=μ(Si+2)\mu(S_{i+1})=\mu(S_{i+2}). And paired with [Si+1]=[Si+2][S_{i+1}]=[S_{i+2}] this of course tells us Si+2=Si+3S_{i+2}=S_{i+3}.

Lastly if 1Si1\not\in S_{i} then μ(Si1)\mu(S_{i-1}) must contain only 22’s since if not, we would have

|Si1|=mμ(Si1)m>2|μ(Si1)|=|Si|.|S_{i-1}|=\sum_{m\in\mu(S_{i-1})}m>2|\mu(S_{i-1})|=|S_{i}|.

But Lemma 4.2 tells us a Parent can only be larger in order than its Child if the first Generation – a contradiction since i>2i>2. But then if μ(Si1)={2}\mu(S_{i-1})=*\{2\} (i.e. if the Adjectives are all 22’s) then

μ(Si)=μ([Si1]+{2})={1}+{multSi(2)}\mu(S_{i})=\mu([S_{i-1}]+*\{2\})=*\{1\}+\{\text{mult}_{S_{i}}(2)\}

which would imply Ri=R_{i}=\emptyset – a contradiction as well. Thus we may (as done above) presume 1Si1\in S_{i}. ∎

Corollary 7.3.1.

The period of any Inventory Sequence can be determined after

k=13+log2log5/4max(c0,10)8k=13+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}

iterations from the initial value S0+S_{0}\in\mathbb{N}_{+}^{*}.

Proof.

This is odd since (as we will see later) the Loop itself may not begin for many iterations after SkS_{k}. The former Theorem tells us after kk iterations either SkS_{k} is a fixed point (an Inventory Loop with period 11) or the Core Adjective multiset RkR_{k} is in Integer Notation one of 2,3,4,22,23,24,2222,3,4,22,23,24,222 or is the empty multiset \emptyset. But those eight possibilities are closed under gnaiveg_{\text{naive}} and Deterioration and thus the Core Adjectives will be one of those eight possible multisets.

Out of the two parametric Loops of Theorem 5.5 only the 22-cycle uses the eight Core Adjectives (the 11-cycle has Rk={2,2,3}R_{k}=\{2,2,3\}).

And the Loops listed in Theorem 5.3 all start within the first 1212 iterations. This was checked with computers by generating family trees. The longest pre-period was S0=6{6}+7{7}S_{0}=6\{6\}+7\{7\} which started its Loop at S12={1,1,1,1,1,2,2,3,3,4,5,5,6,7}S_{12}=\{1,1,1,1,1,2,2,3,3,4,5,5,6,7\} with period 33. ∎

8 The Main Stuff

I am to give my readers not the best absolutely but the best I have.

- C. S. Lewis, The Problem of Pain

The author found it difficult to write this section clearly even though, containing the main result, it is the most important. Any reader therefore intending to build higher should inspect this foundation in case the author fell short of proper rigor. They ask your patience.

We should begin by summarizing our position. Theorem 7.3 told us some Inventory Sequences reach a Loop in O(loglog)O(\log\log) time. And further, Core Adjectives of the Sequences which don’t are one of

,2,3,4,22,23,24,222\emptyset,2,3,4,22,23,24,222

past a certain point (also reached in O(loglog)O(\log\log) time). Our remaining task then is to analyze how exactly the former eight multisets of Core Adjectives jump from one to each other. In other words, what values can (Ri,Ri+1)(R_{i},R_{i+1}) take?

The rules of Deterioration laid out in the previous section are enough to specify which possible values Ri+1R_{i+1} might take (that is what Lemma 7.2 was saying). But if our Sequence is order 1616 or larger – equivalently, if |μ(Si)|8|\mu(S_{i})|\geq 8 – and we know also which elements (if any) of μ(Si)\mu(S_{i}) have appeared for the first time in the Sequence, then RiR_{i} is sufficient information to determine Ri+1R_{i+1}. In other words, if there are at least eight Adjectives then the Core Adjectives and new appearances of one Generation are enough to work out the Core Adjectives of the next Generation (we will see it is also enough to work out mi+1m_{i+1}).

What follows is said (and understood) more easily if we define an Inventory Sequence’s Maturity. We say such a Sequence has Matured at iteration ii if |Si|16|S_{i}|\geq 16 and the Core Adjectives are one of the former eight possibilities. If either of these assumptions is broken we say the Sequence is Immature. 666So for example, the parametric 11-cycle from Theorem 5.5 might well have over 1616 elements per term. However the Core Adjectives (223223) are not one of the former eight possibilities. Thus we say such a Sequences has Looped Immaturely. Theorem 7.3 essentially says any Inventory Sequence either Loops or reaches Maturity in O(loglog|[μ(S0)]|)O(\log\log|[\mu(S_{0})]|) time.

Let’s assume then our Sequence has Matured and redraw Figure 7.2 with just the Core Adjectives we care about. This time Deteriorate edges corresponding to new element appearances are shown (and are labeled by the elements making new appearance).

[Uncaptioned image]

Figure 8.1

The letter “mm” is shown when value of mi=maxμ(Si)m_{i}=\max\mu(S_{i}) is making a new appearance. The “&” denotes multiple new elements appearing together (e.g. “mm&22&33” means mi,2,m_{i},2, and 33 have each and all together appeared for the first time in the entire Inventory Sequence). Blue arrows are for now new appearances (and therefore match up with the black arrows of Figure 7.2). Orange arrows are for new appearance edges which can be taken any amount of times. Green arrows are for new appearance edges which can be taken only once (or, for the dashed arrow, at most twice). The dashed nodes containing \emptyset and 22 are only placeholders to reduce clutter.

We won’t compute the correctness of all 2626 arrows by hand. Any individual arrow can be checked if needed. However the claim some edges can be taken at most once (or twice) does require longer justification.

Lemma 8.1.

If an Inventory Sequence is past Maturity then particular consecutive Core Adjective pairs (Ri,Ri+1)(R_{i},R_{i+1}) can further appear at most a fixed number of times – given explicitly by the following table:

Edge(s) Max Occurrences
2223,4,23222\rightarrow 3,4,23 11
2424\rightarrow\emptyset 11
242224\rightarrow 22 44
23,24223,24\rightarrow 2 22
2323\rightarrow\emptyset 11
222,2222\rightarrow 2,22 11
2,3,42,3,4\rightarrow\emptyset 11
Proof.

Most edges occur at most once or twice because they require the new appearance of 2,3,2,3, and/or 44 which by definition can happen at most once. Nothing can appear for the first time twice. The two edges which could plausibly appear repeatedly are 2224222\rightarrow 4 and 242224\rightarrow 22 requiring the new appearance of mim_{i} only.

To take care of these exceptional edges, we will use Backtracking. The process is tedious to define so we begin by just showing the Backtracking Tree for 2224222\rightarrow 4 and define afterwards.

[Uncaptioned image]

Figure 8.2

The idea is to start with μ(Si),μ(Si+1)\mu(S_{i}),\mu(S_{i+1}) and work backwards to possible values of μ(Si1),μ(Si2),μ(Si3),\mu(S_{i-1}),\mu(S_{i-2}),\mu(S_{i-3}), … and so on. The trick is that by tracking the appearance of new elements carefully, we can terminate the Backtracking after a finite number of steps. This is done by forcing the Sequence into Immaturity (at which point we don’t push farther since we have a good bound on the development of Maturity777As some of us wish we had generally.). The tedious bit is determining what value each mjm_{j} must take in terms of n=|μ(Si)|n=|\mu(S_{i})|. Notice Maturity implies n8n\geq 8. Our work from Section 5 will help us. Let’s take an example.

If Ri={2,2,2}R_{i}=\{2,2,2\} we claim either mi=n2m_{i}=n-2 or the Sequence has just Matured at SiS_{i}. If the Sequence was also Mature at Si1S_{i-1} then there were no new appearances in μ(Si1)\mu(S_{i-1}) – or equivalently, [Si]=[Si1][S_{i}]=[S_{i-1}]. This is because the multiset {2,2,2}\{2,2,2\} receives only blue arrows in Figure 8.1. We therefore know |μ(Si1)|=|μ(Si)|=n|\mu(S_{i-1})|=|\mu(S_{i})|=n and |Si|=2|μ(Si1)|=2n|S_{i}|=2|\mu(S_{i-1})|=2n. Putting these together we can derive

mi+2=1+1+1+(mi1)=xμ(Si)(x1)=|Si||[μ(Si)]|=2nn=nm_{i}+2=1+1+1+(m_{i}-1)=\sum_{x\in\mu(S_{i})}(x-1)=|S_{i}|-|[\mu(S_{i})]|=2n-n=n

implying mi=n2m_{i}=n-2.

Similarly if kk new elements appear we can amend the derivation starting instead with |μ(Si1|=|μ(Si)|k=nk|\mu(S_{i-1}|=|\mu(S_{i})|-k=n-k and |Si|=2n2k|S_{i}|=2n-2k. The corresponding result is mi=n2k+1xRi(x1).m_{i}=n-2k+1-\sum_{x\in R_{i}}(x-1). Accordingly let’s make a table of mim_{i} values (assuming Maturity in the prior Generation):

RiR_{i} k=0k=0 k=1k=1 k=2k=2 k=3k=3
\emptyset n1n-1 n3n-3 n5n-5
22 nn n2n-2 n4n-4
33 n3n-3 n5n-5
44 n4n-4 n6n-6
2222 n1n-1 n3n-3
2323 n2n-2 n4n-4
2424 n3n-3
222222 n2n-2

The em dashes “–” mark impossible iterations past Maturity. For example, Ri={24}R_{i}=\{24\} and k=1,2,3k=1,2,3 are marked because past Maturity Ri={2,2,2}R_{i}=\{2,2,2\} appears only when no new elements have appeared (222222 receives only blue arrows in Figure 8.1). Similarly, only Ri=R_{i}=\emptyset is unmarked in the k=3k=3 column because only \emptyset receives arrows requiring 33 new elements.

There is another picky point to be made about Backtracking. Once we have fixed n=|μ(Si)|n=|\mu(S_{i})| for some ii the values of mjm_{j} for jij\not=i may not be precisely what our table specifies. For example consider 2224222\rightarrow 4’s Backtracking Tree letting μ(Si)={1,,1,2,2,2,n3}\mu_{(}S_{i})=\{1,...,1,2,2,2,n-3\}. Both “114(n3)1...14(n-3)” and “11222(n3)1...1222(n-3)” appear when “n3n-3” appears nowhere in their rows of the table. Why? Because when new elements appear mjm_{j} is incremented (or decremented if Backtracking) accordingly. Thus mi+1m_{i+1} is one more than the table dictates because it appears after the new appearance of n2n-2. Similarly, mi2m_{i-2} in “11222(n3)1...1222(n-3)” is one less than expected because it appears before the new appearance of 22.

Lastly, at each turn of Backtracking we steer inside the boundaries of Maturity and terminate when we are forced to say some element appears before its new appearance – a contradiction by definition. The Inventory Sequence may well continue backwards further by another route but any such route can be taken only before reaching Maturity.

The Backtracking Tree for 2224222\rightarrow 4 tells us the edge appears (if at all) within 44 iterations after Maturing and, at most, once in total.

The Backtracking tree for 242224\rightarrow 22 is much larger but the process of creation is identical using the table and decrementing specified above. Whereas the 2224222\rightarrow 4 tree contained 99 nodes, the 242224\rightarrow 22 tree contains 682682 nodes (though our computer-generated tree has some redundancy so the minimal nodes required for the computation might be a hundred or so smaller). The full tree and the code to produce it is available by links in the references. The tree has a height of 1414 and every path down contains at most two occurrences of 242224\rightarrow 22. We visualize here a single path from our output file:

[Uncaptioned image]

Figure 8.3

Thus with the new appearance of 22 or 44, the edge 242224\rightarrow 22 can occur at most once (and with the new appearance of mim_{i}, at most twice). And there are a total of 1+1+2=41+1+2=4 occurrences at most. ∎

We are nearly ready for the main theorem. Two lemmas are still needed. The first will tell us when and how exactly a repetition of Core Adjectives gives rise to an Inventory Loop.

Lemma 8.2.

Suppose i2i\geq 2 and for some k1k\geq 1

RiRi+1Ri+k=RiRi+k+1=Ri+1\emptyset\not=R_{i}{\rightarrow}R_{i+1}{\rightarrow}...{\rightarrow}R_{i+k}=R_{i}{\rightarrow}R_{i+k+1}=R_{i+1}

where “\rightarrow” represents mapping by gnaive.g_{\text{naive}}. Then Si+2S_{i+2} is a member of an Inventory Loop.

Proof.

The proof goes similarly to the second half of Theorem 7.4. In fact, we could have proven this first and used it as justification therein. However, it is often easier for readers to digest theorems built up by increasing generalization (rather than first proving the most general and going on to apply in particular cases). And the understanding of the reader more important than logical brevity.

Note also that because Ri+k=RiR_{i+k}=R_{i} and Ri+k+1=Ri+1R_{i+k+1}=R_{i+1}, we are assuming something stronger than the single reappearance of some RjR_{j}.

We may assume 1Si1\in S_{i} since if not all elements in μ(Si1)\mu(S_{i-1}) are 2\geq 2. But if so, μ(Si1)\mu(S_{i-1}) must contain only 22’s since otherwise Si1S_{i-1} would be larger in order than SiS_{i} – a contraction since by Lemma 4.2 we would have i=1i=1 (but we assumed i2i\geq 2). And if μ(Si1)={2}\mu(S_{i-1})=*\{2\}, we would necessarily also have Ri=R_{i}=\emptyset – contradicting the lemma assumption.

Given then 1Si1\in S_{i}, Lemma 7.2 ensures

[Si]=[Si+1]==[Si+k+1].[S_{i}]=[S_{i+1}]=...=[S_{i+k+1}].

Noting in general |[Sj]|=|μ(Sj)|=multμ(Sj)(1)+|Rj|+1|[S_{j}]|=|\mu(S_{j})|=\text{mult}_{\mu(S_{j})}(1)+|R_{j}|+1 the former implies

multμ(Si)(1)=multμ(Si+k)(1)andmultμ(Si+1)(1)=multμ(Si+k+1)(1).\text{mult}_{\mu(S_{i})}(1)=\text{mult}_{\mu(S_{i+k})}(1)\quad\text{and}\quad\text{mult}_{\mu(S_{i+1})}(1)=\text{mult}_{\mu(S_{i+k+1})}(1).

The first of these implies also multSi+1(1)=multSi+k+1(1)\text{mult}_{S_{i+1}}(1)=\text{mult}_{S_{i+k+1}}(1) since in general if 1Sj1\in S_{j} then multSj+1(1)=multμ(Sj)(1)+1\text{mult}_{S_{j+1}}(1)=\text{mult}_{\mu(S_{j})}(1)+1. And again, Lemma 7.2 tells us mi+1=mi+k+1m_{i+1}=m_{i+k+1}. Now since A) Ri+1=Ri+k+1R_{i+1}=R_{i+k+1}, B) multμ(Si+1)(1)=multμ(Si+k+1)(1)\text{mult}_{\mu(S_{i+1})}(1)=\text{mult}_{\mu(S_{i+k+1})}(1), and C) mi+1=mi+k+1m_{i+1}=m_{i+k+1}, we may conclude μ(Si+1)=μ(Si+k+1)\mu(S_{i+1})=\mu(S_{i+k+1}) which, paired with [Si+1]=[Si+k+1][S_{i+1}]=[S_{i+k+1}], implies Si+2=Si+k+2S_{i+2}=S_{i+k+2}. ∎

In Figure 8.1 and Lemma 8.1 we assumed our Sequence had Matured. This includes the assumption |Si|16|S_{i}|\geq 16. But some Loops occur with less than 1616 elements and our bounds at present don’t apply to them. This final lemma amends their case.

Lemma 8.3.

Suppose |Si|<16|S_{i}|<16 and i2i\geq 2. Then for any k>ik>i such that SkS_{k} is not member of any Inventory Loop and |Sk|<16|S_{k}|<16 we may presume k<i+2l+22k<i+2l+22 where l|[Sk][Si]|l\leq|[S_{k}]-[S_{i}]| counts appearances of new elements.

Proof.

Let n=|μ(Si1)|n=|\mu(S_{i-1})|. Since |Si|=2n|S_{i}|=2n we know n<8n<8. Our goal then is relating μ(Si1)\mu(S_{i-1}) to Figure 5.1 which gives the action of gnaiveg_{\text{naive}} on TnT_{n}^{*} – the set of multisets of order nn whose elements sum to 2n2n.

There are two possibilities. If no new elements appeared in Si1S_{i-1} then μ(Si1Tn\mu(S_{i-1}\in T_{n}^{*} since in this case [Si1]=[Si2][S_{i-1}]=[S_{i-2}] and we may therefore say

mμ(Si1)m=|Si1|=|[Si2]+μ(Si2)|=2|[Si2]|=2|[Si1]|=2n.\sum_{m\in\mu(S_{i-1})}m=|S_{i-1}|=|[S_{i-2}]+\mu(S_{i-2})|=2|[S_{i-2}]|=2|[S_{i-1}]|=2n.

But if any new elements did appear then μ(Si1)\mu(S_{i-1}) will (by definition) still have nn elements but summing instead to strictly less than 2n2n.

In total, this means the sequence {μ(Sj)}j=i1\{\mu(S_{j})\}_{j=i-1}^{\infty} swims around TnT_{n}^{*} until either some set of Adjectives reappears (implying an Inventory Loop has been entered) or some new element appears and the sequence eventually jumps up into Tn+1T_{n+1}^{*} (or into Tn+2,Tn+3,T_{n+2}^{*},T_{n+3}^{*},…). Lemma 5.2 assures us as well the sequence spends at most one iteration outside its source and destination TmT_{m}^{*} at every subsequent arrival of new elements. Thus we can bound the maximum iterations occurring before either |μ(Sj)||\mu(S_{j})| is at least 88 (and therefore |Sj+1|>16|S_{j+1}|>16) or a Loop begins. To do this let’s redraw Figure 5.1 marking out the longest path available in each TnT_{n}^{*}:

[Uncaptioned image]

Figure 8.4

The longest paths are left in color. Remaining nodes are colorless.

And we see the path lengths for n=1,..,7n=1,..,7 are length 1,2,3,4,5,7,71,2,3,4,5,7,7 respectively. Incrementing each (for the border crossing between TnT_{n}^{*}’s) and taking sum we get 2+3+4+6+6+8+8=362+3+4+6+6+8+8=36 iterations at most. But instead of leaving a grand total of 3636 we instead choose a slightly different representation, attributing 22 iterations to each new element (hence “2l2l” in the lemma statement) and leaving 3614=2236-14=22 as constant. This modified representation plays more nicely with the main theorem. ∎

Theorem 8.4.

The pre-period of any Inventory Sequence with initial value S0+S_{0}\in\mathbb{N}_{+}^{*} is at most

2(maxS1|[S1]|)+log2log5/4max(c0,10)8+622(\max S_{1}-|[S_{1}]|)+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}+62

where c0=|[μ(S0)]|c_{0}=|[\mu(S_{0})]|.

Proof.

Here we total up the iterations from the relevant theorems and lemmas:

  1. 1.

    Theorem 7.3 says after

    k=13+log2log5/4max(c0,10)8k=13+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}

    iterations from the initial value either SkS_{k} is an Inventory Loop or the Core Adjectives, RkR_{k}, are in Integer Notation one of 2,3,4,22,23,24,2222,3,4,22,23,24,222 or is the emptyset \emptyset.

  2. 2.

    Lemma 8.3 says after k=2+22+2l=24+2lk=2+22+2l=24+2l iterations from the initial value either SkS_{k} is part of an Inventory Loop or |Sk|16|S_{k}|\geq 16 (where ll counts appearances of new elements – we will bound it further down).

  3. 3.

    The former two taken together imply after

    k=24+2l+log2log5/4max(c0,10)8k=24+2l+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}

    iterations from the initial value either SkS_{k} is part of an Inventory Loop or the sequence has Matured.

  4. 4.

    Figure 8.1 and Lemma 8.2 taken together imply an Inventory Sequence will enter a Loop at most 77 iterations after Maturity if no new elements appear.

  5. 5.

    One can conclude from Figure 8.1 that each new element delays the Loop by at most two Generations unless it appears with Rk={2,2,2}R_{k}=\{2,2,2\} or Rk={2,4}R_{k}=\{2,4\}.

  6. 6.

    Lemma 8.1 tells us the former exceptional appearances occur at most a fixed amount. In fact, we can tabulate exactly how many iterations each might add:

    No. new Expected Worst Max. no. Worst
    Edge elements delay delay occurrences overture
    2424\rightarrow\emptyset 33 66 77 11 11
    24224\rightarrow 2 22 44 66 22 44
    242224\rightarrow 22 11 22 55 44 1212
    2223222\rightarrow 3 22 44 66 11 22
    2224222\rightarrow 4 11 22 66 11 44
    22223222\rightarrow 23 11 22 44 11 22

    Thus attributing a delay of 22 iterations per new element gives bound off by no more than 1+4+12+2+4+2=251+4+12+2+4+2=25 iterations. More careful analysis could reduce this number but, as there are a lot possible improvements to our bound’s constant term, we will enumerate them all together in the next section.

  7. 7.

    Adding the constant terms of items (3.), (4.), and (6.) gives 24+7+25=5624+7+25=56. Thus after

    k=2l+log2log5/4max(c0,10)8+56k=2l+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}+56

    iterations from the initial value, our Sequence has entered a Loop.

Our last task is to get rid of the “ll”. This is possible because the elements all Inventory Sequences are bounded from above. In particular, Theorem 5.4 tells us the largest element appears by S3S_{3} (except for a handful of exceptions). In other words, maxSi=maxS3\max S_{i}=\max S_{3} for i3i\geq 3. Further, Corollary 4.1.1 states the Height of an Inventory Sequence at most increments. Thus SmaxS3maxS1+2S\max S_{3}\leq\max S_{1}+2 and in most cases maxSimaxS1+2\max S_{i}\leq\max S_{1}+2 for all i0i\geq 0. The worst of the exceptions is S0={1}S_{0}=\{1\} which gives maxS1=1\max S_{1}=1 and maxS8=maxSi=4\max S_{8}=\max S_{i}=4 for i8i\geq 8. So in all cases maxSimaxS1+3\max S_{i}\leq\max S_{1}+3.

Now ll counts new appearances from S2S_{2} onward. So because the elements of the Sequence are bounded by maxS1+3\max S_{1}+3 we may conclude

lmaxS1+3|[S1]|.l\leq\max S_{1}+3-|[S_{1}]|.

Substituting into our former bound we obtain a pre-period bound of

2(maxS1+3|[S1]|)+log2log5/4max(c0,10)8+562(\max S_{1}+3-|[S_{1}]|)+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}+56
=2(maxS1|[S1]|)+log2log5/4max(c0,10)8+62.=2(\max S_{1}-|[S_{1}]|)+\log_{\sqrt{2}}\log_{5/4}\frac{\max(c_{0},10)}{8}+62.

Corollary 8.4.1.

The pre-period of any Inventory Sequence with S0+S_{0}\in\mathbb{N}_{+}^{*} is at most 2maxS1+60.2\max S_{1}+60.

Proof.

The recurrence S1=μ(S0)+[S0]S_{1}=\mu(S_{0})+[S_{0}] tells us c0=|[μ(S0)]||[S1]|c_{0}=|[\mu(S_{0})]|\leq|[S_{1}]|. This means the larger we make c0c_{0}, the larger |[S1]||[S_{1}]| becomes too. In particular, an increment to c0c_{0} increases the loglog\log\log term by at most

log2log5/4118=1.026\log_{\sqrt{2}}\log_{5/4}\frac{11}{8}=1.026...

but reduces the 2(maxS1|[S1]|)2(\max S_{1}-|[S_{1}]|) term by 22. In other words, the bound is largest when |[S1]||[S_{1}]| is smallest.

Picking then |[S1]|=1|[S_{1}]|=1 gives us a more symbolically compact bound:

2(maxS11)+log2log5/4max(1,10)8+62=2maxS12+0+62=2maxS1+60.2(\max S_{1}-1)+\log_{\sqrt{2}}\log_{5/4}\frac{\max(1,10)}{8}+62=2\max S_{1}-2+0+62=2\max S_{1}+60.

9 On Improvements

It isn’t clear the pre-period bound is best formed as amaxS1+ba\max S_{1}+b. And ours (a=2a=2 and b=60b=60) isn’t necessarily the tightest. However, Bronstein and Fraenkel’s original request was for meaningful – not exact – pre-period bounds and we feel the request is answered. Before closing, the authors would like to speculate about improvements to our bound.

Firstly, b=60b=60 is easily improvable and the authors took no pains to do so when the mathematical ecosystem offered brevity in exchange. The following shortcuts each admit improvements:

  1. 1.

    Lemma 6.2 might be adapted to our particular subspecies of multisets yielding better bounds – or more likely, a set of bounds for different cases (e.g. when new elements have appeared and when not). The result would carry into Lemmas 6.3 and 6.4 and become a lower constant term and/or lower logarithmic bases in Theorem 5.4. A lowered constant would also reduce the multisets listed in Corollary 7.1.1 and would then become a lower constant in Theorem 7.3.

  2. 2.

    Lemma 8.1 was completed as if all 1313 edges could occur together at their maximum occurrence. However, most of them are exclusive. For example, 2, 23,2\rightarrow\emptyset,\ 23\rightarrow\emptyset, and 2424\rightarrow\emptyset each require the new appearance of 22 and thus only one can appear. Similarly if 242224\rightarrow 22, this could probably be shown to occur at most 22 or 33 times (instead of 44). Thus the constant “2525” from part (6.) of Theorem 8.3’s proof can probably be shrunk to 1010 or so.

  3. 3.

    Lemma 8.2 requires the repetition of a consecutive Core Adjective pair. However, if adapted for our case, it is possible 22224222222\rightarrow 24\rightarrow 222 or 242222424\rightarrow 222\rightarrow 24 (i.e. the repetition of a single Core Adjective multiset) would be enough to force a Loop. This would reduce the delay constant from 77 to 66 as well as reduce the overture of some edges in part (6.) of Theorem 8.4’s proof.

  4. 4.

    Lemma 8.3 was completed as if the longest path of all seven TnT_{n}^{*}’s might occur together. However, the length of the path through Tn1T_{n-1}^{*} has consequences on the path taken through TnT_{n}^{*}. For example, if the longest path (length 55) is taken though T5T_{5}^{*} then the path through T6T_{6}^{*} will be at most length 33. The constant “2222” can probably be reduced to 1414.

But these improvements still leave us with something 2maxS1+b2\max S_{1}+b in the end (around b=30b=30 probably). One might then wonder can a=2a=2 be decreased?

No. Not in the general case S0+S_{0}\in\mathbb{N}_{+}^{*} at least. The orange edges in Figure 8.1 can in fact be taken indefinitely. For example, S0=4{4,k,k+1}S_{0}=4\{4,k,k+1\} takes 22322\rightarrow 3 repeatedly (k6k-6 times exactly):

[Uncaptioned image]

Figure 9.1

The starting value is represented as a multiset but for readability remaining nodes are written in Integer Notation.

The trick works because the family bounces around the green area repeatedly – O(k)O(k) times in fact. The authors worked out similar staring values for three other orange edges. Two of them (22322\rightarrow 3 and 232223\rightarrow 22) give rise to infinite families of starting values for which the a=2a=2 is sharp. Here are the edges marked out in the Core Adjectives graph:

[Uncaptioned image]

Figure 9.2

And here are their families given explicitly:

S0S_{0} kk\geq Edge maxS1\max S_{1} Loop at
4{4,k,k+1}4\{4,k,k+1\} 77 22322\rightarrow 3 k+1k+1 2k2=2maxS142k-2=2\max S_{1}-4
3{3}+2{k,k+1,k+2}3\{3\}+2\{k,k+1,k+2\} 55 232223\rightarrow 22 k+2k+2 2k2=2maxS162k-2=2\max S_{1}-6
{2,2,k,k,k+1,k+2}\{2,2,k,k,k+1,k+2\} 55 222\rightarrow 2 k+2k+2 k+2=maxS1k+2=\max S_{1}
k{k+1}k\{k+1\} 77 \emptyset\rightarrow\emptyset kk k+4=maxS1+4k+4=\max S_{1}+4

It is left to the reader to work out families for 323\rightarrow 2 and 424\rightarrow 2 (if they exist!).

10 Replacing +\mathbb{N}_{+} with ,\mathbb{N},\mathbb{Z}

So far we have assumed our multisets are of strictly positive integers. We’d like to know if our results hold in other regions – say \mathbb{N} or \mathbb{Z}. It turns out by simply allowing 0 and 1-1 (or really any two values outside the image of μ\mu) we lose even ”Ultimate Cyclicity”. That is to say, one can find S0{1}S_{0}\in\mathbb{N}\cup\{-1\}^{*} which never enters a Loop. For example:

[Uncaptioned image]

Figure 10.1

Thus =+{0}\mathbb{N}=\mathbb{N}_{+}\cup\{0\} is something of a boundary case. As far as the authors can see, the results of Sections 5 through 9 run isomorphically substituting “\mathbb{N}” for “+\mathbb{N}_{+}”. Section 4 is probably affected only in that the list of exceptions for Theorem 4.5 becomes longer. This is because the proof of Lemma 4.1 relied on the fact that maxS|[S]|\max S\geq|[S]| for S+S\in\mathbb{N}_{+}^{*}. But in \mathbb{N} we might have say R={0,1,2,3,4}R=\{0,1,2,3,4\}. The difficulty can be amended with some extra work.

But the authors have not pursued this variation or any others as the project has already grown larger than the authors should have allowed. Further analysis is therefore left undone and the paper will close with speculation about an interesting (but yet unstudied) reformulation and the variations it offers.

11 Multisets as Functions

Every multiset SS corresponds to a multiplicity function multS\text{mult}_{S}. Some fun variations are easier to find (and rigorously define) by treating the Inventory Game as an iteration of functions,

multS0multS0multS0,\text{mult}_{S_{0}}\rightarrow\text{mult}_{S_{0}}\rightarrow\text{mult}_{S_{0}}\rightarrow...,

instead of an iteration of multisets

S0S1S2S_{0}\rightarrow S_{1}\rightarrow S_{2}\rightarrow...

It will be a bit of work to redefine things, but the authors found the results worth the trouble.

How then do we translate our recurrence Si+1=μ(Si)+[Si]S_{i+1}=\mu(S_{i})+[S_{i}] into the language of functions? The task can be broken down to redefining 1) the multiset-of-multiplicities function μ\mu, 2) the multiset-to-set function [][\cdot], and 3) multiset addition ++.

Taking the first point first, what is multμ(S)(x)\text{mult}_{\mu(S)}(x) for a particular xx? Well – xx appears in μ(S)\mu(S) once for however many elements have a multiplicity of xx in SS. In other words, multμ(S)(x)\text{mult}_{\mu(S)}(x) counts how many elements the function multS\text{mult}_{S} sends to xx. This value will come up a lot so we should make some notation for it (it’s cluttered to express it as summation).

For any function σ:XY\sigma:X\rightarrow Y let σ1(x)\sigma^{-1}(x) mean “the set of elements sent to yy by σ\sigma. In other words,

σ1(y)={xX:σ(x)=y}.\sigma^{-1}(y)=\{x\in X:\sigma(x)=y\}.

As an equation we then have

multμ(S)(x)=|multS1(x)|.\text{mult}_{\mu(S)}(x)=|\text{mult}_{S}^{-1}(x)|.

But this definition isn’t quite right still. There is an exception. Zero. There are infinitely many elements in any finite multiset SS occurring zero times. That is, there are infinitely many elements multμ(S)\text{mult}_{\mu(S)} sends to zero. But we exclude this. We do not, for instance, say {1,3,1,8}\{1,3,1,8\} has zero 0’s, two 11’s, zero 22’s, one 33, zero 44’s, zero 55’s, and so on… The zeros are left out. Our equation therefore requires amendment:

multμ(S)(x)={|multS1(x)|if x>00if x=0.\text{mult}_{\mu(S)}(x)=\begin{cases}|\text{mult}_{S}^{-1}(x)|&\text{if }x>0\\ 0&\text{if }x=0\end{cases}.

The function mult[S]\text{mult}_{[S]} is easier to work through. The value of mult[S](x)\text{mult}_{[S]}(x) is 11 if xx appears in SS and is 0 otherwise. It’s therefore something of an indicator function. As an equation,

mult[S](x)={1if multS(x)>00if multS(x)=0.\text{mult}_{[S]}(x)=\begin{cases}1&\text{if }\text{mult}_{S}(x)>0\\ 0&\text{if }\text{mult}_{S}(x)=0\end{cases}.

Lastly, addition of functions is defined simply by adding values element-wise since for any two multisets R,SR,S

multR+S(x)=multR(x)+multS(x).\text{mult}_{R+S}(x)=\text{mult}_{R}(x)+\text{mult}_{S}(x).

All together we have

multSi+1(x)={|multSi1(x)|if x>00if x=0+{1if multSi(x)>00if multSi(x)=0.\text{mult}_{S_{i+1}}(x)=\begin{cases}|\text{mult}_{S_{i}}^{-1}(x)|&\text{if }x>0\\ 0&\text{if }x=0\end{cases}\quad+\quad\begin{cases}1&\text{if }\text{mult}_{S_{i}}(x)>0\\ 0&\text{if }\text{mult}_{S_{i}}(x)=0\end{cases}.

And multSi+1\text{mult}_{S_{i+1}} has been defined totally in terms of multSi\text{mult}_{S_{i}}. To make reading easier from here on (and to clear multiset conceptions out of our minds) the function multSi\text{mult}_{S_{i}} will simply be called σi\sigma_{i}. Thus the Inventory Game really means the sequence (σ0,σ1,σ2,)(\sigma_{0},\sigma_{1},\sigma_{2},...) for some σ0:\sigma_{0}:\mathbb{N}\rightarrow\mathbb{N} where

σi+1(x)={|σi1(x)|if x>00if x=0+{1if σi(x)>00if σi(x)=0.\sigma_{i+1}(x)=\begin{cases}|\sigma_{i}^{-1}(x)|&\text{if }x>0\\ 0&\text{if }x=0\end{cases}\quad+\quad\begin{cases}1&\text{if }\sigma_{i}(x)>0\\ 0&\text{if }\sigma_{i}(x)=0\end{cases}.

Our previous results then tell us that if σ0\sigma_{0} sends only a finite portion of \mathbb{N} to non-zero values then the sequence {σi}i=0\{\sigma_{i}\}_{i=0}^{\infty} enters a cycle of length 1,2,1,2, or 33 in O(M)O(M) time where M=maxS1=max/σ11(0)M=\max S_{1}=\max\mathbb{N}/\sigma_{1}^{-1}(0).

Before going on to exotic variations, it may be good to work an example. Let’s take the classic case S0={1}S_{0}=\{1\} with the corresponding function

σ0(x)=multS0(x)={1if x=10oth..\sigma_{0}(x)=\text{mult}_{S_{0}}(x)=\begin{cases}1&\text{if }x=1\\ 0&\text{oth.}\end{cases}.

Because case equations are large, difficult to read (and to code), and are usually ugly, we will use an alternative representation. The statement σ0:11,0\sigma_{0}:1\rightarrow 1,*\rightarrow 0 will mean σ0\sigma_{0}, the function sending 11 to 11 and everything else to 0. Thus our iteration may be visualized in 33 ways – as multisets, as function descriptions, and as function compositions:

[Uncaptioned image]

Figure 11.1

Of course, these redefinitions and revisualizations are only like setting the table. Now we are ready to eat.

It was said in the first section some mathematicians have played the Inventory Game with infinitely long starting values [1,2,3]. In our current language, we would say they chose σ0\sigma_{0} sending infinitely many values to a non-zero image. But to keep everything well-defined, they had to make sure infinitely many values were not sent to any particular x>0x>0 since then |σ1(x)||\sigma^{-1}(x)| would be undefined. But there are perfectly reasonable ways to define |X||X| when the set XX is infinitely large. And doing so gives us transfinite variations of the Inventory Game.

In the most simple case, we take ^={}\hat{\mathbb{N}}=\mathbb{N}\cup\{\infty\} instead of \mathbb{N} and say |σ1(x)|=|\sigma^{-1}(x)|=\infty whenever σ\sigma sends infinitely many elements to xx (to be completely rigorous we should also specify that >0\infty>0 and +1=\infty+1=\infty). For example, if we start with S0=+S_{0}=\mathbb{N}_{+} (or equivalently with σ0:00,1\sigma_{0}:0\rightarrow 0,*\rightarrow 1) then we get the sequence on the left:

[Uncaptioned image]

Figure 11.2

And a Loop occurs at (σ8=σ10:1,22,42,2,1)(\sigma_{8}=\sigma_{10}:1\rightarrow\infty,2\rightarrow 2,4\rightarrow 2,\infty\rightarrow 2,*\rightarrow 1).

There are other more interesting Transfinite variations (e.g. the one on the right). So to keep from confusing ourselves, let’s call the version on the left STIG for Simplest Transfinite Inventory Game. The version we’re about to define (the one on the right) will be called TOIG for Transifnite Ordinals Inventory Game since it is played with surreal numbers (hence using ω\omega instead of \infty).

In STIG, we said =+1\infty=\infty+1. TOIG is more or less the result of saying instead +1\infty\not=\infty+1. Correspondingly in STIG, we said |σ1(x)|=|\sigma^{-1}(x)|=\infty if σ\sigma sent any infinite portion of \mathbb{N} to xx. In TOIG however, we say |σ1(x)=ω|\sigma^{-1}(x)=\omega if σ\sigma sends all of \mathbb{N} to xx. And if σ\sigma sends all but a finite portion of \mathbb{N} to xx, say /P\mathbb{N}/P, then we say |σ1(x)|=ω|P||\sigma^{-1}(x)|=\omega-|P|. In the round of TOIG in Figure 11.2 for example, σ1\sigma_{1} sends /{0,1}\mathbb{N}/\{0,1\} to 11. Accordingly, |σ11(1)|=ω2|\sigma_{1}^{-1}(1)|=\omega-2 and σ2(1)=|σ11(1)|+1=ω1\sigma_{2}(1)=|\sigma_{1}^{-1}(1)|+1=\omega-1. And again, if in addition to /P\mathbb{N}/P, σ\sigma sends some finite set of transfinites, QQ, to xx then we say

|σ1(x)|=ω|P|+|Q|.|\sigma^{-1}(x)|=\omega-|P|+|Q|.

But this variation has a couple of holes the authors have not seriously attempted to patch. Firstly, what happens when infinite transfinites are sent to xx? And secondly, what happens when an infinite portion of \mathbb{N} with infinite exceptions is sent to xx? For instance of the latter, what if we start with S0={0,2,4,6,8,}S_{0}=\{0,2,4,6,8,...\}? (i.e. σ01(1)=2\sigma_{0}^{-1}(1)=2\mathbb{N} – the non-negative even numbers).

The only hopeful solution occurring to the authors was to play over Conway’s surreal numbers (as opposed to a more simple surordinal set). The first difficulty might then be resolved setting σ1(x)\sigma^{-1}(x) to 2ω2\omega or ω2\omega^{2} (or perhaps something more nuanced). The second difficulty, σ01(1)=2\sigma_{0}^{-1}(1)=2\mathbb{N}, might be also resolved setting |σ01(1)||\sigma_{0}^{-1}(1)| to 12ω\frac{1}{2}\omega. And in general if XX has density dd in \mathbb{N} then we set |X|=dω|X|=d\omega. If the density is 0 or 11 then an interesting work-around might be found with ϵ=1ω\epsilon=\frac{1}{\omega} (or the variation might play out consistently without any patch-work). The soil seems fertile here but the authors haven’t made time to plant anything.

The multiset-as-function formulation has also some nice alterations worth mentioning. But it will need some surgery first – it’s not flexible enough currently. There are three procedures to be done:

  1. 1.

    First we treated σi\sigma_{i} as a map from \mathbb{N} to \mathbb{N}, then as a map from ^\hat{\mathbb{N}} to ^\hat{\mathbb{N}}, and thirdly as a map from the surreal numbers 𝕊\mathbb{S} to themselves. In general, σi\sigma_{i} sends some set GG “into” itself. Really the only requirement of GG is an additive structure with identity – in other words, to clearly define σi:GG\sigma_{i}:G\rightarrow G, we need some +:G2G+:G^{2}\rightarrow G and 0G0\in G such that 0+x=x0+x=x for any xGx\in G.

  2. 2.

    When working out multμ(S)\text{mult}_{\mu(S)} we had to make an exception for zero since we don’t mention zero amounts of things in description (e.g. saying 1313 has “one 11, zero 22’s, one 33, zero 44’s, zero 55’s, …”). In spoken languages, zero is (usually) an assumed or insignificant Adjective. But what if we want to mention zero things explicitly? – if we want to give zero some significance? Or alternatively, what if we want to treat other Adjectives besides zero insignificantly? Both of these can be done defining a set IGI\subset G of Insignificant Adjectives where so far we have used I={0}I=\{0\}.

  3. 3.

    We said in the first section some people play the Inventory Game without Nouns. Their gameplay can be accommodated by adding a parameter rGr\in G counting Noun-mentions. We played with r=1r=1. Choosing r=0r=0 gives the Nounless Variation and corresponds tot he map Sμ(S)S\rightarrow\mu(S) in the multiset formulation. More will be said about r>1r>1 further on.

Putting all these together, the recurrence becomes

σi+1(x)={|σi1(x)|if xI0if xI+{rif σi(x)I0if σi(x)I.\sigma_{i+1}(x)=\begin{cases}|\sigma_{i}^{-1}(x)|&\text{if }x\not\in I\\ 0&\text{if }x\in I\end{cases}\quad+\quad\begin{cases}r&\text{if }\sigma_{i}(x)\not\in I\\ 0&\text{if }\sigma_{i}(x)\in I\end{cases}.

The order operator |||\cdot| can really be any map sending subsets of GG to elements of GG (i.e. ||:𝒫(G)G|\cdot|:\mathcal{P}(G)\rightarrow G).

A lot of variations can now be labeled by a 44-tuple (G,I,||,r)(G,I,|\cdot|,r). Our main specimen of analysis has been (,{0},||,1)(\mathbb{N},\{0\},|\cdot|,1). STIG is ({},{0},||,1)(\mathbb{N}\cup\{\infty\},\{0\},|\cdot|,1) where |||\cdot| sends infinite sets to \infty and TOIG is (𝕊,{0},||,1)(\mathbb{S},\{0\},|\cdot|,1) where 𝕊\mathbb{S} is Conway’s surreal numbers and |||\cdot| we never defined exhaustively. Additionally, the decimal Nounless Variation is (/10,,||,0)(\mathbb{Z}/10\mathbb{Z},\emptyset,|\cdot|,0) where |||\cdot| sends sets of order 1010 to 0. This variation has two Loops. There is a 11-cycle corresponding to the self-descriptive number 62100010006210001000 and a 22-cycle corresponding the mutually descriptive pair 71010010007101001000 and 63000001006300000100. The authors here resist the temptation to speculate about Nounless Transfinite Variations.

One wonders how variations behave when II is neither \emptyset nor {0}\{0\}. Consider then (,/{1,2,3},||,1)(\mathbb{N},\mathbb{N}/\{1,2,3\},|\cdot|,1). It’s a lot like the version we analyzed except a Noun is mentioned only if there are 1,2,1,2, or 33 of it. For example, we would say 11333352551133335255 has “two 11’s, one 22, and three 55’s”. The 33’s are not mentioned. This variation produces Loops longer than 33 elements:

11
1111
2121
11121112
31123112
211213211213
𝟑𝟏𝟐𝟐𝟏𝟑\mathbf{312213}
212223212223
11131113
31133113
21232123
112213112213
𝟑𝟏𝟐𝟐𝟏𝟑\mathbf{312213}
...

The last point of any substance the authors have to make is about r>1r>1. Let’s play (,{0},||,3)(\mathbb{N},\{0\},|\cdot|,3) – i.e. the variation we analyzed with r=3r=3. This means Nouns are repeated 33 times each in description saying, for example, 13811381 has

“two 1111-1-1’s, one 3333-3-3, and one 8888-8-8.”

One inevitably thinks of speaking with a stutter. But we will call these OEIGs for Over-Emphasized Inventory Games (and spoofing the OEIS [10]). Thus here we say f(1381)=211113331888f(1381)=211113331888 and a round might go like:

11
11111111
41114111
3111 14443111\ 1444
4111 1333 34444111\ 1333\ 3444
4111 4333 44444111\ 4333\ 4444
3111 3333 64443111\ 3333\ 6444
3111 5333 3444 16663111\ 5333\ 3444\ 1666
4111 5333 1555 3444 36664111\ 5333\ 1555\ 3444\ 3666
4111 5333 4555 4444 36664111\ 5333\ 4555\ 4444\ 3666
3111 4333 4555 6444 36663111\ 4333\ 4555\ 6444\ 3666
3111 5333 3555 5444 46663111\ 5333\ 3555\ 5444\ 4666
3111 5333 5555 4444 3666\mathbf{3111\ 5333\ 5555\ 4444\ 3666}
3111 5333 5555 4444 3666\mathbf{3111\ 5333\ 5555\ 4444\ 3666}
...

The gameplay should feel oddly similar to the r=1r=1 variation we studied. Look – the Loop’s Adjectives are 3345533455 (a bit similar to the fixed point of T5T_{5}^{*}: 1123311233). It isn’t coincidence. Alternatively, if one had started with S0={1,3,8,1}S_{0}=\{1,3,8,1\} (or again, equivalently with σ0:12,31,81,0)\sigma_{0}:1\rightarrow 2,3\rightarrow 1,8\rightarrow 1,*\rightarrow 0) one would find a 22-cycle:

3111 3222 7333 6444 3555 3666 3777 48883111\ 3222\ 7333\ 6444\ 3555\ 3666\ 3777\ 4888
3111 3222 8333 4444 3555 4666 4777 38883111\ 3222\ 8333\ 4444\ 3555\ 4666\ 4777\ 3888

with Adjectives again very similar to T8T_{8}^{*}:

Loop Adjectives 22-cycle
from r=3r=3 var. from T8T_{8}^{*}
3333346733333467 1111124511111245
3333444833334448 1111222611112226

To find out what’s going on, we should generalize TnT_{n}^{*}. So let Tn,rT_{n,r}^{*} be the set of multisets

  1. 1.

    containing nn elements,

  2. 2.

    whose elements sum to r+1r+1 times their order,

  3. 3.

    and whose elements are rr or greater.

Formally

Tn,r={Sr:xSx=(r+1)|S|=(r+1)n}.T_{n,r}^{*}=\{S\in\mathbb{N}_{\geq r}:\sum_{x\in S}x=(r+1)|S|=(r+1)n\}.

Our old definition then lines up as Tn=Tn,1T_{n}^{*}=T^{*}_{n,1}. One could similarly generalize gng_{n} and μ+\mu_{+} and go on to show A) the Adjectives of a Loop in (,{0},||,r)(\mathbb{N},\{0\},|\cdot|,r) are members of Tn,rT_{n,r}^{*}, B) the multisets of any Tn,rT_{n,r}^{*} and Tn,tT_{n,t}^{*} are in bijective correspondence (in particular if t>rt>r then any STn,tS\in T_{n,t}^{*} is obtained adding trt-r to each element of some RTn,rR\in T_{n,r}^{*}), and C) therefore every Loop of (,{0},||,r)(\mathbb{N},\{0\},|\cdot|,r) is mapped under a bijective correspondence to a cycle in Tn,0T_{n,0}^{*} under μ\mu. Note also Tn,0T_{n,0}^{*} is in bijective correspondence to partitions of nn.

The authors wonder if in general the Loops of (G,I,||,r)(G,I,|\cdot|,r) can always be reduced by isomorphism to the Loops of (G,I,||,r^)(G,I,|\cdot|,\hat{r}) for some particular r^G\hat{r}\in G (in the former case, r^=1\hat{r}=1). They wonder also if and when such isomorphisms of Loops offer a translation of pre-period bounds across variations.

The speculations have been completed. The authors have navigated only one path and a couple landmarks of the Inventory forest (and perhaps not the most efficient path at that). They are not sure if these speculations are so simple (or so general) as to be useless. That is, they aren’t sure if they have lead the reader to really new and nice scenery – or only in a circle (or perhaps to a cliff). Thus the length of these speculations may only be evidence they don’t have the nose for telling dead from fertile mathematical soil. But they believe it is always better to ask more questions than one answers and that to live in a universe with no open questions (or more likely, to live without interest for the open questions around oneself) is the closest experience to Hell we might have while alive. So, as one might imagine the totality of known mathematics as a house and the unknown as the wild outdoors, the authors have in this last section thrown open the doors and windows nearest them. They hoped to give the reader new exploration (or at least a fresh breeze). They ask the reader’s forgiveness if – in ignorance or haste – they have only thrown open a closet, the oven, or the door to another room.

References

  • [1] Victor Bronstein and Aviezri S. Fraenkel. “On a Curious Property of Counting Sequences.”
    The American Mathematical Monthly, vol. 101, no. 6, 1994, pp. 560–563. JSTOR,
    http://www.jstor.org/stable/2975323
  • [2] Victor Bronstein and Aviezri S. Fraenkel. “More on Counting Sequences.” (1995)
    https://pdfs.semanticscholar.org/3328/255c7198aa6c92a8a555a7b60c647659ce9c.pdf
  • [3] Jim Sauerberg and Linghsueh Shu. “The Long and Short of Counting Sequences.”
    The American Mathematical Monthly vol. 104, no. 4 1997, pp. 306-317. JSTOR,
    https://www.jstor.org/stable/2974579
  • [4] Clifford Pickover, The Math Book, Sterling Publishing, 2009. p. 486, Audioactive Sequence
  • [5] André Pedroso Kowacs. “Studies on the Pea Pattern Sequence”, arXiv:1708.06452v5 [math.HO], https://arxiv.org/abs/1708.06452v5
  • [6] Carlos Rivera, The Inventory Sequences and the Self-inventoried Numbers,
    The Prime Puzzles & Problems Connection #207,
    https://www.primepuzzles.net/puzzles/puzz_207.htm
  • [7] J. H. Conway. “The Weird and Wonderful Chemistry of Audioactive Decay”, Eureka 46, 5-18, 1986.
  • [8] Wikipedia, Self-descriptive Number,
    https://en.wikipedia.org/wiki/Self-descriptive_number
  • [9] James Grime, Maths Puzzle: The self descriptive number solution,
    YouTube, https://www.youtube.com/watch?v=1GKfEDvhWdY
  • [10] OEIS Foundation Inc. (2019), The On-Line Encyclopedia of Integer Sequences, https://oeis.org
  • [11] Inventory Numbers Python code.
    Live: https://repl.it/@onnomc/InventoryNumbers
    GitHub: https://github.com/onnomc/InventoryNumbers