Projected sum-one and sum-two images of sorted binary strips

How many distinct images can a sorted binary strip produce when each image bit records a local pattern? The hidden strip has \((n+1)\times(k+1)\) entries, with \(n,k\ge1\). Its rows, read from left to right, are in nondecreasing lexicographic order from top to bottom. Its columns, read from top to bottom, are ordered the same way from left to right. Each bit of the \(n\times k\) image marks the corresponding adjacent \(2\times2\) block. The sum-one rule marks blocks with one 1. The sum-two rule marks every block with two 1s. The adjacent-pair rule marks blocks with two 1s sharing an edge, in which case the two 0s also share an edge. Only the adjacent-pair rule excludes the two checkerboards from the sum-two patterns. Each attainable image is counted once, regardless of how many strips produce it. At every fixed width \(k\ge1\), the adjacent-pair count is eventually a polynomial in \(n\) of degree \(2^{k+1}-1\) with leading coefficient \(1/(2^{k+1}-1)!\). The sum-one count has eventual degree \(5\cdot2^{k-2}-1\) for every \(k\ge2\), and degree 1 at width one. For sum-two, the degrees of the four printed columns are \(2,7,15,31\). The construction below also computes the exact eventual degree and the image count at any prescribed width for each rule. Hardin's sum-two entry asks whether the four printed polynomials describe the exact image counts. All four do, with earliest positive starting heights \(1,4,6,14\), respectively. The new wider-column results establish the full degree-15 and degree-31 polynomials. Barker's width-two generating function and recurrence agree with the previously established identities. OEIS A227103, printed columns 1–4, with Barker's A227099 and the degree-31 companion A227101 · Prior width-two proof Hardin's adjacent-pair entry asks the corresponding question when both equal pairs must share an edge. All four printed polynomials hold, with degrees \(3,7,15,31\) and earliest positive starting heights \(1,3,7,11\). The wider-column results establish the full width-three and width-four polynomials, and the all-width result settles both the eventual degree and its leading coefficient. Barker's width-two fraction and recurrence were previously established. OEIS A227333, printed columns 1–4 and companions A227329–A227331 · Prior width-two proof Hardin's sum-one entry asks whether its five printed columns have the stated polynomial form, including the degree-19 and degree-39 claims. All five hold, with degrees \(1,4,9,19,39\) and earliest positive starting heights \(1,1,4,8,23\). The new fixed-width results establish the full width-four and width-five polynomials and their starts. The width-two quartic is the published cross-reference, and the width-three generating function has a prior kernel-accepted formal theorem whose statement review was pending in the cited record. OEIS A227385, printed columns 1–5 and companions A227382–A227384 · A055795, published width-two formula with index shifted by two · Prior formal width-three theorem To compute the count for a given width and rule, keep the last hidden row \(a\) and the set of adjacent column comparisons still tied. The initial possibilities are all nondecreasing binary rows of length \(k+1\), each with its own set of ties. Append any binary row \(b\ge_{\mathrm{lex}}a\). For every still-tied pair of columns \(j,j+1\), require \(b_j\le b_{j+1}\) and remove the tie when the inequality is strict. The two rows \(a,b\) then give a mask of \(k\) image bits by the chosen rule. For each mask label, collect all resulting hidden states into one successor subset. Discard empty successors. Starting from the initial subset, each attainable image follows one labelled walk, and every nonempty subset is an allowed endpoint. A transition that repeats a hidden row is a hold. Its mask is always zero for sum-one because all block sums on a hold are even. For either two-ones rule, its bit at column \(j\) is 1 exactly when \(a_j\ne a_{j+1}\). The reachable subset graph has at most one self-loop at each vertex. Deleting those loops leaves a directed acyclic graph. For each labelled path \(D\) from the initial subset, including the path of length zero, let \(\ell(D)\) be its number of edges and \(r(D)\) its number of vertices that had a self-loop, including the endpoints. Count paths with different edge labels separately. If \(A(n)\) is the image count at the chosen width and rule and \(A(0)=1\) counts the empty image, then \[\sum_{n\ge0} A(n)x^n=\sum_D\frac{x^{\ell(D)}}{(1-x)^{r(D)}}. \] Taking the coefficient of \(x^n\) gives the exact count at any height. The eventual degree is \(R-1\), where \(R=\max_D r(D)\). With \(L=\max_D\ell(D)\), the numerator over \((1-x)^R\) has degree at most \(L+R\). The full printed polynomial families can be generated in a binomial basis. Write \(G(x)=\sum_{n\ge1}A(n)x^n=Q(x)/(1-x)^R\), and let \(J=\deg Q\). Set \(g_m=A(m)\) for \(m\ge1\) and \(g_m=0\) for \(m\le0\). Obtain the required \(A(m)\) by counting labelled walks as above, with one walk of length zero at the initial subset and one update per available label at each step. Then the numerator coefficients \(q_j\) and the polynomial \(P(n)\) are \[q_j=\sum_{h=0}^{R}(-1)^h\binom Rh g_{j-h}\quad(0\le j\le J),\qquad P(n)=\sum_{j=0}^{J}q_j\binom{n-j+R-1}{R-1}. \] Here \(\binom{y}{s}=y(y-1)\cdots(y-s+1)/s!\) is a polynomial in \(y\) for an integer \(s\ge0\), with the empty product equal to 1. The checked top numerator terms determine the onset separately from the degree. For positive heights, the earliest start from which \(A(n)=P(n)\) at every subsequent height is \(\max(1,J-R+1)\). Each list below is in increasing width order. RuleWidths\(R\)Top terms of \(Q(x)\)Earliest positive startsSum-two1–4\(3,8,16,32\)\(x^3,\ -x^{11},\ -13x^{21},\ -12x^{45}\)\(1,4,6,14\)Adjacent-pair1–4\(4,8,16,32\)\(-x^4,\ -2x^{10},\ -7x^{22},\ 761x^{42}\)\(1,3,7,11\)Sum-one1–5\(2,5,10,20,40\)\(-x^2,\ x^5,\ -x^{13},\ x^{27},\ -2x^{62}\)\(1,1,4,8,23\) At width one, the sum-two count is \(1+\binom{n+1}{2}\), since the 1s form an interval that may be empty. The adjacent-pair count is \(1+\binom{n+1}{2}+\binom n3\). The extra words have two nonempty runs of 1s separated by exactly one 0. For sum-one the width-one count is \(n+1\), and the width-two count is \(\binom{n+2}{4}+\binom{n+2}{2}\). Barker's fractions use \(G(x)\), with the empty image omitted. The sum-two width-two numerator over \((1-x)^8\) is \[x(4-17x+40x^2-52x^3+37x^4-11x^5+2x^6-3x^7-x^8+3x^9-x^{10}). \] The adjacent-pair width-two numerator over \((1-x)^8\) is \[x(4-21x+58x^2-84x^3+69x^4-43x^5+37x^6-30x^7+13x^8-2x^9). \] The sum-one width-three numerator over \((1-x)^{10}\) is \[x(4-25x+84x^2-160x^3+207x^4-179x^5+107x^6-42x^7+19x^9-16x^{10}+6x^{11}-x^{12}). \] In each case the recurrence is \(A(n)=\sum_{i=1}^{R}(-1)^{i+1}\binom Ri A(n-i)\). Its first sustained index is 12 for sum-two, 11 for adjacent-pair and 14 for sum-one. For adjacent-pair images, the all-width leading term comes from the ability to recover how often each hidden row was repeated. Put \(M=2^{k+1}\). List all \(M\) binary rows in increasing order and repeat each at least three times. These strips obey both lexicographic orders. The only consecutive ranks with the same hold mask are the middle pair \(01\cdots1\) and \(10\cdots0\). The first bit of their crossing mask is zero because that block is a checkerboard, so the crossing separates their two runs of the common hold mask. The maximal constant runs of length at least two identify the \(M\) repeated rows in order. Subtract any known crossing masks absorbed at the ends of a run and add one to recover its multiplicity. This gives \(\binom{n-2M}{M-1}\) distinct images for \(n\ge3M-1\). The number of row-sorted witnesses gives an upper bound \(\sum_{s=1}^M\binom Ms\binom n{s-1}\), where \(s\) is the number of distinct hidden rows used. Both counts have the same leading term \(n^{M-1}/(M-1)!\). For sum-one images, the degree measures how many nonzero mask rows can occur. At width \(k\ge2\), group the hidden rows by their first \(k-2\) bits into \(B=2^{k-2}\) blocks of eight. Within any block there can be at most four nonzero transitions, and there are at most \(B-1\) transitions between blocks. The maximum \(d_k=5B-1\) is attained by taking the trailing three-bit ranks \(0,1,2,4,5\) in that order in every block, visiting the blocks in increasing prefix order. This strip obeys both sorting conditions and all its \(d_k\) image rows are nonzero. Holding hidden rows places these nonzero masks at any \(d_k\) chosen positions among \(n\) for \(n\ge d_k\). Thus there are at least \(\binom n{d_k}\) images, and at most \(\sum_{t=0}^{d_k}\binom nt(2^k-1)^t\), where \(t\) is the number of nonzero mask rows. Together with eventual polynomiality, these counts give the exact all-width degree. Original problem sources. https://oeis.org/A227099 https://oeis.org/A227329 https://oeis.org/A227382

