Jane’s infinite rosary

This mathematical treat was inspired by Jane Street‘s puzzle: Traversing the Infinite Sidewalk. I shared the puzzle with my mathematical friend Éric, and we had quite some fun discovering its properties.1

It is also a testimony to the richness derived from the irrationality of log2(3) and reminiscent of (Caruso, 2012) about the mathematics underlying the 12-tone Pythagorean temperament and the 53-commas musical scale.

Here goes Jane’s story: Jane owns an infinite rosary. It has a single end and is comprised of an infinite number of black and white beads. Starting from the end, the bead positions are numbered n=0,1,2, and each bead has a label L(n)=1,1,2,2,3,3, Every third bead including the zeroth one is black; the other beads are white.

Figure 1: Jane’s rosary (beads positions are shown)
Figure 2: Jane’s rosary (beads labels are shown)

Jane tells the beads of her rosary in a special way: each time she is done with a bead (say bead n), she moves on, either up to bead n+L(n) or down to bead nL(n).

Figure 3: telling the beads of Jane’s rosary

Starting at bead 0, can Jane tell every bead in her rosary? (That is the question.)

Prelude: names

To weave the magic of a thing, you see, one must find its true name out.

Ursula K. Le Guin, A Wizard of Earthsea
  • Bead: a natural number nN (the number represents the position of the bead in Jane’s rosary).
  • Black bead: a bead n divisible by 3 (denoted 3n).
    When we know for sure that a bead is black, we may indicate it with: 3n.
  • White bead: a bead n not divisible by 3 (denoted 3n).
    When we know for sure that a bead is white, we may indicate it with: 3n+1.
  • Even bead: a bead n divisible by 2 (denoted 2n).
  • Odd bead: a bead n not divisible by 2 (denoted 2n).
  • Label: the label of bead n is: L(n)=1+n2, where denotes the floor function.
    L is an increasing function.
  • Up: going up from bead n, Jane reaches bead U(n) also denoted nU (postfix notation for unary operator U).
    (1)U:NN,n3n2+1
    L is a strictly increasing function.
  • Down: going down from bead n>0, Jane reaches bead D(n) also denoted nD (postfix notation for unary operator D).
    (2)D:NN,nn21
    D is an increasing function.
  • Lambda: Jane can reach white bead n by performing one up move from bead λ(n) also denoted nλ (postfix notation for unary operator λ).
    (3)λ:N3NN,n2n3
    λ is a strictly increasing function. Also, it holds that:
    (4)nN3N,n=nλU
  • Mu: given any n, there is a unique way for Jane to reach bead n while moving down from an odd bead, which we denote μ(n) or nμ (postfix notation for unary operator μ).
    (5)μ:NN,n2n+1
    μ is a strictly increasing function. Also, it holds that:
    (6)nN,n=nμD
  • Nu: given any n, there is a unique way for Jane to reach bead n while moving down from an even bead, which we denote ν(n) or nν (postfix notation for unary operator ν).
    (7)ν:NN,n2n+2
    ν is a strictly increasing function. Also, it holds that:
    (8)nN,n=nνD
  • Recitation: starting at bead n and randomly moving up or down finitely or infinitely many times, Janes performs a recitation. In other words a recitation is a sequence of natural numbers (an) such that a0=n and i,ai+1{aiU,aiD}.
  • Length: the length of a recitation is the number of moves it comprises, finite or infinite. For a finite recitation of length l, we can write: (Mi)1l{U,D}l,n0M1M2Ml=nl
    n0 is the start of the recitation. nl is the end of the recitation.
  • Minimal recitation: a recitation from bead n to bead m, with minimal length. By convention, a minimal recitation to bead m means a minimal recitation from bead 0 to bead m.
  • Height: the height of bead n (denoted h(n)) is the length of a minimal recitation to bead n. As we are about to see, every bead has a finite height.

The height of a bead

By definition h(0)=0.

What about the height of bean n in general?

Figure 4: the height of bead 3 is 5 (beads labels are shown)

Given n>0, observe that:

  • 3nn=mU, where m=nλ=2n3<n,
  • 3n9nn=mU2D, where m=nμλ2=8n9<n,
  • 9nn=mU2D, where m=nνλ2=8n+69<n.

