Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

A396093 Parity Period Ten

Abstract

Formula (2) for OEIS A396093 determines an integer sequence whose parity has period ten.

Definition 1.1 (Factored numerator of formula (2)).

Formalization. D5/S3/Arith/RationalCompositionParityPeriodTen.N (✓ std3).

Source. Repository-derived.

Commentary.

Proof: (definition). N is formula (2)’s literal factored numerator in Q[[x]]. Its factors are x, (1-x)^2, and (1-3x+x^2)^2.

Definition 1.2 (Squared denominator of formula (2)).

Formalization. D5/S3/Arith/RationalCompositionParityPeriodTen.D (✓ std3).

Source. Repository-derived.

Commentary.

Proof: (definition). D is formula (2)’s literal squared quartic denominator in Q[[x]]. Squaring the quartic produces a degree-eight denominator with constant coefficient one.

Theorem 1.3 (Denominator expansion).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.denominator_expansion (✓ std3). ∎

Source. Repository-derived.

Commentary.

Normalization: simp unfolds D and ring gives the nine coefficients. These coefficients determine the convolution formula for multiplying a power series by D.

Theorem 1.4 (Numerator expansion).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.numerator_expansion (✓ std3). ∎

Source. Repository-derived.

Commentary.

Normalization: simp unfolds N and ring gives the eight initial coefficients. They supply the right-hand sides of the coefficient equations in degrees zero through seven.

Definition 1.5 (The recurrence-defined integer sequence).

Formalization. D5/S3/Arith/RationalCompositionParityPeriodTen.a (✓ std3).

Source. Repository-derived.

Commentary.

Proof: (definition). The sequence a is defined by the order-eight recurrence with its eight initial values; it is not stipulated by parity or by a finite table. Its later values are therefore determined uniquely from the preceding eight values.

Theorem 1.6 (Homogeneous coefficient equations).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.rational_tail_equation (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: linear normalization of the order-eight recurrence gives the coefficient equations above degree seven. Rearranging the recurrence places every term on the left and yields zero.

Theorem 1.7 (Inhomogeneous coefficient equations).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.initial_coefficient_equations (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: norm_num substitutes the eight initial values into the convolution equations for multiplication by D. This gives the inhomogeneous coefficient equations in degrees zero through seven.

Theorem 1.8 (Generating-function product identity).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.generating_function_identity (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: coefficient extensionality reduces the power-series identity to equality in each degree. The recurrence supplies the homogeneous tail equations above degree seven, while the eight initial equations and the expansions of D and N settle degrees zero through seven.

Theorem 1.9 (Generating function in division form).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.generating_function (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: power-series inversion rewrites the product identity, and the expanded denominator proves its constant coefficient is one. Consequently D is invertible and A(x)D(x)=N(x) becomes A(x)=N(x)D(x)^-1.

Theorem 1.10 (Formula (2) uniquely determines its integer coefficients).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.coefficients_unique (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: comparing coefficients in b(x)D(x)=N(x) and a(x)D(x)=N(x) gives the same convolution equation for b and a. Strong induction, using equality of earlier coefficients and the constant coefficient one of D, gives b(n)=a(n) for every n.

Theorem 1.11 (Characteristic-two recurrence).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.reduced_recurrence (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: casting the integer recurrence to characteristic two makes the coefficients 14 and 196 vanish and makes 75 and 269 equal one. Since negation is the identity, the surviving terms are exactly the four even lags.

Theorem 1.12 (Period ten modulo two).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.parity_period_ten (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: two shifted reduced recurrences cancel in characteristic two. Substituting the recurrence at n into the one at n+2 makes every intermediate term occur twice, leaving a(n+10)=a(n).

Theorem 1.13 (Odd values exactly in four residue classes).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.odd_iff_mod_ten (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: period ten reduces every index to one of the first ten residues. Direct evaluation of those ten values gives odd terms precisely at residues 1, 3, 7, and 9.

Theorem 1.14 (Parity for the formula (2) coefficient sequence).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.odd_iff_mod_ten_of_generating_function (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: coefficients_unique rewrites the sequence and the period-ten residue theorem closes the result. Thus every integer coefficient sequence satisfying formula (2) has the same parity pattern.

Theorem 1.15 (Even values at positive even indices).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.even_at_even_index (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: modular arithmetic projects the first OEIS conjecture from the residue characterization. An even index has an even residue modulo ten, so it never lies in the four odd residue classes.

Theorem 1.16 (Even values at odd indices).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.even_at_odd_index_iff (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: modular arithmetic projects the second OEIS conjecture from the residue characterization. Natural subtraction is truncated at zero. For n at least one, a(2n-1) is even exactly when n is congruent to 3 modulo 5, equivalently n=5k-2 for some k at least one.

Theorem 1.17 (First conjecture for formula (2) coefficients).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.even_at_even_index_of_generating_function (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: coefficient uniqueness gives b(2n)=a(2n), and the even-index result for a then proves that b(2n) is even.

Theorem 1.18 (Second conjecture for formula (2) coefficients).

Proof. Machine-checked in Lean as D5/S3/Arith/RationalCompositionParityPeriodTen.even_at_odd_index_iff_of_generating_function (✓ std3). ∎

Source. Repository-derived.

Commentary.

Proof: coefficient uniqueness gives b(2n-1)=a(2n-1), so the odd-index characterization for a transfers the stated equivalence to b.

Definition 1.19 (Basic rational-function map).

Formalization. D5/S3/Arith/RationalCompositionParityPeriodTen.Bf (✓ std3).

Source. Repository-derived.

Commentary.

Proof: (definition). OEIS A396093 states B(x)=x/(1-x)^2. Here Bf is that total field operation on Q(x). Thus Bf(y) is defined for every rational function y, including when 1-y is zero.

The sequence a is defined by the order-eight recurrence with its eight initial values; Theorem generating_function identifies it with the coefficient sequence of formula (2), Theorem coefficients_unique shows formula (2) determines it, and direct rational-function normalization identifies formula (2) with B(B(B(x))) in Q(x). The three together tie a to the OEIS definition.

References