alphaFeedback

WorksMathematics

The Number of Terms in Greedy Fibonacci–Lucas Representations

AI contributions
  • Anthropic Claude Code Opus 5.5 Ultracode
View details
Ancillary data
1 code link
View

Abstract

We prove Kimberling's conjecture on greedy representations by Fibonacci and Lucas numbers: the ratio of the number of Zeckendorf summands of 1,…,n1,\dots,n to the number of terms of their greedy representations tends to a limit in (1.2,1.4)(1.2,1.4), and the limit is (5−5)/2(5-\sqrt5)/2. We also prove the conjectures of Greathouse and Kurkov on the number of terms of the greedy representation.

Introduction

Let FkF_k and LkL_k be the Fibonacci and Lucas numbers, F0=0F_0=0, F1=1F_1=1, L0=2L_0=2, L1=1L_1=1, let φ=(1+5)/2\varphi=(1+\sqrt{5})/2 and ψ=(1−5)/2\psi=(1-\sqrt{5})/2, and let

S={1,2,3,4,5,7,8,11,13,18,21,29,…}S=\{1,2,3,4,5,7,8,11,13,18,21,29,\ldots\}

be the set of positive Fibonacci and Lucas numbers (A116470 in the OEIS [8]). For n≥1n\ge1 let g(n)g(n) be the largest element of SS that is at most nn. The greedy algorithm subtracts g(n)g(n) from nn and repeats; the number of terms it produces is

a(0)=0,a(n)=1+a(n−g(n))(n≥1),a(0)=0,\qquad a(n)=1+a(n-g(n))\quad(n\ge1),

which is A214973. Let z(n)z(n) be the number of terms in the Zeckendorf representation of nn (A007895), and let

W(n)=∑i=1na(i),V(n)=∑i=1nz(i)W(n)=\sum_{i=1}^{n}a(i),\qquad V(n)=\sum_{i=1}^{n}z(i)

be A214981 and A179180. Representations by Lucas numbers go back to Carlitz, Scoville and Hoggatt [1]. Kimberling [3 Section 6] recorded the following conjecture, also stated in A214981.

Conjecture 1.1 (Kimberling). The limit of V(n)/W(n)V(n)/W(n) exists and lies in the interval (1.2,1.4)(1.2,1.4).

Two more conjectures, from 2021, are recorded in A214973. Let A049651(jj) = (F3j+1−1)/2(F_{3j+1}-1)/2.

Conjecture 1.2 (Greathouse). For every j≥1j \ge1, a(A049651(j))=ja(\mathrm{A049651}(j))=j, and this is the first occurrence of jj in A214973; that is, apart from its initial term, A049651 is the sequence of record positions of A214973.

The statement that A049651(jj) is the least nn with a(n)=ja(n)=j appeared earlier, without proof, in a 2012 comment by Kimberling in A049651.

Conjecture 1.3 (Kurkov). For every n≥1n \ge1, a(n)=A329320(A048679(n))a(n)=\mathrm{A329320}(\mathrm{A048679}(n)).

Here, if n=Fk1+⋯+Fksn=F_{k_1}+\cdots+F_{k_s} is the Zeckendorf representation of nn, with k1>⋯>ks≥2k_1>\cdots>k_s\ge2 and ki−ki+1≥2k_i-k_{i+1}\ge2, then A003714(n)=∑i2ki−2\mathrm{A003714}(n)=\sum_i 2^{k_i-2}, whose binary word has no two adjacent ones. Preceded by a zero, such a word is a concatenation of the words 0 and 01 in exactly one way, and A048679(nn) is the number whose binary word is obtained by replacing each factor 01 by 1. Finally A035263(mm) is the parity of the 2-adic valuation ν2(2m)\nu_2(2m), and

A329320(y)=∑k=0⌊log⁡2y⌋(1−A035263(1+⌊y2k⌋)),A329320(0)=0.\mathrm{A329320}(y)=\sum_{k=0}^{\lfloor\log_2 y\rfloor}\left(1-\mathrm{A035263}\left(1+\left\lfloor\frac{y}{2^k}\right\rfloor\right)\right),\qquad\mathrm{A329320}(0)=0.

For x≥1x\ge1 let K(x)K(x) be the index k≥2k\ge2 with Fk≤x<Fk+1F_k\le x<F_{k+1}, and put K(0)=0K(0)=0. We prove the three conjectures.

Theorem 1.4. Let T(x)=W(x−1)T(x)=W(x-1) and Z(x)=V(x−1)Z(x)=V(x-1) for x≥1x\ge1, and let c=(5−5)/2=2+ψc=(5-\sqrt{5})/2=2+\psi. For every x≥1x\ge1,