This shows (by induction on n) that every bead has a finite height.◻

This also gives two upper bounds:

(9)for all n,h(n)1+4n3(10)for all n>0,h(n)6log(n)log(9/8)

The logarithmic bound was suggested by Jianing Song.

Computing the height of a bead

The following simple exploration-based algorithm will do:

Python

Below is a plot of the height function.

Figure 5: plot of the heights of beads

Minimal recitations

In this section, we study some properties of minimal recitations.

Minimal recitations ending in a white bead

The following property holds for any white bead n (3n): there exists a minimal recitation to n that ends in an up move. In other words:

(11)nN3N,3n(Mi)1h(n)1{U,D}h(n)1,0M1M2Mh(n)1U is a minimal recitation to n

The proof is by induction on the height of n. Assume hN given, and assume that for each white bead n of height <h, property (11) holds.

Further assume (by contradiction) the existence of a white bead n of height h such that no minimal recitation to n ends in up. Finally, consider a minimal recitation R to n (thus necessarily ending in a down move).

Being a white bead, n is either of the form 3k+1 or 3k+2 for some k0.

Let’s first deal with the case where n=3k+1. Observe the following three commutative diagrams:

Case 1

8k+4DU12k+7Dλ4k+1D6k+3Dμ2kU3k+1μ

Case 2

8k+5DU12k+8Dλ4k+2D6k+3Dν2kU3k+1μ

Case 3

4k+2DU6k+4λD2kU3k+1ν

The ending of recitation R must correspond to one of the above diagrams. There are three possibilities:

  • Case 1: R ends in n=(nμμ)D2. Since 12k+7 is a white bead of height h2, it must have a minimal recitation ending in up. Which produces a minimal recitation ending in n=(nμμλ)D2U – i.e., downdownup.
  • Case 2: R ends in n=(nμν)D2. Since 12k+8 is a white bead of height h2, it must have a minimal recitation ending in up. Which produces another minimal recitation ending in n=(nμνλ)D2U – i.e., downdownup.
  • Case 3: R ends in n=(nν)D. Since 6k+4 is a white bead of height h1, it must have a minimal recitation ending in up. Which produces another minimal recitation ending in n=(nνλ)DU – i.e., downup.

Each time there is a contradiction because a minimal recitation is produced, which is ending in an up move.

Next let’s deal with the case where n=3k+2. The corresponding commutative diagrams are as follows:

Case 4

8k+8DU12k+13Dλ4k+3D6k+6Dμ2k+1U3k+2ν

Case 5

8k+9DU12k+14Dλ4k+4D6k+6Dν2k+1U3k+2ν

Case 6

4k+3DU6k+5λD2k+1U3k+2μ

Again, we have a contradiction since in all cases we can construct a minimal recitation ending in an up move. This shows that property (11) holds for all white beads. ◻

Minimal recitations ending in a black bead

An consequence of property (11) is that for any black bead n>0,3n: there exists a minimal recitation to n that ends in an updown sequence. In other words:, for all nN,n>0:

(12)n3N,n>0(Mi)1h(n)2{U,D}h(n)2,0M1M2Mh(n)2UD is a minimal recitation to n

The proof is similar as for the white beads, with the following two commutative diagrams.

4kU6k+1λD3kμ

4k+1U6k+2λD3kν

Interlude: more names

Hey, Louie. The man is dry. Give him one on the house, okay?

Ridley Scott, Blade Runner (1982)
  • Eager recitation: a recitation that only moves up.
  • Seed: the seed of bead n (denoted σ(n)) is the black bead from which n can be reached via an eager recitation (only up moves).
  • Lambex: the lambex of bead n (denoted Λ(n)) is the number of up moves required to reach n from its seed σ(n). In other words: n=σ(n)UΛ(n) or equivalently σ(n)=nλΛ(n).
  • Up-chains: we call up-chain starting at bead n (denoted (n)) the set of beads reachable by an eager recitation (only up moves) from bead n:
    (13)(n)=def{nUiiN}
    Note that:
    (14)N=nN(3n)
  • Down-chains: we call down-chain starting at bead n (denoted (n)) the set of beads reachable by downwards recitation (only down moves) from bead n:
    (15)(n)=def{nDiiN}
    Note that every down-chain is finite and ends in 0.
  • Jane’s reluctant recitation: Jane starts the reluctant recitation at bead 0 and always moves down rather than up, unless moving down would lead to a bead that Jane has already visited, in which case Jane reluctantly moves up. See figure 9 for an illustration.
  • Rho: ρ(i) is the ith bead in Jane’s reluctant recitation. For instance, ρ(0)=0, ρ(5)=3, ρ(13)=12. See figure 10 for an illustration.
    By construction, ρ is an injective function. And ρ(i) is actually well defined for all i0, as we will see later.

