Kurkov's alternating suffix recurrence for A071585

Kurkov asked whether the change in OEIS A071585 from an index \(\lfloor n/2\rfloor\) to \(n\) is an alternating sum over indices obtained by successively deleting the lowest remaining \(1\) bit. The identity holds for every positive integer \(n\), and the final index zero contributes to the sum. A071585 is the permutation of the Farey-tree denominator sequence A007306 specified in the question. MathOverflow 432143, question body and Kurkov's clarification Write \(a(n)=\mathrm{A071585}(n)\). The inherited OEIS rules are \(a(0)=1\), \(a(2^u)=u+2\) for every integer \(u\ge0\), and \[a(2^u+2^v+h)=(u-v)a(2^v+h)+a(h) \] for integers \(u>v\ge0\) and \(0\le h<2^v\). OEIS A071585, internal entry, revision 122 Sela Fried's earlier proof treats the successor and remainder recurrence for A007306. Fried's proof for A007306 The OEIS rules give a direct way to compute \(a(n)\) from the binary expansion. If \(n=2^{u_1}+\cdots+2^{u_\ell}\) with \(u_1>\cdots>u_\ell\ge0\), then \[a(n)=K(u_1-u_2,\ldots,u_{\ell-1}-u_\ell,u_\ell+2). \] Here the continuant \(K(t_1,\ldots,t_r)\) is the top-left entry of the ordered product of the matrices \(\begin{pmatrix}t_i&1\\1&0\end{pmatrix}\) for \(i=1,\ldots,r\). The empty product gives \(K()=1\), and a single argument gives \(K(t)=t\). The successive gaps and the lowest binary exponent therefore suffice to evaluate the term. The new one-step identity is \[a(n)-a(\lfloor n/2\rfloor) =a\bigl(\lfloor n/2^{v_2(n)+2}\rfloor\bigr) =a(\lfloor D(n)/2\rfloor),\qquad n\ge1, \] where \(v_2(n)\) is the largest integer \(s\ge0\) for which \(2^s\) divides \(n\), and \(D(n)=\lfloor n/2^{v_2(n)+1}\rfloor\). For an index with at least two \(1\) bits, the increment is the continuant of the gaps alone, \(K(u_1-u_2,\ldots,u_{\ell-1}-u_\ell)\). The increment for a power of two is \(1\), the empty continuant. Thus the value at the halved index can be updated by evaluating a single term at the index obtained by shifting right by \(v_2(n)+2\) places. The map \(D\) discards the lowest \(1\) bit and all zeros below it, shifting the surviving bits down. Set \(k_0=D(n)\), Kurkov's \(k\), and set \(k_{j+1}=D(k_j)\) while \(k_j>0\). If \(k_m=0\) is the first zero, the exact recurrence is \[a(n)=a(\lfloor n/2\rfloor)+\sum_{j=0}^{m}(-1)^j a(k_j),\qquad a(0)=1. \] The signs alternate because the increment \(d(n)=a(n)-a(\lfloor n/2\rfloor)\) satisfies \(d(n)=a(D(n))-d(D(n))\) for \(n>0\). At zero the increment is \(d(0)=0\), so the sum ends with \((-1)^m a(0)=(-1)^m\). The procedure uses one summand per \(1\) bit of \(n\).

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-04
DOI
https://doi.org/10.5281/zenodo.24804254
Primary Topic
Advanced Combinatorial Mathematics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Kurkov's alternating suffix recurrence for A071585

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
preprint

Kurkov's alternating suffix recurrence for A071585

Zixuan He
preprint en

Abstract

Kurkov asked whether the change in OEIS A071585 from an index \(\lfloor n/2\rfloor\) to \(n\) is an alternating sum over indices obtained by successively deleting the lowest remaining \(1\) bit. The identity holds for every positive integer \(n\), and the final index zero contributes to the sum. A071585 is the permutation of the Farey-tree denominator sequence A007306 specified in the question. MathOverflow 432143, question body and Kurkov's clarification Write \(a(n)=\mathrm{A071585}(n)\). The inherited OEIS rules are \(a(0)=1\), \(a(2^u)=u+2\) for every integer \(u\ge0\), and \[a(2^u+2^v+h)=(u-v)a(2^v+h)+a(h) \] for integers \(u>v\ge0\) and \(0\le h<2^v\). OEIS A071585, internal entry, revision 122 Sela Fried's earlier proof treats the successor and remainder recurrence for A007306. Fried's proof for A007306 The OEIS rules give a direct way to compute \(a(n)\) from the binary expansion. If \(n=2^{u_1}+\cdots+2^{u_\ell}\) with \(u_1>\cdots>u_\ell\ge0\), then \[a(n)=K(u_1-u_2,\ldots,u_{\ell-1}-u_\ell,u_\ell+2). \] Here the continuant \(K(t_1,\ldots,t_r)\) is the top-left entry of the ordered product of the matrices \(\begin{pmatrix}t_i&1\\1&0\end{pmatrix}\) for \(i=1,\ldots,r\). The empty product gives \(K()=1\), and a single argument gives \(K(t)=t\). The successive gaps and the lowest binary exponent therefore suffice to evaluate the term. The new one-step identity is \[a(n)-a(\lfloor n/2\rfloor) =a\bigl(\lfloor n/2^{v_2(n)+2}\rfloor\bigr) =a(\lfloor D(n)/2\rfloor),\qquad n\ge1, \] where \(v_2(n)\) is the largest integer \(s\ge0\) for which \(2^s\) divides \(n\), and \(D(n)=\lfloor n/2^{v_2(n)+1}\rfloor\). For an index with at least two \(1\) bits, the increment is the continuant of the gaps alone, \(K(u_1-u_2,\ldots,u_{\ell-1}-u_\ell)\). The increment for a power of two is \(1\), the empty continuant. Thus the value at the halved index can be updated by evaluating a single term at the index obtained by shifting right by \(v_2(n)+2\) places. The map \(D\) discards the lowest \(1\) bit and all zeros below it, shifting the surviving bits down. Set \(k_0=D(n)\), Kurkov's \(k\), and set \(k_{j+1}=D(k_j)\) while \(k_j>0\). If \(k_m=0\) is the first zero, the exact recurrence is \[a(n)=a(\lfloor n/2\rfloor)+\sum_{j=0}^{m}(-1)^j a(k_j),\qquad a(0)=1. \] The signs alternate because the increment \(d(n)=a(n)-a(\lfloor n/2\rfloor)\) satisfies \(d(n)=a(D(n))-d(D(n))\) for \(n>0\). At zero the increment is \(d(0)=0\), so the sum ends with \((-1)^m a(0)=(-1)^m\). The procedure uses one summand per \(1\) bit of \(n\).

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Advanced Combinatorial Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon