Define $a(n,k)=|\{x \in \mathbb{F}^{2n}_2 : Hx=0, ||x||=k\}|$ and $b(n,k)=|\{x \in \mathbb{F}^{2n}_2 : Hx=1, ||x||=k\}|$ where $||\cdot||$ denotes the Hamming weight of $x$ (i.e. number of non-zero entries), $0$ and $1$ are abuses of notation to mean the vector all zeros and all ones, and $H \in \mathbb{F}^{n \times 2n}_2$ is defined as follows
$$H = \left( \begin{array}{ccccccccc}
1 & 1 & 0 & 0 & 0 & 0 & \cdots & \cdots & 0 \\
1 & 0 & 1 & 1 & 0 & 0 & \cdots & \cdots & 0\\
1 & 0 & 1 & 0 & 1 & 1 & \cdots & \cdots & 0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots\\
1 & 0 & 1 & 0 & 1 & 0 & \cdots & 1 & 1\end{array} \right) $$
Then apparently one can use "simple induction" to prove
$$a(n+1,k+2)=a(n,k+2)+b(n,k)$$
$$b(n+1,n+1)=a(n,k)+b(n,k)$$
Can anyone illuminate me on how this is done because I don't see it. This is not homework or anything (obviously school is out...), but just something I came across and is bothering me quite a bit. Thanks.
2026-04-08 09:03:56.1775639036
Recurrence Relations for Sequence Counting Hamming Weights
155 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in ABSTRACT-ALGEBRA
- Feel lost in the scheme of the reducibility of polynomials over $\Bbb Z$ or $\Bbb Q$
- Integral Domain and Degree of Polynomials in $R[X]$
- Fixed points of automorphisms of $\mathbb{Q}(\zeta)$
- Group with order $pq$ has subgroups of order $p$ and $q$
- A commutative ring is prime if and only if it is a domain.
- Conjugacy class formula
- Find gcd and invertible elements of a ring.
- Extending a linear action to monomials of higher degree
- polynomial remainder theorem proof, is it legit?
- $(2,1+\sqrt{-5}) \not \cong \mathbb{Z}[\sqrt{-5}]$ as $\mathbb{Z}[\sqrt{-5}]$-module
Related Questions in COMBINATORICS
- Using only the digits 2,3,9, how many six-digit numbers can be formed which are divisible by 6?
- The function $f(x)=$ ${b^mx^m}\over(1-bx)^{m+1}$ is a generating function of the sequence $\{a_n\}$. Find the coefficient of $x^n$
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Hard combinatorial identity: $\sum_{l=0}^p(-1)^l\binom{2l}{l}\binom{k}{p-l}\binom{2k+2l-2p}{k+l-p}^{-1}=4^p\binom{k-1}{p}\binom{2k}{k}^{-1}$
- Algebraic step including finite sum and binomial coefficient
- nth letter of lexicographically ordered substrings
- Count of possible money splits
- Covering vector space over finite field by subspaces
- A certain partition of 28
- Counting argument proof or inductive proof of $F_1 {n \choose1}+...+F_n {n \choose n} = F_{2n}$ where $F_i$ are Fibonacci
Related Questions in MATRICES
- How to prove the following equality with matrix norm?
- I don't understand this $\left(\left[T\right]^B_C\right)^{-1}=\left[T^{-1}\right]^C_B$
- Powers of a simple matrix and Catalan numbers
- Gradient of Cost Function To Find Matrix Factorization
- Particular commutator matrix is strictly lower triangular, or at least annihilates last base vector
- Inverse of a triangular-by-block $3 \times 3$ matrix
- Form square matrix out of a non square matrix to calculate determinant
- Extending a linear action to monomials of higher degree
- Eiegenspectrum on subtracting a diagonal matrix
- For a $G$ a finite subgroup of $\mathbb{GL}_2(\mathbb{R})$ of rank $3$, show that $f^2 = \textrm{Id}$ for all $f \in G$
Related Questions in DISCRETE-MATHEMATICS
- What is (mathematically) minimal computer architecture to run any software
- What's $P(A_1\cap A_2\cap A_3\cap A_4) $?
- The function $f(x)=$ ${b^mx^m}\over(1-bx)^{m+1}$ is a generating function of the sequence $\{a_n\}$. Find the coefficient of $x^n$
- Given is $2$ dimensional random variable $(X,Y)$ with table. Determine the correlation between $X$ and $Y$
- Given a function, prove that it's injective
- Surjective function proof
- How to find image of a function
- Find the truth value of... empty set?
- Solving discrete recursion equations with min in the equation
- Determine the marginal distributions of $(T_1, T_2)$
Related Questions in FINITE-FIELDS
- Covering vector space over finite field by subspaces
- Reciprocal divisibility of equally valued polynomials over a field
- Solving overdetermined linear systems in GF(2)
- Proof of normal basis theorem for finite fields
- Field $\mathbb{Q}(\alpha)$ with $\alpha=\sqrt[3]7+2i$
- Subfield of a finite field with prime characteristic
- Rank of a Polynomial function over Finite Fields
- Finite fields of order 8 and isomorphism
- Finding bases to GF($2^m$) over GF($2$)
- How to arrange $p-1$ non-zero elements into $A$ groups of $B$ where $p$ is a prime number
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Let's set up some notation. Call that $n\times 2n$ matrix $H_n$. Let us call $C_n$ the subset (it is actually an $n$-dimensional subspace) of vectors $x\in\Bbb{F}_2^{2n}$ such that $H_n x^T=0$. We observe that the first column of $H_n$ is the all ones vector $1$ (continuing the abuse of notation - hopefully no confusion arises). This implies that $$ \tilde{C}_n=\{x\in\Bbb{F}_2^{2n}\mid H_nx^T=1\}=C_n+(100\ldots0), $$ the subset consisting of vectors not orthogonal to any row of $H_n$, is a coset of the subspace $C_n$. Or equivalently, a vector $x\in\tilde{C}_n$ if and only if it differs from a vector of $C_n$ in the first bit position.
We see that the matrix $H_{n+1}$ has the block structure $$ H_{n+1}=\left(\begin{array}{cc|ccc} 1&1&0&\cdots&0\\ \hline 1&0&*&*&*\\ \vdots&\vdots&*&*&*\\ 1&0&*&*&*\\ \end{array}\right), $$ where the $n\times2n$ block marked with $*$s is a copy of $H_n$. Let's write a vector $x\in\Bbb{F}_2^{2n+2}$ in the form $x=(x_1,x_2, \overline{x})$, where we single out the two first bits, and $\overline{x}\in\Bbb{F}_2^{2n}$ has the remaining $2n$ bits lumped together. We want to determine, when $x\in C_{n+1}$. For $x$ to be orthogonal to the first row of $H_{n+1}$ it is necessary and sufficient that $x_1=x_2$. If we have $x_1=x_2=0$, then $x$ is orthogonal to all the other rows of $H_{n+1}$, iff $\overline{x}\in C_n$, because $x_1=0$ and hence the two freshly added columns won't contribute to those inner products. On the other hand, if $x_1=x_2=1$, then $x_1=1$ contributes a $1$ to the inner products of $x$ and all the other rows of $H_{n+1}$, so $\overline{x}$ must also have inner product $1$ with all those rows to compensate. In other words we have just showed that $$ C_{n+1}=\{(0,0,\overline{x})\mid\overline{x}\in C_n\} \cup\{(1,1,\overline{x})\mid \overline{x}\in\tilde{C}_n\}. $$ Consequently we also get a recursive description $$ \tilde{C}_{n+1}=(100\ldots0)+C_{n+1}= \{(1,0,\overline{x})\mid\overline{x}\in C_n\} \cup\{(0,1,\overline{x})\mid \overline{x}\in\tilde{C}_n\}. $$
The recurrence formulas for the numbers of vectors of a given weight follow immediately from these description, because $w(0,0,\overline{x})=w(\overline{x})$, $w(1,1,\overline{x})=w(\overline{x})+2$ et cetera. In terms of the quantities $a(n,k)$ and $b(n,k)$ enumerating words of weight $k$ in $C_n$ and $\tilde{C}_n$ respectively the formulas read $$ \begin{aligned} a(n+1,k+2)&=a(n,k+2)+b(n,k),\\ b(n+1,k+1)&=a(n,k)+b(n,k). \end{aligned} $$