The structure of Jane’s rosary

The partitioning of Jane’s rosary in up-chains produces an interesting one-to-one mapping γ between N and N×N:

γ(n)=def(σ(n)3,Λ(n))

This is illustrated by Figure 6.

Figure 6: Jane’s rosary deconstructed (beads grouped by up-chains)

With this mapping, the beads’ heights have a clean representation:

Figure 7: Jane’s rosary deconstructed (beads heights are shown)

Theorem 1: minimal recitations ending in a black bead

Theorem 1 further studies the properties of minimal recitations ending in a black bead. Let 3n>0 be a black bead.

The following properties hold:

(16)σ(μ(3n))σ(ν(3n))(17)Λ(μ(3n))Λ(ν(3n))(18)Λ(μ(3n))>Λ(ν(3n))σ(μ(3n))<σ(ν(3n))(19)h(3n)h(3n1)(20)h(3n)h(3n+1)(21)Λ(μ(3n))>Λ(ν(3n)) minimal recitation to 3n ending in σ(μ(3n))UΛ(μ(3n))D(22)Λ(ν(3n))>Λ(μ(3n)) minimal recitation to 3n ending in σ(ν(3n))UΛ(ν(3n))D

In particular, this shows that which of μ(3n) or ν(3n) belongs to a minimal recitation to 3n is determined by which has the larger lambex (and the smaller seed).

This is illustrated in figure 7: the solid arrows point to predecessors with lower lambex, the dashed arrows point to predecessors with larger lambex.

Figure 8: when in doubt, choose the predecessor with a lower lambex

Theorem 1 guarantees the correctness of the following improved algorithm for computing h(n) with complexity log(n) in time and contant complexity in space:

Python

(16), (17) and (18) are easy.

The remainder of the proof is by induction on the height of 3n.

We can easily check that (19), (20), (21) and (22), are true for all n such that h(3n)5.

Now assume h>0 given, such that (19), (20), (21) and (22), are true for for all n such that h(3n)<h. Further consider a black bead 3n of height h.

The following diagram (where s is the successor function: s(k)=k+1) is well defined and commutes:

b1=4n+16n+2λa1=4ns6n+1λs3nsμνd1=2nμ3n+1λc1=2n1sν3n1sλ

Observe that c1=D(a1), d1=D(b1), b1=s(a1), d1=s(c1). Also, depending on nmod3, the possibilities for a1, b1, c1, d1 are: nmod3a1mod3b1mod3c1mod3d1mod3001201121222001

So depending on nmod3, the « λ-step » either creates two black beads (b1 and c1 or a1 and d1), or it creates no black beads at all. When no black beads are created, the « λ steps » can be applied again. Let’s see how it goes.

Assuming four white beads ai, bi, ci, di where ci=D(ai), di=D(bi), bi=s(ai) and di=s(ci), the only possible configuration is described by the following two diagrams:

biDaisDdicis bi=6k+5ai=6k+4sdi=3k+2μci=3k+1sν

Applying a « λ-step » to the left gives the following commutative diagram:

bi+1=4k+3bi=6k+5λai+1=4k+2sai=6k+4λsdi+1=2k+1μdi=3k+2μλci+1=2ksνci=3k+1sνλ

Where ci+1=D(ai+1), di+1=D(bi+1), bi+1=s(ai+1), di+1=s(ci+1), and depending on kmod3, the possibilities for ai+1, bi+1, ci+1, di+1 are: kmod3ai+1mod3bi+1mod3ci+1mod3d1i+1mod3020011012021212