∣5T(x)−K(x)x∣≤19x,∣5Z(x)−cK(x)x∣≤13x.(1)\left|5T(x)-K(x)x\right|\le19x,\qquad\left|5Z(x)-cK(x)x\right|\le13x. \tag*{(1)}

Consequently, for every n≥1n\ge1,

∣W(n)−15nlog⁡φn∣≤10n,∣V(n)−c5nlog⁡φn∣≤10n,(2)\left|W(n)-\frac{1}{5}n\log_{\varphi}n\right|\le10n,\qquad\left|V(n)-\frac{c}{5}n\log_{\varphi}n\right|\le10n, \tag*{(2)}
∣V(n)W(n)−c∣≤51K(n+1)−19whenever K(n+1)>19,(3)\left|\frac{V(n)}{W(n)}-c\right|\le\frac{51}{K(n+1)-19}\qquad\text{whenever }K(n+1)>19, \tag*{(3)}

and V(n)/W(n)→(5−5)/2=1.38196…V(n)/W(n)\to(5-\sqrt{5})/2=1.38196\ldots, which lies in (1.2,1.4)(1.2,1.4). In particular Conjecture 1.1 holds.

The formula for V(n)V(n) agrees with Lekkerkerker’s theorem on the average number of Zeckendorf summands [5, 4], since c/5=1/(φ2+1)c/5=1/(\varphi^2+1). Pihko [7] proved the analogues of that theorem for the minimal and maximal Lucas representations and the maximal

Image not extracted

Figure 1. The structure of the proof of Theorem 1.4. The greedy step splits the summatory functions over the blocks of [0,Fk+1)[0,F_{k+1}); the values at Fibonacci numbers and the gap lemma then give the bounds {(xref}(1.1)} by induction on xx, and these give {(xref}(1.2), (3)} and the limit.

Fibonacci representation. Theorem 1.4 shows that the greedy algorithm over SS uses on average 15log⁡φn\frac{1}{5}\log_{\varphi} n terms.

Theorem 1.5. For every j≥1j \ge1, a(A049651(j))=ja(\mathrm{A049651}(j)) = j and a(m)<ja(m) < j for 0≤m<A049651(j)0 \le m < \mathrm{A049651}(j). Hence Conjecture 1.2 holds.

Theorem 1.6. For every n≥0n \ge0, a(n)=A329320(A048679(n))a(n) = \mathrm{A329320}(\mathrm{A048679}(n)). Hence Conjecture 1.3 holds.

The proof of Theorem 1.6 gives a(n)a(n) in terms of the Zeckendorf representation of nn: if its indices form maximal chains k,k−2,k−4,…k,k-2,k-4,\ldots of lengths ℓ1,…,ℓt\ell_1,\ldots,\ell_t, then a(n)=∑i⌈ℓi/2⌉a(n)=\sum_i\lceil\ell_i/2\rceil (Corollary 5.1). The proofs are elementary, and every statement of Theorems 1.4–1.6 is also proved in the Lean 4 proof assistant (§ 6).

The greedy step

We use Lm=Fm−1+Fm+1L_m=F_{m-1}+F_{m+1} for m≥1m \ge1.

Lemma 2.1. For k≥4k \ge4,

Fk<Lk−1<Fk+1,Lk−1−Fk=Fk−2,Fk+1−Lk−1=Fk−3,F_k < L_{k-1} < F_{k+1}, \qquad L_{k-1}-F_k=F_{k-2}, \qquad F_{k+1}-L_{k-1}=F_{k-3},

and S∩[Fk,Fk+1)={Fk,Lk−1}S \cap[F_k,F_{k+1})=\{F_k,L_{k-1}\}. Hence, for Fk≤n<Fk+1F_k \le n < F_{k+1},

