Repetition words with a regular incoming relation
Abstract
Literal repetition-word counts for loopless relations of constant indegree.
The alphabet is Fin q and a word of length n is a function from Fin n to Fin q. Equality events are adjacent equal pairs, in position order, including overlapping pairs. The word is linear; neither rotations nor changes of alphabet labels are identified. The relation constrains successive event labels. The alphabet sizes q ≥ 2 in Ma and Zhang’s Barker and Hardin’s cyclic-repetition formulas and an extension of Fried’s enumeration are included; the statement also permits the empty and one-letter alphabets whenever its hypotheses hold.
Definition 1.1 (Ordered equality-event labels).
\forall q \in \mathbb{N},\; \forall w \in \operatorname{List}\left(\operatorname{Fin}\left(q\right)\right),\; \operatorname{eventLabels}\left(w\right) = \operatorname{List.map}\left(\operatorname{Prod.snd}, \operatorname{List.filter}\left(\lambda (p: \operatorname{Fin}\left(q\right)\times\operatorname{Fin}\left(q\right)) \mapsto \operatorname{Prod.fst}\left(p\right) = \operatorname{Prod.snd}\left(p\right), \operatorname{List.zip}\left(w, \operatorname{List.tail}\left(w\right)\right)\right)\right)
Formalization. D5/S1/Words/Patterns/BarkerRegularRelationCounting.eventLabels (✓ std3).
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
Zip the word with its tail, retain equal pairs, and read their second coordinates. Thus a triple equal letter contributes two events. This is the same extraction as in the eight-letter cyclic model, with a variable alphabet size.
Definition 1.2 (Admissible literal words).
\forall q \in \mathbb{N},\; \forall n \in \mathbb{N},\; \forall R \in \operatorname{Fin}\left(q\right) \to \operatorname{Fin}\left(q\right) \to Prop,\; \forall w \in \operatorname{Fin}\left(n\right) \to \operatorname{Fin}\left(q\right),\; \operatorname{Admissible}\left(R, w\right) = \operatorname{List.IsChain}\left(R, \operatorname{eventLabels}\left(\operatorname{List.ofFn}\left(w\right)\right)\right)
Formalization. D5/S1/Words/Patterns/BarkerRegularRelationCounting.Admissible (✓ std3).
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
An empty or singleton event list is admissible. Longer lists require R between each pair of consecutive event labels. In particular, looplessness forbids two consecutive events of the same label, including the overlap in a triple letter.
Definition 1.3 (Actual word cardinalities).
\forall q \in \mathbb{N},\; \forall R \in \operatorname{Fin}\left(q\right) \to \operatorname{Fin}\left(q\right) \to Prop,\; \forall n \in \mathbb{N},\; \operatorname{count}\left(R, n\right) = \operatorname{Nat.card}\left(\{w: \operatorname{Fin}\left(n\right) \to \operatorname{Fin}\left(q\right) \mid \operatorname{Admissible}\left(R, w\right)\}\right)
Formalization. D5/S1/Words/Patterns/BarkerRegularRelationCounting.count (✓ std3).
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
The carrier is the subtype of actual words satisfying the event relation. No recurrence is used to define this cardinality.
Definition 1.4 (Positive-index coefficient series).
\forall q \in \mathbb{N},\; \forall R \in \operatorname{Fin}\left(q\right) \to \operatorname{Fin}\left(q\right) \to Prop,\; \operatorname{sourceSeries}\left(R\right) = \operatorname{PowerSeries.mk}\left(\lambda (n: \mathbb{N}) \mapsto \operatorname{if}\left(n = 0, 0, (\operatorname{count}\left(R, n\right): \mathbb{Q})\right)\right)
Formalization. D5/S1/Words/Patterns/BarkerRegularRelationCounting.sourceSeries (✓ std3).
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
The coefficient at zero is zero. Every positive coefficient is the actual cardinality cast to the rationals. The unique empty word is counted separately by count R 0 = 1.
Theorem 1.5 (The regular-relation enumeration).
\forall q \in \mathbb{N},\; \forall d \in \mathbb{N},\; \forall R \in \operatorname{Fin}\left(q\right) \to \operatorname{Fin}\left(q\right) \to Prop,\; \left(\forall a \in \operatorname{Fin}\left(q\right),\; \neg R\left(a, a\right)\right) \Rightarrow \left(\left(\forall r \in \operatorname{Fin}\left(q\right),\; \operatorname{Nat.card}\left(\{b: \operatorname{Fin}\left(q\right) \mid R\left(b, r\right)\}\right) = d\right) \Rightarrow \left((((\operatorname{count}\left(R, 0\right) = 1) \land (((\operatorname{count}\left(R, 1\right): \mathbb{Q}) = q) \land (((\operatorname{count}\left(R, 2\right): \mathbb{Q}) = q^{2}) \land ((\operatorname{count}\left(R, 3\right): \mathbb{Q}) = q^{3} - q))))) \land ((\operatorname{sourceSeries}\left(R\right) = \operatorname{PowerSeries.C}\left((q: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X} \cdot (1 - \operatorname{PowerSeries.C}\left((q - 3: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X} - \operatorname{PowerSeries.C}\left((q + d - 2: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X}^{2}) \cdot ((1 - \operatorname{PowerSeries.C}\left((q - 1: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X}) \cdot (1 - \operatorname{PowerSeries.C}\left((q - 2: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X} - \operatorname{PowerSeries.C}\left((q + d - 1: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X}^{2}))^{-1}) \land (\forall n \in \mathbb{N},\; (\operatorname{count}\left(R, n + 4\right): \mathbb{Q}) = \left(2 \cdot q - 3\right) \cdot (\operatorname{count}\left(R, n + 3\right): \mathbb{Q}) + \left(-q^{2} + 4 \cdot q + d - 3\right) \cdot (\operatorname{count}\left(R, n + 2\right): \mathbb{Q}) - \left(q - 1\right) \cdot \left(q + d - 1\right) \cdot (\operatorname{count}\left(R, n + 1\right): \mathbb{Q})))\right)\right)
Proof. Machine-checked in Lean as D5/S1/Words/Patterns/BarkerRegularRelationCounting.relation_enumeration (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
Partition nonempty admissible words into U with no events, A whose first letter b is related to the first event r, and B containing the other eventful words. The initial vector is (q,0,0). For each fixed suffix, prepending every possible letter gives (U,A,B) ↦ ((q−1)U,(d−1)A+dB,U+(q−d+1)A+(q−d−1)B). Exactly d letters precede r under R. The equal-letter choice is removed from the A fiber when R(b,r) holds; duplicating b then enters B because R(b,b) fails. Removing the first letter recovers the unique suffix and deletes at most its first event. Fin.consEquiv therefore converts these exhaustive fibers to the literal cardinality sums. The coefficients are rational: d−1 is signed. When d=0, A is empty, and the same identities remain valid. Coefficientwise series equations and elimination yield the displayed unit-denominator formula. Both denominator factors have constant coefficient one. Eliminating the state counts also gives the displayed recurrence, which begins at positive length.
Definition 1.6 (Literal exact-event fibers).
\forall q \in \mathbb{N},\; \forall R \in \operatorname{Fin}\left(q\right) \to \operatorname{Fin}\left(q\right) \to Prop,\; \forall n \in \mathbb{N},\; \forall r \in \mathbb{N},\; \operatorname{eventCount}\left(R, n, r\right) = \operatorname{Nat.card}\left(\{w: \operatorname{Fin}\left(n\right) \to \operatorname{Fin}\left(q\right) \mid (\operatorname{Admissible}\left(R, w\right)) \land (\operatorname{List.length}\left(\operatorname{eventLabels}\left(\operatorname{List.ofFn}\left(w\right)\right)\right) = r)\}\right)
Formalization. D5/S1/Words/Patterns/BarkerRegularRelationCounting.eventCount (✓ std3).
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
This subtype retains the original admissibility predicate and requires the length of the ordered event list to be exactly r. Overlapping equality pairs remain individual events, and every word keeps its literal alphabet labels.
Definition 1.7 (Exact-event coefficient series).
\forall q \in \mathbb{N},\; \forall R \in \operatorname{Fin}\left(q\right) \to \operatorname{Fin}\left(q\right) \to Prop,\; \forall r \in \mathbb{N},\; \operatorname{eventSeries}\left(R, r\right) = \operatorname{PowerSeries.mk}\left(\lambda (n: \mathbb{N}) \mapsto \operatorname{if}\left(n = 0, 0, (\operatorname{eventCount}\left(R, n, r\right): \mathbb{Q})\right)\right)
Formalization. D5/S1/Words/Patterns/BarkerRegularRelationCounting.eventSeries (✓ std3).
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
The coefficient of x to a positive length n is the rational cast of eventCount R n r. The constant coefficient is zero. Empty words are accounted for separately.
Definition 1.8 (Eventful words marked by event number).
\forall q \in \mathbb{N},\; \forall R \in \operatorname{Fin}\left(q\right) \to \operatorname{Fin}\left(q\right) \to Prop,\; \operatorname{markedSeries}\left(R\right) = \operatorname{PowerSeries.X} \cdot \operatorname{PowerSeries.mk}\left(\lambda (r: \mathbb{N}) \mapsto \operatorname{eventSeries}\left(R, r + 1\right)\right)
Formalization. D5/S1/Words/Patterns/BarkerRegularRelationCounting.markedSeries (✓ std3).
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
This is a series in y with coefficients in Q[[x]]. Its coefficient at y to r+1 is eventSeries R (r+1), so the coefficient at x to n and y to r+1 is the actual exact-event cardinality. The coefficient at y to zero is zero; no substitution of one into an arbitrary formal series is used.
Theorem 1.9 (Enumeration by the exact number of equality events).
\forall q \in \mathbb{N},\; \forall d \in \mathbb{N},\; \forall R \in \operatorname{Fin}\left(q\right) \to \operatorname{Fin}\left(q\right) \to Prop,\; \left(\forall a \in \operatorname{Fin}\left(q\right),\; \neg R\left(a, a\right)\right) \Rightarrow \left(\left(\forall c \in \operatorname{Fin}\left(q\right),\; \operatorname{Nat.card}\left(\{b: \operatorname{Fin}\left(q\right) \mid R\left(b, c\right)\}\right) = d\right) \Rightarrow \left(((\operatorname{eventCount}\left(R, 0, 0\right) = 1) \land (\forall r \in \mathbb{N},\; \operatorname{eventCount}\left(R, 0, r + 1\right) = 0)) \land ((\operatorname{eventSeries}\left(R, 0\right) = \operatorname{PowerSeries.C}\left((q: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X} \cdot (1 - \operatorname{PowerSeries.C}\left((q - 1: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X})^{-1}) \land ((\forall r \in \mathbb{N},\; \operatorname{eventSeries}\left(R, r + 1\right) = \operatorname{PowerSeries.C}\left((q \cdot d^{r}: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X}^{2 \cdot \left(r + 1\right)} \cdot ((1 + \operatorname{PowerSeries.X})^{r} \cdot (1 - \operatorname{PowerSeries.C}\left((q - 1: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X})^{r + 2})^{-1}) \land ((\forall r \in \mathbb{N},\; \forall n \in \mathbb{N},\; (\operatorname{eventCount}\left(R, n, r + 1\right): \mathbb{Q}) = \operatorname{PowerSeries.coeff}\left(n, \operatorname{PowerSeries.C}\left((q \cdot d^{r}: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X}^{2 \cdot \left(r + 1\right)} \cdot ((1 + \operatorname{PowerSeries.X})^{r} \cdot (1 - \operatorname{PowerSeries.C}\left((q - 1: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X})^{r + 2})^{-1}\right)) \land ((\forall r \in \mathbb{N},\; \forall n \in \mathbb{N},\; n < 2 \cdot \left(r + 1\right) \Rightarrow \operatorname{eventCount}\left(R, n, r + 1\right) = 0) \land ((\forall r \in \mathbb{N},\; \operatorname{eventCount}\left(R, 2 \cdot \left(r + 1\right), r + 1\right) = q \cdot d^{r}) \land (\operatorname{markedSeries}\left(R\right) = \operatorname{PowerSeries.X} \cdot \operatorname{PowerSeries.C}\left(\operatorname{PowerSeries.X} \cdot (1 + \operatorname{PowerSeries.X}) \cdot \operatorname{eventSeries}\left(R, 0\right)\right) \cdot \operatorname{Ring.inverse}\left(\operatorname{PowerSeries.C}\left((1 + \operatorname{PowerSeries.X}) \cdot (1 - \operatorname{PowerSeries.C}\left((q - 1: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X})\right) - \operatorname{PowerSeries.X} \cdot \operatorname{PowerSeries.C}\left(\operatorname{PowerSeries.C}\left((d: \mathbb{Q})\right) \cdot \operatorname{PowerSeries.X}^{2}\right)\right)))))))\right)\right)
Proof. Machine-checked in Lean as D5/S1/Words/Patterns/BarkerRegularRelationCounting.event_enumeration (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
Filter the three indicator weights by the length of the extracted event list. Prepending a different letter preserves this length. Prepending the first letter adds exactly one event, and enters B precisely from U or A. The same unique first-letter and suffix correspondence therefore gives the exact-event fibers. Write H=1-(q-1)x and J=1+x. For positive event number, U vanishes. The eventful states satisfy J A_r=d x (A_r+B_r) and H(A_r+B_r)=x(U_(r-1)+A_(r-1)). For zero events, A and B vanish and U=qx/H. Thus E_1 H^2=qx^2 and E_(r+2) J H=d x^2 E_(r+1). Induction on event number proves the displayed formula, and coefficient extraction proves the literal-word identity and the shortest-length boundary. The parameter r in the formula represents r+1 events; hence the exponent d^r includes d^0=1 even when d=0. For one event the answer is qx^2/H^2, and at indegree zero every fiber with two or more events vanishes. There is one empty zero-event word, no empty eventful word, and no singleton eventful word. The shortest r+1-event words have length 2(r+1), with count q d^r. The final marked identity is in Q[[x]][[y]]. Its denominator has constant coefficient JH as a y-series, which is a unit because its x-constant is one. Ring.inverse denotes this unit inverse. The numerator is y x(1+x)U, exactly as in the source; both markers refer to actual word fibers.
Definition 1.10 (The signed binary steps).
\forall a \in \operatorname{Fin}\left(2\right),\; \operatorname{binaryStep}\left(a\right) = 2 \cdot (\operatorname{Fin.val}\left(a\right): \mathbb{Z}) - 1
Formalization. D5/S1/Words/Patterns/BarkerRegularRelationCounting.binaryStep (✓ std3).
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
The source alphabet is literally {0,1}: zero contributes minus one and one contributes plus one. The values are integers, so subtraction is signed.
Definition 1.11 (Signed imbalance of an actual word).
\forall w \in \operatorname{List}\left(\operatorname{Fin}\left(2\right)\right),\; \operatorname{signedImbalance}\left(w\right) = \operatorname{List.sum}\left(\operatorname{List.map}\left(\operatorname{binaryStep}, w\right)\right)
Formalization. D5/S1/Words/Patterns/BarkerRegularRelationCounting.signedImbalance (✓ std3).
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
Summing the signed steps gives the number of ones minus the number of zeros. The empty list has imbalance zero.
Theorem 1.12 (Binary events and every contiguous substring).
\forall w \in \operatorname{List}\left(\operatorname{Fin}\left(2\right)\right),\; (\operatorname{List.IsChain}\left(\lambda (a: \operatorname{Fin}\left(2\right)) \mapsto \lambda (b: \operatorname{Fin}\left(2\right)) \mapsto \operatorname{Fin.val}\left(b\right) = (\operatorname{Fin.val}\left(a\right) + 1) \bmod 2, \operatorname{eventLabels}\left(w\right)\right)) \Leftrightarrow (\forall u \in \operatorname{List}\left(\operatorname{Fin}\left(2\right)\right),\; \operatorname{List.IsInfix}\left(u, w\right) \Rightarrow \left((-2 \le (\operatorname{List.count}\left(1, u\right): \mathbb{Z}) - (\operatorname{List.count}\left(0, u\right): \mathbb{Z})) \land ((\operatorname{List.count}\left(1, u\right): \mathbb{Z}) - (\operatorname{List.count}\left(0, u\right): \mathbb{Z}) \le 2)\right))
Proof. Machine-checked in Lean as D5/S1/Words/Patterns/BarkerRegularRelationCounting.binary_substring_equivalence (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. R. H. Hardin; Colin Barker (2019). OEIS A268943: cyclic successive equality events. URL: https://oeis.org/A268943.
Commentary.
This equivalence concerns each actual word and all of its actual contiguous sublists. An infix u means there are lists a and b with a++u++b=w; neither positions nor alphabet labels are quotiented. The left side uses the original overlapping equality-event list and successor modulo two. On {0,1} this successor relation is exactly inequality. Replace zero by a step minus one and one by a step plus one. A word fits a strip of heights 0 through 2 from some integer starting height exactly when its event labels alternate. Induction on the word proves the three possible starting-height conditions: at height 0 the first letter and the first event, if present, are 1; at height 2 they are 0; at height 1 the first event, if present, differs from the first letter. Prepending an equal letter inserts that very letter as a new event, so the induction retains overlapping pairs. A strip path bounds the sum on every infix by subtracting its two endpoint heights. Conversely choose a prefix with minimum height among all prefixes, including the empty prefix of height zero. The difference between any two ordered prefix heights is the signed sum on their intervening actual infix. The substring hypothesis therefore places all prefix heights within two of the minimum. Translating by its negative gives a strip path and hence the event rule. Empty words, empty substrings, singleton words, words with no equality events and short event lists are all included. No counting formula enters either direction.
Only q and d occur in the answer, so two loopless relations on the same alphabet with the same indegree have equal counts at every length. For d=1, take R(a,b) to mean b=σ(a), where σ is any fixed-point-free permutation. Every b has its unique predecessor σ⁻¹(b). The cyclic successor σ(a)=a+1 modulo q is one such permutation for q≥2. Its recurrence is a(n+3)=(2q−3)a(n+2)+(−q²+4q−2)a(n+1)−q(q−1)a(n) for n≥0; the n=0 case follows from 1,q,q²,q³−q. The positive series is qx(1−(q−3)x−(q−1)x²)/((1−(q−1)x)(1−(q−2)x−qx²)). The existing eight-letter cyclic theorem supplies its unique series and positive-index radical expression directly.
For R(a,b) meaning a≠b, the indegree is q−1. Conversely a loopless relation of that indegree contains every unequal pair. This is Fried’s unequal-event enumeration: arXiv:2410.07237v3, Theorem 10, equation (18), and Journal of Integer Sequences 28, Article 25.4.3, Section 3.2, Theorem 4 and Corollary 5. Its displayed rational function is the full series 1+S, with constant coefficient one, although the described sequence starts at positive index. Here 1+S=(1−(q−3)x−2(q−2)x²−(q−2)x³)/(1−(2q−3)x+(q−1)(q−4)x²+2(q−1)²x³). The homogeneous recurrence b(n+3)=(2q−3)b(n+2)+(−q²+5q−4)b(n+1)−2(q−1)²b(n) has onset n≥1; b(0)=1 does not extend that onset. The cyclic and unequal rules agree on a binary alphabet. For q≥3, the word (0,0,2,2) separates them. Other interpretations of the linked sequences are not implied.
Eight-letter reuse and normalization
At q=8 the actual word predicate and event extraction are exactly those of BarkerCyclicRepetitionCounting. Its result supplies the unique positive series S₈=8x(1−5x−7x²)/((1−7x)(1−6x−8x²)); its private radical_count, count_recurrence and count_initial supply the strongest existing literal-count facts directly. The original Fin8 owner retains credit for these formulas. No new enumeration is needed. With c(n)=a₈(n), c(0)=1 and c(n+3)=13c(n+2)−34c(n+1)−56c(n) for every n≥0. The first five positive values are 8,64,504,3928,30344. The radical identity extends to n=0: c(n)=[−272·7ⁿ+(153−37√17)(3−√17)ⁿ+(153+37√17)(3+√17)ⁿ]/34 for every n≥0. At zero the numerator is 34. Thus the unique empty word is retained while S₈ still has zero constant coefficient.
The characteristic polynomial factors as t³−13t²+34t+56=(t−7)(t²−6t−8), whose roots are exactly 7,3−√17,3+√17. Since |3−√17|<7<3+√17 and C=(153+37√17)/34>0, division of the existing radical formula by C(3+√17)ⁿ leaves 1 plus constant multiples of [7/(3+√17)]ⁿ and [(3−√17)/(3+√17)]ⁿ. Both ratios have absolute value below one, so their powers tend to zero. Hence limₙ a₈(n)/(C(3+√17)ⁿ)=1, the source asymptotic statement.
Hardin A268944: every column and all seven rows
Put q=k+1, k≥1, and T(n,k)=a_q(n). The actual-count theorem gives T(n+3,k)=(2k−1)T(n+2,k)+(−k²+2k+1)T(n+1,k)−k(k+1)T(n,k). This holds for every column k≥1 and every n≥0 with T(0,k)=1, so it includes the source onset n≥1. The coefficient triples for k=1,…,7 are (1,2,−2),(3,1,−6),(5,−2,−12),(7,−7,−20),(9,−14,−30),(11,−23,−42),(13,−34,−56). These are evaluations of the universal coefficients, rather than an inference from sampled columns.
The complete q-polynomial rows n=1,…,7 are, respectively: q; q²; q³−q; q⁴−3q²+3q; q⁵−6q³+11q²−7q; q⁶−10q⁴+26q³−30q²+15q; q⁷−15q⁵+50q⁴−81q³+73q²−31q. They follow by successive substitution in the actual-count recurrence from 1,q,q². No recurrence-defined replacement count is introduced.
Equivalently the full A268944 rows as polynomials in k are: T(1,k)=k+1; T(2,k)=k²+2k+1; T(3,k)=k³+3k²+2k; T(4,k)=k⁴+4k³+3k²+k+1; T(5,k)=k⁵+5k⁴+4k³+3k²+2k−1; T(6,k)=k⁶+6k⁵+5k⁴+6k³+3k²−k+2; T(7,k)=k⁷+7k⁶+6k⁵+10k⁴+4k³+k²+4k−3. The first three are k+1,(k+1)²,k(k+1)(k+2), giving the stated A000027, A000290 and A007531 identities.
Fried and A269467: every column and all seven rows
Write B(n,k)=b_(k+1)(n), with k≥1. The unequal-event specialization gives B(n+3,k)=(2k−1)B(n+2,k)+(−k²+3k)B(n+1,k)−2k²B(n,k) for n≥1. Its coefficient triples at k=1,…,7 are (1,2,−2),(3,2,−8),(5,0,−18),(7,−4,−32),(9,−10,−50),(11,−18,−72),(13,−28,−98). This is the all-column consequence of Fried’s prior enumeration, not a new priority claim. With b_q(0)=1, the n=0 left side minus the proposed homogeneous right side is 2−q; thus the source onset cannot be extended uniformly to zero.
The complete seven A269467 row polynomials are: B(1,k)=k+1; B(2,k)=k²+2k+1; B(3,k)=k³+3k²+2k; B(4,k)=k⁴+4k³+4k²+k; B(5,k)=k⁵+5k⁴+7k³+2k²−k; B(6,k)=k⁶+6k⁵+11k⁴+4k³−k²+k; B(7,k)=k⁷+7k⁶+16k⁵+8k⁴−k³−k. The first three agree with the cyclic rows. The remaining four follow successively from the unequal-event recurrence starting at n=1. The full rational series has coefficient one at zero; the positive series subtracts that one.
Binary elementary identities
For q=2 the successor and unequal-event languages coincide on each actual word. Specializing the positive series and clearing its unit denominators gives S₂=(4x+6x²)/(1−2x²)−2x/(1−x). All denominators have constant coefficient one. The two-step identity a₂(n+2)=2a₂(n)+2 follows from the actual-count cubic recurrence and initial values a₂(0)=1,a₂(1)=2,a₂(2)=4, by induction. Applying it separately to the two parities gives a₂(2m)=3·2ᵐ−2 and a₂(2m+1)=2^(m+2)−2 for every m≥0, including the empty-word case m=0.
For every n≥0, a₂(n)=Σ_(j=0)^n 2^min(j,n−j). To see the finite-sum identity without replacing the actual count, call the displayed sum P(n). Its endpoint terms at n+2 are both one, and each interior exponent is 1+min(j,n−j). Thus P(n+2)=2P(n)+2, with P(0)=1 and P(1)=2; two-step induction compares it with the already proved actual count. Subtracting consecutive parity formulas gives a₂(n)−a₂(n−1)=2^⌊n/2⌋ for every n≥1. Equivalently the differences obey the same two-step doubling with initial differences 1,2. These are precisely the elementary A027383 identities in the manuscript; the wordwise substring equivalence above supplies its separate semantic assertion.
Attribution and applicability
R. H. Hardin introduced A268943 and A268944; Colin Barker supplied the A268943 conjectured formulas in revision 8, FORMULA. A268944 revision 4 supplies the row, column and cross-reference statements; A027383 revision 193 supplies the elementary identities and binary interpretation; A269467 supplies the unequal-event rows and columns. Sela Fried’s arXiv:2410.07237v3, Section 2.8, Theorem 10, equation (18), and Journal of Integer Sequences 28 (2025), Article 25.4.3, Section 3.2, Theorem 4 and Corollary 5, are prior work. The full revision-2 source is Haobo Ma and Wenlin Zhang’s Barker and Hardin’s cyclic-repetition formulas and an extension of Fried’s enumeration, CC BY 4.0. Haobo Ma is affiliated with ChronoAI Pte Ltd, Singapore; Wenlin Zhang with the National University of Singapore and ChronoAI Pte Ltd, Singapore. The source certificate pins the complete manuscript. Tree, necklace, folding and arithmetic-sequence interpretations and unrelated cross-references are excluded.
References
- Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.Admissible - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.binaryStep - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.binary_substring_equivalence - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.count - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.eventCount - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.eventLabels - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.eventSeries - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.event_enumeration - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.markedSeries - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.relation_enumeration - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.signedImbalance - Truth anchor:
D5/S1/Words/Patterns/BarkerRegularRelationCounting.sourceSeries - Dependency: D5/S1/Words/Patterns/BarkerCyclicRepetitionCounting