This shows that the « λ-step » can be repeatedly applied i>0 times until two black beads are created, either bi and ci or ai and di. Note that the « λ-steps » cannot be indefinitely applied, since this would result in an infinitely descending sequence (ci).

On the one hand, if bi and ci are the black beads, the configuration is summarized by the following commutative diagram:

bi6n+2λiaisUi6n+1sλiD3nsμνdiμ3n+1λicisν3n1sλi

and the following deductions can be made:

  • Λ(μ(3n))>Λ(ν(3n)),
  • ai belongs to a minimal recitation to 3n. If it did not, bi would belong to a minimal recitation to 3n, we would have h(bi)=h(3n)i1<h, and by induction hypothesis (19) we could write the following contradiction:
    h(ai)+i+1>h(3n)=h(bi)+i+1h(ai)+i+1,
  • there is a minimal recitation to 3n ending in aiUiD,
  • there is a minimal recitation to 3n ending in σ(μ(3n))UΛ(μ(3n))D,
  • h(3n1)h(ai)+1+i=h(3n),
  • h(ci)h(ai)+1<h(3n)=h, and by induction hypothesis (20) we can write: h(3n+1)h(di)+ih(ci)+i(h(ai)+1)+i=h(3n).

On the other hand, if ai and di are the black beads, the configuration is summarized by the following commutative diagram:

biUi6n+2λiDais6n+1sλi3nsμνdiμ3n+1λicisν3n1sλi

and similarly, the following deductions can be made:

  • Λ(ν(3n))>Λ(μ(3n)),
  • bi belongs to a minimal recitation to 3n,
  • there is a minimal recitation to 3n ending in σ(ν(3n))UΛ(ν(3n))D,
  • h(3n1)h(3n),
  • h(3n+1)h(3n).

Overall, properties (19), (20), (21) and (22) hold for all n such that h(3n)=h.◻

Jane’s reluctant recitation

The reluctant recitation was suggested by Neal Gersh Tolunsky. The recitation starts at bead 0 and Jane tells the beads, always preferring to move down rather than up, unless moving down would lead to a bead that Jane has already visited, in which case Jane reluctantly moves up.

The following figure illustrate the moves of the reluctant recitation.

Figure 9: Jane’s reluctant recitation (beads positions are shown)

The following algorithm computes ρ(i):

Python

Theorem 2: Jane’s reluctant recitation never halts

While performing the reluctant recitation, Jane moving on to bead n never causes a gap to appear in the rosary’s up-chains – i.e., a gap in the sequence σ(n),σ(n)U,,σ(n)UΛ(n)=n.

This ensures that the reluctant-recitation never halts.

Figure 10: Jane’s reluctant recitation never halts

The proof is by contradiction and by induction on the index i or the first move that would create a gap.

Looking at Figure 10, we see that moves up to the 20th do not create a gap.

Now assume (by contradiction) the existence of i0 such that none of Jane’s reluctant moves prior to i has created a gap but Jane’s ith move creates a gap by reaching bead n=ρ(i).

Since an up move cannot create a gap in an up-chain, it holds that n=ρ(i1)D.

Since a gap is created, ρ(i) must be a white bead (non divisible by 3) and there must be a gap g just « to the left » of n in the up-chain, at the moment n is reached:

g=λ(n).

We must consider two cases: n=3k+1 and n=3k+2.

Gap « to the left » of 3k+1

Consider the case ρ(i)=3k+1.

If ρ(i1)=ρ(i)ν, then one of the two following commutative diagrams holds, where a indicates ρ(ia):

2:4k+2DU1:6k+4D:g=2kU0:3k+1ν 2Dj:4k+2DU1:6k+4D:g=2kU0:3k+1ν

The left hand side diagram brings a contradiction, since from 2 Jane should have moved down to g=, rather than up to 1.

The right hand side diagram also brings a contradiction: since 1 has not created a gap (induction hypothesis), 4k+2 must have been visited at some earlier step j, and from j Jane should have moved down to .

Consequently ρ(i1)=ρ(i)ν=6k+3 is a black bead, and we must consider two subcases: ρ(i2)=ρ(i1)μ and ρ(i2)=ρ(i1)nu

Subcase: ρ(i2)=ρ(i1)μ

If ρ(i2)=ρ(i1)μ, then one of the two following commutative diagrams holds:

3:8k+4DU2:12k+7Dj:4k+2D1:6k+3Dμ:g=2kU0:3k+1μ 3Dj:8k+4DU2:12k+7Dj1:4k+2D1:6k+3Dμ:g=2kU0:3k+1μ

On the left hand side diagram, since after 3 Jane chose to move up to 2, 4k+2 must have been visited at some earlier step j. But there is a contradiction since from j Jane should have moved down to g=.

On the right hand side diagram, since 2 has not created a gap (induction hypothesis), 8k+5 must have been visited at some earlier step j. After j Jane must have moved down to j1 and from j1 she should have moved down to , again a contradiction.

Subcase: ρ(i2)=ρ(i1)ν

If ρ(n2)=ρ(n1)ν, then one of the two following commutative diagrams holds:

3:8k+5DU2:12k+8Dj:4k+2D1:6k+3Dν:g=2kU0:3k+1μ 3Dj:8k+5DU2:12k+8Dj1:4k+2D1:6k+3Dν:g=2kU0:3k+1μ

On the left hand side diagram, since after 3 Jane chose to move up to 2, 4k+2 must have been visited at some earlier step j. But there is a contradiction since from j Jane should have moved down to g=.

On the right hand side diagram, since 2 has not created a gap (induction hypothesis), 8k+5 must have been visited at some earlier step j. After j Jane must have moved down to j1 and from j1 she should have moved down to , again a contradiction.

At this point, we conclude that it is not possible that ρ(n)=3k+1.

Gap « to the left » of 3k+2

Consider now the case ρ(i)=3k+1.

The same reasoning as previously brings contradictions.

If ρ(i1)=ρ(i)μ, the commutative diagrams to consider are:

2:4k+3DU1:6k+5D:g=2k+1U0:3k+2μ 2Dj:4k+3DU1:6k+5D:g=2k+1U0:3k+2μ

If ρ(i1)=ρ(i)ν and ρ(i2)=ρ(n1)μ, the commutative diagrams to consider are:

3:8k+8DU2:12k+13Dj:4k+3D1:6k+6Dμ:g=2k+1U0:3k+2ν 3Dj:8k+8DU2:12k+13Dj1:4k+3D1:6k+6Dμ:g=2k+1U0:3k+2ν

If ρ(i1)=ρ(i)ν and ρ(i2)=ρ(i1)ν, the commutative diagrams to consider are:

3:8k+9DU2:12k+14Dj:4k+3D1:6k+6Dν:g=2k+1U0:3k+2ν 3Dj:8k+9DU2:12k+14Dj1:4k+3D1:6k+6Dν:g=2k+1U0:3k+2ν

This concludes the proof that Jane’s reluctant recitation never halts. ◻

Conjecture 3: Jane’s reluctant recitation tells all beads

We have demonstrated (just above) that Jane’s reluctant recitation is a well defined sequence (ρ(n))n=0. By construction ρ is injective, but more than that,

(23)it seems that ρ is a permutation of N.

We have been able to check with a computer that ρ reaches every integer up to 7884654 (7.8106) but at the moment we cannot prove conjecture 3. We can however prove a lesser form of it, theorem 3: either Jane’s reluctant recitation tells all beads, or there is a finite integer that bounds the number of times it visits every maximal up-chain (3n).

Lemma 1

Let nN, then the down-chain (n) contains exactly the integers m for which the binary representation of m+1 is a prefix of the binary representation of n+1:

(24)n,(n)={mk0,m+1=n+12k}

Lemma 2

Let mN. There exists a bound b(m)0 such that given any n0, m belongs to the down-chain of a bead less than b(m) up-moves away from n:

(25)mN,bN,nN,mk=0b(nUk)

The proof requires a short detour via analysis. First observe the following inequalities, true for all n>0:

(26)3n+12nU3n+22log2(n)+log2(32)+log2(1+13n)log2(nU)(27)log2(n)+log2(32)+log2(1+23n)(28)1ln(2)11+3nlog2(1+13n)<log2(1+23n)1ln(2)23n(29)1ln(2)(23n11+3n)=1ln(2)3n+23n(3n+1)

Further observe that since log2(3) is irrational, then:
(30)log2(32)N is dense in the circle R/Z

Figure 11: log2(32)N is dense in the circle R/Z

Now let’s assume mN given, and let d be the number of digits in binary representation of m+1: 2dm+1<2d+1.

Now perform the following:

  • Choose i such that ilog2(32) is less than 12d+1 away from 0 in R/Z.
  • Choose e>d such that ilog2(32) is more than 12e+1 away from 0 in R/Z.
  • Choose aN such that:
    na,1ln(2)3n+23n(3n+1)<12e+1i

Finally define the bound b(m) as a+2e+1i.

Observe that for all nN, {nUkkb} must contain a point nUk that is less than 12d+1 away from log2(μ(m)+ν(m)2). By lemma 1, it holds that m(nUk).◻

Proof of theorem 3

Assume that there is no finite bound on the number of times the reluctant recitation visits maximal up-chains (3n).

Take mN. By lemma 2, there is a bound b such that iN,mk=0b(iUk). By our assumption, we can pick an n such that (3n) is visited more than b times by the reluctant recitation.

Then there is a k, such that (3n)Uk is visited by the reluctant recitation and m((3n)Uk). This proves that m is visited by the reluctant recitation.2◻

Interlude: for a few names more

Colonnello Mortimer: Che succede ragazzo?
Il Monco: No, niente vecchio, non mi tornavano i conti. Ne mancava uno.

Sergio Leone, Per qualche dollaro in più (1965)
  • Canonical recitation: the canonical recitation to bead n (denoted C(n))is the minimal recitation 0=a0,a1,,ah(n)=n, defined by:
    3aiai1=aiλ3ai and Λ(aiμ)>Λ(aiν)ai1=aiμ3ai and Λ(aiν)>Λ(aiμ)ai1=aiν
  • Jane’s onyx rosary: Jane’s onyx rosary is obtained by removing all white beads from Jane’s full rosary. A bead in Jane’s onyx rosary is called an onyx bead, to distinguish it from the same bead in the Jane’s full rosary.
  • Onyx bead: a bead in Jane’s onyx rosary. Onyx beads positions are numbered from 0. Onyx bead n is the same as (black) bead 3n in Jane’s full rosary.
  • Onyx ordering: we define the partial ordering on the set of onyx beads: given two onyx beads m,nN,
    mndef3m appears in the canonical recitation for 3n
  • Onyx height: The onyx height of bead n (denoted h(n)) is defined as one less than the number of black beads in the canonical recitation of 3n:
    n,h(n)=defcard(C(3n)3N)1
  • Onyx down: Onyx down on onyx bead n (denoted D(n) or nD) is defined as:
    D(n)=def13σ(D(3n))
  • Onyx mu: Onyx mu on bead n (denoted μ(n) or nμ) is defined as:
    μ(n)=def13σ(μ(3n))
  • Onyx nu: Onyx nu on bead n (denoted ν(n) or nν) is defined as:
    ν(n)=def13σ(ν(3n))

Jane’s onyx rosary

Jane’s onyx rosary is obtained by removing all white beads from Jane’s full rosary. We call a bead in Jane’s onyx rosary an onyx bead, to distinguish it from the same bead in Jane’s full rosary. Beads positions in Jane’s onyx rosary are numbered from 0. In other words, onyx bead n is the same as (black) bead 3n in Jane’s full rosary.

In this section, we leave the black beads aside and focus solely on onyx beads.

Onyx ordering

Given two onyx beads m,nN, we define the onyx (partial) ordering as:
mndef3m appears in the canonical recitation for 3n

The onyx ordering is a well founded partial order on N (i.e., there are no infinitely descending chains). 0 is its only minimal element.

The Hasse diagram for the onyx partial order is a tree rooted in 0 (see Figure 12). In this tree, every onyx bead n is h(n) edges away from 0.

Figure 12: Jane’s onyx partial ordering

In the onyx ordering, every non-zero element n has a unique predecessor p(n), which we denote p(n)n.

By construction (and also as can be seen on Figure 12), the onyx ordering is embedded in N, in the sense that:
(31)mnmn

Theorem 4: every bead in the onyx ordering has infinitely many successors

Let us first establish a few lemmas that will help proving theorem 4.

Lemma 3

The following property holds:

(32)n,kN,3nUk+1DnUk and nUk+1 have the same parity

The proof is achieved by considering the four cases for the respective parities of nUk and nUk+1.◻

Lemma 4

Let nN, the up-chain (n) starting at n cannot have constant parity:

(33)nN,(nUk)k=0 does not have constant parity

The proof is by contradiction.

Assume (nUk)k=0 is constantly even. Then:
kN,nUk+1=32nUk+1

This equation is solvable and the unique solution is:
kN,nUk=(32)k(n+2)2

This is a contradiction since nUk must be an integer for all k.

Conversely, assume (nUk)k=0 is constantly odd. Then:
kN,nUk+1=32nUk+12

This equation is solvable and the unique solution is:
kN,nUk=(32)k(n+1)1

This is a contradiction since again, nUk must be an integer for all k.◻

Lemma 5

For any SN and any nN, let S+n denote the set {k+nkS}.

(34)m,nN,(n)((m)+1) contains at most 2 elements.m,nN,(n)((m)1) contains at most 2 elements.

Proof of theorem 4

The proof proceeds with the construction of subsets of (non-onyx) beads Sn(n) for all nN. Sn is defined as:

(35)Sn={k(3n)3kD}

By lemma 3 and lemma 4 we know that Sn is infinite.

Let D(Sn), Dμ(Sn), Dν(Sn) respectively denote the sets {kDkSn}, {kDμkSn}, and {kDνkSn}.

Now consider m<nN.

  • It holds that (Dμ(Sm)Dν(Sm))Sm(Sm+1)(Sm1).
  • Thus by lemma 5, (Dμ(Sm)Dν(Sm))Sn contains at most 4 elements.

To conclude, consider nN and P3n=S3nk<n(Dμ(S3k)Dν(S3k)).

  • P3n has infinitely many elements,
  • For each kP3n, 3kD, say kD=3m,
  • k is the lower of kDμ and kDν.

This designates 3m as the immediate predecessor of kD in the canonical recitation to kD. In other words, m (as an onyx bead) is the (immediate) predecessor of n in the onyx ordering: mn.◻

Corollary of theorem 4: canonical onyx mapping

Given any onyx bead nN and kN, let sn(k) denote the kth cover of n in the onyx ordering (i.e. immediate successor), where the covers are ordered by .

Conversely, given a non-zero onyx bead nN, let π(n) denote the unique predecessor of n in the onyx ordering, and let ι(n) denote the position of n in the set of covers of π(n).

For instance (refer to Figure 12): s0(2)=10, s1(2)=5, ι(38)=3.

We define the canonical onyx mapping C as:

C:NN<ωn(ι(πi(n)))i<h(n)

C is a one-to-one mapping from N to the set N<ω of finite sequences of natural numbers. Furthermore:

(36)m,nN,mnC(m) is a prefix of C(n).

As an illustration, the following table gives Cn for n=010:
nC(n)0()1(0)2(0,0)3(1,0)4(1)5(2,0)6(0,0,0)7(0,1)8(0,0,1)9(0,0,0,1)10(2)

Work in progress

Jane’s onyx height sequence

Jane’s onyx reluctant sequence

Jane’s inverse onyx reluctant sequence

Jane’s foraging sequence

Jane’s foraging sequence (Φ(i))i=0) is a sequence of onyx beads constructed from Jane’s reluctant recitation in the following way:

  • each ρ(i) is replaced with σ(ρ(i))3,
  • then direct repetitions are removed.

The foraging sequence goes like this:

0,1,2,4,3,13,4,7,5,0,10,40,30,4,11,8,6,16,12,9,

The foraging sequence is infinite. If conjecture 3 is true, then the foraging sequence visits all natural numbers an infinite number of times.

The following algorithm computes Φ(i):

Python

References

Caruso, X. (2012). Application des fractions continues à la construction des gammes musicales. Revue Des Mathématiques de l’Enseignement Supérieur, 123(1), 11.

Auteur/Autrice

  1. See also the On-Line Encyclopedia of Integer Sequences:

  2. Since whenever the reluctant recitation visits a bead \l, it also visits all beads in (l).

Publié

dans

,

par

Étiquettes :

Commentaires

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.