a(n)={1+a(n−Fk),n<Lk−1,1+a(n−Lk−1),n≥Lk−1.(4)a(n)= \begin{cases} 1+a(n-F_k), & n<L_{k-1},\\ 1+a(n-L_{k-1}), & n\ge L_{k-1}. \end{cases} \tag*{(4)}
Image not extracted

Figure 2. The greedy step on [Fk,Fk+1)[F_k,F_{k+1}), drawn to scale for k=9k=9. By Lemma 2.1 the block [Fk,Lk−1)[F_k,L_{k-1}), of length Fk−2F_{k-2}, is moved onto [0,Fk−2)[0,F_{k-2}) by subtracting FkF_k, and the block [Lk−1,Fk+1)[L_{k-1},F_{k+1}), of length Fk−3F_{k-3}, onto [0,Fk−3)[0,F_{k-3}) by subtracting Lk−1L_{k-1}. The same three blocks give the decompositions (3.1) and (3.2) of the summatory function.

Proof. The identities follow from Lk−1=Fk−2+FkL_{k-1}=F_{k-2}+F_k and Fk+1−Fk−Fk−2=Fk−1−Fk−2=Fk−3F_{k+1}-F_k-F_{k-2}=F_{k-1}-F_{k-2}=F_{k-3}, and Fk−2,Fk−3≥1F_{k-2},F_{k-3}\ge1 gives the inequalities. The only Fibonacci number in [Fk,Fk+1)[F_k,F_{k+1}) is FkF_k. For the Lucas numbers, L0=2<FkL_0=2<F_k, the sequence (Lm)m≥1(L_m)_{m\ge1} is increasing, Lk−2=Fk−3+Fk−1≤Fk−2+Fk−1=FkL_{k-2}=F_{k-3}+F_{k-1}\le F_{k-2}+F_{k-1}=F_k, and Lk=Fk−1+Fk+1>Fk+1L_k=F_{k-1}+F_{k+1}>F_{k+1}. So Lk−1L_{k-1} is the only Lucas number in (Fk,Fk+1)(F_k,F_{k+1}).

For 1≤n≤21\le n\le2 we have a(n)=1a(n)=1. The Zeckendorf representation satisfies z(n)=1+z(n−Fk)z(n)=1+z(n-F_k) for Fk≤n<Fk+1F_k\le n<F_{k+1}, k≥2k\ge2, since its leading term is the largest Fibonacci number at most nn.

Lemma 2.2. Let n=Fk1+⋯+Fksn=F_{k_1}+\cdots+F_{k_s} be the Zeckendorf representation of n≥1n\ge1. If s≥2s\ge2 and k2=k1−2k_2=k_1-2, then a(n)=1+a(Fk3+⋯+Fks)a(n)=1+a(F_{k_3}+\cdots+F_{k_s}); otherwise a(n)=1+a(Fk2+⋯+Fks)a(n)=1+a(F_{k_2}+\cdots+F_{k_s}).

Proof. If k1≤3k_1\le3 then n∈{1,2}n\in\{1,2\}, s=1s=1 and a(n)=1a(n)=1. Let k=k1≥4k=k_1\ge4, so Fk≤n<Fk+1F_k\le n<F_{k+1}, and let r=n−Fkr=n-F_k. If k2=k−2k_2=k-2, then n≥Fk+Fk−2=Lk−1n\ge F_k+F_{k-2}=L_{k-1} and n−Lk−1=Fk3+⋯+Fksn-L_{k-1}=F_{k_3}+\cdots+F_{k_s}. Otherwise r=0r=0 or r<Fk2+1≤Fk−2r<F_{k_2+1}\le F_{k-2}, so n<Lk−1n<L_{k-1}. In both cases (2.1) gives the claim.

So the greedy algorithm over SS is the Zeckendorf algorithm in which a leading summand FkF_k followed by Fk−2F_{k-2} is merged into Lk−1L_{k-1}.

The summatory functions

Write T(x)=∑0≤i<xa(i)T(x)=\sum_{0\le i<x}a(i) and Z(x)=∑0≤i<xz(i)Z(x)=\sum_{0\le i<x}z(i), so that W(n)=T(n+1)W(n)=T(n+1) and V(n)=Z(n+1)V(n)=Z(n+1). If f(i)=1+f(i−b)f(i)=1+f(i-b) for b≤i<db\le i<d, then ∑i<xf(i)=∑i<bf(i)+(x−b)+∑i<x−bf(i)\sum_{i<x}f(i)=\sum_{i<b}f(i)+(x-b)+\sum_{i<x-b}f(i) for b≤x≤db\le x\le d. With Lemma 2.1 this gives, for k≥4k\ge4,

T(x)=T(Fk)+(x−Fk)+T(x−Fk),Fk≤x≤Lk−1,(5)T(x)=T(F_k)+(x-F_k)+T(x-F_k), \qquad F_k\le x\le L_{k-1}, \tag*{(5)}
T(x)=T(Lk−1)+(x−Lk−1)+T(x−Lk−1),Lk−1≤x≤Fk+1,(6)T(x)=T(L_{k-1})+(x-L_{k-1})+T(x-L_{k-1}), \qquad L_{k-1}\le x\le F_{k+1}, \tag*{(6)}

and, for k≥2k \ge2,

Z(x)=Z(Fk)+(x−Fk)+Z(x−Fk),Fk≤x≤Fk+1.(7)Z(x) = Z(F_k) + (x - F_k) + Z(x - F_k), \qquad F_k \le x \le F_{k+1}. \tag*{(7)}

Lemma 3.1. Let ek=5T(Fk)−kFke_k = 5T(F_k) - kF_k. Then ek+1=ek+ek−2+ek−3e_{k+1} = e_k + e_{k-2} + e_{k-3} for k≥4k \ge4, and ∣ek∣≤2Fk|e_k| \le2F_k for k≥1k \ge1.

Proof. Taking x=Lk−1x = L_{k-1} in (3.1) and x=Fk+1x = F_{k+1} in (3.2),

T(Fk+1)=T(Fk)+T(Fk−2)+T(Fk−3)+Fk−1(k≥4).T(F_{k+1}) = T(F_k) + T(F_{k-2}) + T(F_{k-3}) + F_{k-1} \qquad(k \ge4).

Multiplying by 5 and subtracting (k+1)Fk+1(k+1)F_{k+1}, the recursion for eke_k follows from

kFk+(k−2)Fk−2+(k−3)Fk−3+5Fk−1=(k+1)Fk+1,kF_k + (k-2)F_{k-2} + (k-3)F_{k-3} + 5F_{k-1} = (k+1)F_{k+1},

which holds because Fk−2+Fk−3=Fk−1F_{k-2} + F_{k-3} = F_{k-1} reduces it to 5Fk−1−2Fk−2−3Fk−3=Fk+15F_{k-1} - 2F_{k-2} - 3F_{k-3} = F_{k+1}, and both sides equal 2Fk−1+Fk−22F_{k-1} + F_{k-2}. Since T(1)=0T(1) = 0, T(2)=1T(2) = 1 and T(3)=2T(3) = 2, we get (e1,e2,e3,e4)=(−1,−2,−1,−2)(e_1,e_2,e_3,e_4) = (-1,-2,-1,-2), so ∣ek∣≤2Fk|e_k| \le2F_k for k≤4k \le4, and by induction ∣ek+1∣≤2(Fk+Fk−2+Fk−3)=2Fk+1|e_{k+1}| \le2(F_k + F_{k-2} + F_{k-3}) = 2F_{k+1}.

Lemma 3.2. For k≥1k \ge1, 5Z(Fk)=k(2Fk−Fk−1)−2Fk5Z(F_k) = k(2F_k - F_{k-1}) - 2F_k, and ∣5Z(Fk)−ckFk∣≤4Fk|5Z(F_k) - ckF_k| \le4F_k.

Proof. The formula holds for k=1,2,3k = 1, 2, 3, where Z(Fk)=0,0,1Z(F_k) = 0, 0, 1. Taking x=Fk+1x = F_{k+1} in (3.3) gives Z(Fk+1)=Z(Fk)+Fk−1+Z(Fk−1)Z(F_{k+1}) = Z(F_k) + F_{k-1} + Z(F_{k-1}) for k≥2k \ge2, and the formula for k+1k+1 follows from the formulas for kk and k−1k-1 and the identity

k(2Fk−Fk−1)+(k−1)(2Fk−1−Fk−2)+3Fk−1−2Fk=(k+1)(2Fk+1−Fk)−2Fk+1,k(2F_k - F_{k-1}) + (k-1)(2F_{k-1} - F_{k-2}) + 3F_{k-1} - 2F_k = (k+1)(2F_{k+1} - F_k) - 2F_{k+1},

in which, after Fk+1=Fk+Fk−1F_{k+1} = F_k + F_{k-1}, the coefficients of kk agree because Fk−1+Fk−2=FkF_{k-1} + F_{k-2} = F_k, and the remaining terms are −(2Fk−1−Fk−2)+3Fk−1−2Fk=−Fk-(2F_{k-1} - F_{k-2}) + 3F_{k-1} - 2F_k = -F_k on the left and (2Fk+1−Fk)−2Fk+1=−Fk(2F_{k+1} - F_k) - 2F_{k+1} = -F_k on the right. For the bound, ψFk+Fk−1=ψk\psi F_k + F_{k-1} = \psi^k by induction on kk (using ψ2=ψ+1\psi^2 = \psi+ 1), so

5Z(Fk)−ckFk=−k(Fk−1+ψFk)−2Fk=−kψk−2Fk,5Z(F_k) - ckF_k = -k(F_{k-1} + \psi F_k) - 2F_k = -k\psi^k - 2F_k,

and ∣ψ∣<1|\psi| < 1 and k≤2Fkk \le2F_k give ∣5Z(Fk)−ckFk∣≤k+2Fk≤4Fk|5Z(F_k) - ckF_k| \le k + 2F_k \le4F_k.

Lemma 3.3. If r≥0r \ge0 and k≥K(r)k \ge K(r), then 0≤(k−K(r))r≤2Fk0 \le(k - K(r))r \le2F_k.

Proof. The claim is clear if r=0r = 0 or k=K(r)k = K(r). Otherwise let j=K(r)<kj = K(r) < k and d=k−j−1≥0d = k - j - 1 \ge0. Then r<Fj+1r < F_{j+1}, and Fk=FjFd+Fj+1Fd+1≥Fj+1Fd+1F_k = F_jF_d + F_{j+1}F_{d+1} \ge F_{j+1}F_{d+1} together with d+1≤2Fd+1d + 1 \le2F_{d+1} gives (k−j)r≤(d+1)Fj+1≤2Fk(k-j)r \le(d+1)F_{j+1} \le2F_k.

Proposition 3.4. For every x≥0x \ge0, ∣5T(x)−K(x)x∣≤19x|5T(x) - K(x)x| \le19x.

Proof. By induction on xx. For x=0,1,2x = 0, 1, 2 the left side is 0, 2 and 1. Let x≥3x \ge3 and k=K(x)≥4k = K(x) \ge4.

If x≤Lk−1x \le L_{k-1}, let r=x−Fkr = x - F_k. Then r≤Fk−2r \le F_{k-2}, so K(r)≤kK(r) \le k, and by (3.1)

5T(x)−kx=ek+5r+(5T(r)−K(r)r)−(k−K(r))r.5T(x) - kx = e_k + 5r + (5T(r) - K(r)r) - (k - K(r))r.

By Lemmas 3.1 and 3.3 and the induction hypothesis, this lies between −4Fk−14r-4F_k-14r and 2Fk+24r2F_k+24r. Since r≤Fkr\le F_k and x=Fk+rx=F_k+r, both bounds are at most 19x19x in absolute value.

If x>Lk−1x>L_{k-1}, let r=x−Lk−1<Fk−3r=x-L_{k-1}<F_{k-3}. By (6) and (5) at x=Lk−1x=L_{k-1}, and since x=Fk+Fk−2+rx=F_k+F_{k-2}+r,

5T(x)−kx=ek+ek−2+3Fk−2+5r+(5T(r)−K(r)r)−(k−K(r))r.5T(x)-kx=e_k+e_{k-2}+3F_{k-2}+5r+(5T(r)-K(r)r)-(k-K(r))r.

which lies between −4Fk+Fk−2−14r-4F_k+F_{k-2}-14r and 2Fk+5Fk−2+24r2F_k+5F_{k-2}+24r; both are at most 19x19x in absolute value.

Proposition 3.5. For every x≥0x\ge0, ∣5Z(x)−cK(x)x∣≤13x|5Z(x)-cK(x)x|\le13x.

Proof. By induction on xx; the case x=0x=0 is trivial. Let x≥1x\ge1, k=K(x)≥2k=K(x)\ge2 and r=x−Fk<Fk−1r=x-F_k<F_{k-1}, so K(r)≤kK(r)\le k and r≤Fkr\le F_k. By (7),

5Z(x)−ckx=(5Z(Fk)−ckFk)+5r+(5Z(r)−cK(r)r)−c(k−K(r))r.5Z(x)-ckx=(5Z(F_k)-ckF_k)+5r+(5Z(r)-cK(r)r)-c(k-K(r))r.

Since 0<c≤20<c\le2, Lemmas 3.2 and 3.3 and the induction hypothesis place this between −8Fk−8r-8F_k-8r and 4Fk+18r4F_k+18r, and both are at most 13x=13Fk+13r13x=13F_k+13r in absolute value.

Proof of Theorem 1.4. The bounds (1.1) are Propositions 3.4 and 3.5. Let x=n+1x=n+1 and K=K(x)K=K(x). Then W(n)=T(x)W(n)=T(x) and V(n)=Z(x)V(n)=Z(x), and

5V(n)−5cW(n)=(5Z(x)−cKx)−c(5T(x)−Kx)5V(n)-5cW(n)=(5Z(x)-cKx)-c(5T(x)-Kx)

has absolute value at most 13x+2⋅19x=51x13x+2\cdot19x=51x, while 5W(n)≥(K−19)x5W(n)\ge(K-19)x. This gives (1.3), and K(n+1)→∞K(n+1)\to\infty gives the limit. Finally 6/5<(5−5)/2<7/56/5<(5-\sqrt{5})/2<7/5 because 121<125<169121<125<169.

For (1.2), write λ(t)=log⁡φt\lambda(t)=\log_\varphi t. Since Fk+1≤φkF_{k+1}\le\varphi^k and φk−2≤Fk\varphi^{k-2}\le F_k for k≥2k\ge2, and FK≤x<FK+1F_K\le x<F_{K+1}, we have λ(x)<K≤λ(x)+2\lambda(x)<K\le\lambda(x)+2. Also K≤x+1K\le x+1, because Fk≥k−1F_k\ge k-1 for every k≥1k\ge1. Next,

xλ(x)−nλ(n)=λ(x)+nlog⁡(1+1/n)log⁡φ,x\lambda(x)-n\lambda(n)=\lambda(x)+n\frac{\log(1+1/n)}{\log\varphi},

and nlog⁡(1+1/n)≤1<3log⁡φn\log(1+1/n)\le1<3\log\varphi, because φ3=2φ+1>e\varphi^3=2\varphi+1>e. Hence 0≤xλ(x)−nλ(n)≤K+3≤n+50\le x\lambda(x)-n\lambda(n)\le K+3\le n+5. In the identity

5W(n)−nλ(n)=(5T(x)−Kx)+(K−λ(x))x+(xλ(x)−nλ(n))5W(n)-n\lambda(n)=(5T(x)-Kx)+(K-\lambda(x))x+(x\lambda(x)-n\lambda(n))

the three terms lie in [−19x,19x][-19x,19x], [0,2x][0,2x] and [0,n+5][0,n+5], so −19(n+1)≤5W(n)−nλ(n)≤21(n+1)+n+5≤48n-19(n+1)\le5W(n)-n\lambda(n)\le21(n+1)+n+5\le48n for n≥1n\ge1. In the same way, since 0<c≤20<c\le2,

5V(n)−cnλ(n)=(5Z(x)−cKx)+c(K−λ(x))x+c(xλ(x)−nλ(n))5V(n)-cn\lambda(n)=(5Z(x)-cKx)+c(K-\lambda(x))x+c(x\lambda(x)-n\lambda(n))

lies between −13(n+1)-13(n+1) and 13(n+1)+4(n+1)+2(n+5)≤46n13(n+1)+4(n+1)+2(n+5)\le46n. Dividing by 5 gives (1.2).

The records

Let Rj=F2+F5+⋯+F3j−1=∑i<jF3i+2R_j = F_2 + F_5 + \cdots+ F_{3j-1} = \sum_{i<j} F_{3i+2}. Since F3j+1+2F3j+2=F3j+3+F3j+2=F3j+4F_{3j+1} + 2F_{3j+2} = F_{3j+3} + F_{3j+2} = F_{3j+4}, induction gives 2Rj+1=F3j+12R_j + 1 = F_{3j+1}, so Rj=A049651(j)R_j = \mathrm{A049651}(j). Moreover Rj<F3jR_j < F_{3j} for j≥1j \ge1, since 2Rj<F3j+1≤2F3j2R_j < F_{3j+1} \le2F_{3j}.

Proof of Theorem 1.5. First, a(Rj)=ja(R_j) = j. This holds for j=0,1j = 0, 1. For j≥2j \ge2 let k=3j−1≥5k = 3j - 1 \ge5. Then Rj=Fk+Rj−1R_j = F_k + R_{j-1} and Rj−1<Fk−2R_{j-1} < F_{k-2}, so Fk≤Rj<Lk−1F_k \le R_j < L_{k-1}, and (2.1) gives a(Rj)=1+a(Rj−1)=ja(R_j) = 1 + a(R_{j-1}) = j.

Second, a(m)≥ja(m) \ge j implies m≥Rjm \ge R_j. We use induction on mm. The cases j≤1j \le1 and m≤2m \le2 are clear, so let j=t+2j = t + 2 with t≥0t \ge0, and let m≥3m \ge3 and k=K(m)≥4k = K(m) \ge4. By (2.1) there is rr with a(r)=a(m)−1≥t+1a(r) = a(m) - 1 \ge t + 1, where either r=m−Fk<Fk−2r = m - F_k < F_{k-2} or r=m−Lk−1<Fk−3r = m - L_{k-1} < F_{k-3}. By induction r≥Rt+1≥F3t+2r \ge R_{t+1} \ge F_{3t+2}, so F3t+2<Fk−2F_{3t+2} < F_{k-2}, hence 3t+2<k−23t + 2 < k - 2 and F3t+5≤FkF_{3t+5} \le F_k. In both cases m≥Fk+r≥F3t+5+Rt+1=Rt+2m \ge F_k + r \ge F_{3t+5} + R_{t+1} = R_{t+2}.

So a(m)<ja(m) < j for m<Rjm < R_j, and a(Rj)=ja(R_j) = j. Thus RjR_j is the first occurrence of jj, and since R1<R2<⋯R_1 < R_2 < \cdots, the records of A214973 occur exactly at $R_1, R_2, \ldots.

Kurkov's formula

Let n=Fk1+⋯+Fksn = F_{k_1} + \cdots+ F_{k_s} be the Zeckendorf representation of n≥1n \ge1. A chain is a maximal run ki,ki+1,…,ki+ℓ−1k_i, k_{i+1}, \ldots, k_{i+\ell-1} of consecutive indices with kp−kp+1=2k_p - k_{p+1} = 2 for i≤p<i+ℓ−1i \le p < i + \ell- 1; the indices split into chains of lengths ℓ1,…,ℓt\ell_1, \ldots, \ell_t, and consecutive chains are separated by gaps kp−kp+1≥3k_p - k_{p+1} \ge3.

Corollary 5.1. a(n)=∑i=1t⌈ℓi/2⌉a(n) = \sum_{i=1}^{t} \lceil\ell_i/2 \rceil.

Proof. Apply Lemma 2.2 repeatedly. Along a chain it merges the first and second terms, the third and fourth, and so on, giving ⌈ℓ/2⌉\lceil\ell/2 \rceil terms; it never merges the last term of a chain with the first term of the next, since they differ by at least 3.

Lemma 5.2. A048679(n)=∑i=1s2hi\mathrm{A048679}(n) = \sum_{i=1}^{s} 2^{h_i} with hi=ki−2−(s−i)h_i = k_i - 2 - (s-i). The exponents satisfy h1>⋯>hs≥0h_1 > \cdots> h_s \ge0, and hi−hi+1=1h_i - h_{i+1} = 1 if and only if ki−ki+1=2k_i - k_{i+1} = 2.

Proof. The binary word of A003714(n)(n), preceded by a zero, consists of the factors 01 occupying positions ki−1,ki−2k_i - 1, k_i - 2 ($1 \le i \le s$; position 0 is the units digit), separated by zeros. These factors are disjoint because ki+1−1≤ki−3k_{i+1} - 1 \le k_i - 3. Replacing each 01 by 1 moves the digit at position ki−2k_i - 2 down by one place for each of the s−is-i factors below it, so it lands at position hih_i. Finally hi−hi+1=ki−ki+1−1≥1h_i - h_{i+1} = k_i - k_{i+1} - 1 \ge1 and $h_s = k_s - 2 \ge 0.

Lemma 5.3. For y≥0y \ge0, A329320(y)=∑⌈ℓ/2⌉(y) = \sum\lceil\ell/2 \rceil, the sum over the maximal blocks of consecutive ones in the binary word of yy, of lengths ℓ\ell.

Proof. Since ν2(2m)=1+ν2(m)\nu_2(2m) = 1 + \nu_2(m), we have 1−A035263(1+u)=ν2(u+1) mod 21 - \mathrm{A035263}(1+u) = \nu_2(u+1) \bmod2, and ν2(⌊y/2k⌋+1)\nu_2(\lfloor y/2^k \rfloor+ 1) is the number of consecutive ones of yy starting at position kk and going up. This number is 0 if the digit at position kk is 0, and, along a block of ℓ\ell ones, it takes the values ℓ,ℓ−1,…,1\ell, \ell- 1, \ldots, 1, of which ⌈ℓ/2⌉\lceil\ell/2 \rceil are odd. The sum defining A329320(y)(y) runs over the positions 0,…,⌊log⁡2y⌋0, \ldots, \lfloor\log_2 y \rfloor, which contain every block.

Proof of Theorem 1.6. For n=0n = 0 both sides are 0. For n≥1n \ge1, Lemma 5.2 shows that the blocks of ones of A048679(n)(n) correspond to the chains of the Zeckendorf representation of nn, with the same lengths. Lemma 5.3 and Corollary 5.1 give A329320(A048679(nn)) =∑i⌈ℓi/2⌉=a(n)= \sum_i \lceil\ell_i/2 \rceil= a(n). Figure 3 follows the argument for n=595n = 595.

Image not extracted

Figure 3. Kurkov’s formula for n=595=F14+F12+F10+F7+F5+F2n = 595 = F_{14} + F_{12} + F_{10} + F_7 + F_5 + F_2. The Zeckendorf indices form the chains 14, 12, 10, then 7, 5, then 2, and the greedy algorithm uses L13=F14+F12L_{13} = F_{14} + F_{12}, F10F_{10}, L6=F7+F5L_6 = F_7 + F_5 and F2F_2, so a(595)=4a(595) = 4 (Corollary 5.1). The binary word of A003714(595), preceded by a zero, splits into the factors 01 and 0; replacing each 01 by 1 gives A048679(595) = 237, whose blocks of ones have the lengths of the chains (Lemma 5.2), and A329320(237) = 4 (Lemma 5.3).

Formal verification

Theorems 1.4, 1.5 and 1.6 are formalized in Lean 4 [2] with Mathlib [6], version 4.34.1, and the formal proofs are checked by the Lean kernel. The formalization defines the sequences directly from their entries in the OEIS: aa by the greedy recursion over the positive Fibonacci and Lucas numbers, zz as the length of the Zeckendorf representation, WW and VV as sums over 1≤i≤n1 \le i \le n, A048679 by the rewriting of binary digits described in § 1, and A329320 by the displayed sum. It proves the bounds (1), the explicit formulas (2), the limit V(n)/W(n)→(5−5)/2V(n)/W(n) \to(5-\sqrt{5})/2 together with 6/5<(5−5)/2<7/56/5 < (5-\sqrt{5})/2 < 7/5, Theorem 1.5 for every jj, and Theorem 1.6 for every n≥0n \ge0. In the formal proof of Theorem 1.6 the induction runs on the Zeckendorf representation through the recursion A329320(2Q+1+u2^{Q+1}+u) = A329320(2Q+1+2Q+u2^{Q+1}+2^Q+u) = 1+1+A329320(uu) for u<2Qu < 2^Q, in place of Lemma 5.3. The proofs depend only on the axioms of Lean’s logic, namely propositional extensionality, choice and the soundness of quotients; they have no unproved step and add no axiom.

Independent computations in exact integer arithmetic, from the definitions of the sequences, confirm (1.1) for x≤108+1x \le10^8 + 1, Lemma 3.1 and the formula of Lemma 3.2 for Fk≤108+1F_k \le10^8 + 1, Theorems 1.5 and 1.6 and Lemma 2.2 for n≤108n \le10^8, and Lemmas 2.1, 3.1 and 3.2 for k≤400k \le400; they agree with the terms of the sequences recorded in the OEIS. The ratio V(n)/W(n)V(n)/W(n) equals 1.3421 at n=106n = 10^6 and 1.3588 at n=108n = 10^8.

Acknowledgements

The authors used the generative AI tool Claude (Anthropic), through Claude Code, to assist with the proofs, the Lean formalization, the computations and the preparation of this article. The authors reviewed and edited the content and take full responsibility for it.

Disclosure statement

Competing interests: none.

Funding

None.

Data availability

Deep Bhattacharjee computed the Lean formalization and the Julia, C, C++, shell and Python computations with the help of AI assistance (Claude, Anthropic). The Lean formalization of the proofs in this paper is archived at Zenodo, doi:10.5281/zenodo.23385265. The paper is available at https://github.com/creelie/musical-rotary-phone/blob/main/preprintKimberlingConjecture/KimberlingConjecture.pdf.

References

References

  1. [1]Carlitz, L., Scoville, R., Hoggatt, V. E., Jr. (1972). Lucas representations. Fibonacci Quart. 10(1): 29–42. https://doi.org/10.1080/00150517.1972.12430968
  2. [2]de Moura, L., Ullrich, S. (2021). The Lean 4 theorem prover and programming language. In: Platzer, A., Sutcliffe, G., eds. Automated Deduction – CADE 28. Lecture Notes in Computer Science, Vol. 12699. Cham: Springer, pp. 625–635. https://doi.org/10.1007/978-3-030-79876-5_37
  3. [3]Kimberling, C. (2020). Lucas representations of positive integers. J. Integer Seq., 23, Article 20.9.5. https://cs.uwaterloo.ca/journals/JIS/VOL23/Kimberling/kimber12.htmlcs.uwaterloo.ca/journals/JIS/VOL23/Kimberling/kimber12.html
  4. [4]Koloğlu, M., Kopp, G. S., Miller, S. J., Wang, Y. (2011). On the number of summands in Zeckendorf decompositions. Fibonacci Quart. 49(2): 116–130. https://doi.org/10.1080/00150517.2011.12428056
  5. [5]Lekkerkerker, C. G. (1952). Voorstelling van natuurlijke getallen door een som van getallen van Fibonacci. Simon Stevin 29: 190–195.
  6. [6]The mathlib Community (2020). The Lean mathematical library. In: Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs. New York: ACM, pp. 367–381. https://doi.org/10.1145/3372885.3373824
  7. [7]Pihko, J. (1988). On Fibonacci and Lucas representations and a theorem of Lekkerkerker. Fibonacci Quart. 26(3): 256–261. https://doi.org/10.1080/00150517.1988.12429631
  8. [8]Inc., O. F. (2026). The On-Line Encyclopedia of Integer Sequences. oeis.org

Paper details

vlnc:W_cd6eejxs
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Mathematics

Anthropic Claude Code Opus 5.5 Ultracode · View statement →

Looking for related papers…
Contents