Authors

Institutions

Publication Details

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

Projected sum-one and sum-two images of sorted binary strips

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

Projected sum-one and sum-two images of sorted binary strips

Zixuan He
preprint en

Abstract

How many distinct images can a sorted binary strip produce when each image bit records a local pattern? The hidden strip has \((n+1)\times(k+1)\) entries, with \(n,k\ge1\). Its rows, read from left to right, are in nondecreasing lexicographic order from top to bottom. Its columns, read from top to bottom, are ordered the same way from left to right. Each bit of the \(n\times k\) image marks the corresponding adjacent \(2\times2\) block. The sum-one rule marks blocks with one 1. The sum-two rule marks every block with two 1s. The adjacent-pair rule marks blocks with two 1s sharing an edge, in which case the two 0s also share an edge. Only the adjacent-pair rule excludes the two checkerboards from the sum-two patterns. Each attainable image is counted once, regardless of how many strips produce it. At every fixed width \(k\ge1\), the adjacent-pair count is eventually a polynomial in \(n\) of degree \(2^{k+1}-1\) with leading coefficient \(1/(2^{k+1}-1)!\). The sum-one count has eventual degree \(5\cdot2^{k-2}-1\) for every \(k\ge2\), and degree 1 at width one. For sum-two, the degrees of the four printed columns are \(2,7,15,31\). The construction below also computes the exact eventual degree and the image count at any prescribed width for each rule. Hardin's sum-two entry asks whether the four printed polynomials describe the exact image counts. All four do, with earliest positive starting heights \(1,4,6,14\), respectively. The new wider-column results establish the full degree-15 and degree-31 polynomials. Barker's width-two generating function and recurrence agree with the previously established identities. OEIS A227103, printed columns 1–4, with Barker's A227099 and the degree-31 companion A227101 · Prior width-two proof Hardin's adjacent-pair entry asks the corresponding question when both equal pairs must share an edge. All four printed polynomials hold, with degrees \(3,7,15,31\) and earliest positive starting heights \(1,3,7,11\). The wider-column results establish the full width-three and width-four polynomials, and the all-width result settles both the eventual degree and its leading coefficient. Barker's width-two fraction and recurrence were previously established. OEIS A227333, printed columns 1–4 and companions A227329–A227331 · Prior width-two proof Hardin's sum-one entry asks whether its five printed columns have the stated polynomial form, including the degree-19 and degree-39 claims. All five hold, with degrees \(1,4,9,19,39\) and earliest positive starting heights \(1,1,4,8,23\). The new fixed-width results establish the full width-four and width-five polynomials and their starts. The width-two quartic is the published cross-reference, and the width-three generating function has a prior kernel-accepted formal theorem whose statement review was pending in the cited record. OEIS A227385, printed columns 1–5 and companions A227382–A227384 · A055795, published width-two formula with index shifted by two · Prior formal width-three theorem To compute the count for a given width and rule, keep the last hidden row \(a\) and the set of adjacent column comparisons still tied. The initial possibilities are all nondecreasing binary rows of length \(k+1\), each with its own set of ties. Append any binary row \(b\ge_{\mathrm{lex}}a\). For every still-tied pair of columns \(j,j+1\), require \(b_j\le b_{j+1}\) and remove the tie when the inequality is strict. The two rows \(a,b\) then give a mask of \(k\) image bits by the chosen rule. For each mask label, collect all resulting hidden states into one successor subset. Discard empty successors. Starting from the initial subset, each attainable image follows one labelled walk, and every nonempty subset is an allowed endpoint. A transition that repeats a hidden row is a hold. Its mask is always zero for sum-one because all block sums on a hold are even. For either two-ones rule, its bit at column \(j\) is 1 exactly when \(a_j\ne a_{j+1}\). The reachable subset graph has at most one self-loop at each vertex. Deleting those loops leaves a directed acyclic graph. For each labelled path \(D\) from the initial subset, including the path of length zero, let \(\ell(D)\) be its number of edges and \(r(D)\) its number of vertices that had a self-loop, including the endpoints. Count paths with different edge labels separately. If \(A(n)\) is the image count at the chosen width and rule and \(A(0)=1\) counts the empty image, then \[\sum_{n\ge0} A(n)x^n=\sum_D\frac{x^{\ell(D)}}{(1-x)^{r(D)}}. \] Taking the coefficient of \(x^n\) gives the exact count at any height. The eventual degree is \(R-1\), where \(R=\max_D r(D)\). With \(L=\max_D\ell(D)\), the numerator over \((1-x)^R\) has degree at most \(L+R\). The full printed polynomial families can be generated in a binomial basis. Write \(G(x)=\sum_{n\ge1}A(n)x^n=Q(x)/(1-x)^R\), and let \(J=\deg Q\). Set \(g_m=A(m)\) for \(m\ge1\) and \(g_m=0\) for \(m\le0\). Obtain the required \(A(m)\) by counting labelled walks as above, with one walk of length zero at the initial subset and one update per available label at each step. Then the numerator coefficients \(q_j\) and the polynomial \(P(n)\) are \[q_j=\sum_{h=0}^{R}(-1)^h\binom Rh g_{j-h}\quad(0\le j\le J),\qquad P(n)=\sum_{j=0}^{J}q_j\binom{n-j+R-1}{R-1}. \] Here \(\binom{y}{s}=y(y-1)\cdots(y-s+1)/s!\) is a polynomial in \(y\) for an integer \(s\ge0\), with the empty product equal to 1. The checked top numerator terms determine the onset separately from the degree. For positive heights, the earliest start from which \(A(n)=P(n)\) at every subsequent height is \(\max(1,J-R+1)\). Each list below is in increasing width order. RuleWidths\(R\)Top terms of \(Q(x)\)Earliest positive startsSum-two1–4\(3,8,16,32\)\(x^3,\ -x^{11},\ -13x^{21},\ -12x^{45}\)\(1,4,6,14\)Adjacent-pair1–4\(4,8,16,32\)\(-x^4,\ -2x^{10},\ -7x^{22},\ 761x^{42}\)\(1,3,7,11\)Sum-one1–5\(2,5,10,20,40\)\(-x^2,\ x^5,\ -x^{13},\ x^{27},\ -2x^{62}\)\(1,1,4,8,23\) At width one, the sum-two count is \(1+\binom{n+1}{2}\), since the 1s form an interval that may be empty. The adjacent-pair count is \(1+\binom{n+1}{2}+\binom n3\). The extra words have two nonempty runs of 1s separated by exactly one 0. For sum-one the width-one count is \(n+1\), and the width-two count is \(\binom{n+2}{4}+\binom{n+2}{2}\). Barker's fractions use \(G(x)\), with the empty image omitted. The sum-two width-two numerator over \((1-x)^8\) is \[x(4-17x+40x^2-52x^3+37x^4-11x^5+2x^6-3x^7-x^8+3x^9-x^{10}). \] The adjacent-pair width-two numerator over \((1-x)^8\) is \[x(4-21x+58x^2-84x^3+69x^4-43x^5+37x^6-30x^7+13x^8-2x^9). \] The sum-one width-three numerator over \((1-x)^{10}\) is \[x(4-25x+84x^2-160x^3+207x^4-179x^5+107x^6-42x^7+19x^9-16x^{10}+6x^{11}-x^{12}). \] In each case the recurrence is \(A(n)=\sum_{i=1}^{R}(-1)^{i+1}\binom Ri A(n-i)\). Its first sustained index is 12 for sum-two, 11 for adjacent-pair and 14 for sum-one. For adjacent-pair images, the all-width leading term comes from the ability to recover how often each hidden row was repeated. Put \(M=2^{k+1}\). List all \(M\) binary rows in increasing order and repeat each at least three times. These strips obey both lexicographic orders. The only consecutive ranks with the same hold mask are the middle pair \(01\cdots1\) and \(10\cdots0\). The first bit of their crossing mask is zero because that block is a checkerboard, so the crossing separates their two runs of the common hold mask. The maximal constant runs of length at least two identify the \(M\) repeated rows in order. Subtract any known crossing masks absorbed at the ends of a run and add one to recover its multiplicity. This gives \(\binom{n-2M}{M-1}\) distinct images for \(n\ge3M-1\). The number of row-sorted witnesses gives an upper bound \(\sum_{s=1}^M\binom Ms\binom n{s-1}\), where \(s\) is the number of distinct hidden rows used. Both counts have the same leading term \(n^{M-1}/(M-1)!\). For sum-one images, the degree measures how many nonzero mask rows can occur. At width \(k\ge2\), group the hidden rows by their first \(k-2\) bits into \(B=2^{k-2}\) blocks of eight. Within any block there can be at most four nonzero transitions, and there are at most \(B-1\) transitions between blocks. The maximum \(d_k=5B-1\) is attained by taking the trailing three-bit ranks \(0,1,2,4,5\) in that order in every block, visiting the blocks in increasing prefix order. This strip obeys both sorting conditions and all its \(d_k\) image rows are nonzero. Holding hidden rows places these nonzero masks at any \(d_k\) chosen positions among \(n\) for \(n\ge d_k\). Thus there are at least \(\binom n{d_k}\) images, and at most \(\sum_{t=0}^{d_k}\binom nt(2^k-1)^t\), where \(t\) is the number of nonzero mask rows. Together with eventual polynomiality, these counts give the exact all-width degree. Original problem sources. https://oeis.org/A227099 https://oeis.org/A227329 https://oeis.org/A227382

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