Find a recurrence relation for the number of bit strings of length n that contain two consecutive 1s and start with 1? The answer in my book is $a_{n} = a_{n-1} + a_{n-2} + 2^{(n-3)}$, however I am not sure whether this is correct as well as didn't understand why they have this answer. I know how to find number of bit strings containing two consecutive 1s only. Can anyone explain for me? Thanks.
2026-02-23 18:43:03.1771872183
How many bit strings that begin with 1 and contain two consecutive 1s
281 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
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 BIT-STRINGS
- What is the graph of my chances to mine a bitcoin?
- How many bit strings of length n are there with two or more consecutive zeros?
- What is the least prime which has 32 1-bits?
- Expected number and probability of a series of 1s in a bit string.
- counting set bits of a natural number
- How many bitstrings of length $n = 10$ contain at least $k = 3$ consecutive 1’s?
- Maximizing the number of occurrences of a fixed subsequence
- Counting bit strings of length $70$ with two restrictions
- Bit representation and divisibility by 3
- How do I represent the set of all finite bit strings?
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 call good a string that starts with $1$ and contains two consecutive ones.
To obtain a good string of length $n$ we can certainly take a good string of length $n-1$ and add a $1$ on the left.
We may as well take a good string of length $n-2$ and add $10$ on the left.
Note that there is no intersection between the strings obtained this way, but unfortunately we don't obtain all the possible strings. Which good strings aren't we counting?
Well, we are not counting the strings that start with $11$ and have no other consecutive ones and the good strings that start with $100$. Note that in the first case we may as well suppose the string start with $110$ because if it started with $111$ the second and third one would form a consecutive pair. It follows that we need all the sequences of $n-3$ bits that either contains no consecutive ones (for the first case) or contains consecutive ones (for the second case). The total sum is clearly $2^{n-3}$ and by adding everything together you obtain the result.
Edit: The partition is the following:
Strings starting with $11$ that have at least another pair of consecutive ones. Note that all the string starting with $111$ are here;
Strings starting with $101$ that have a pair of consecutive ones;
Strings starting with $110$ that have no other pairs of consecutives ones;
Strings starting with $100$ that have a pair of consecutive ones.
These subsets cover the set of the good strings and have no intersection, so they are indeed a partition. Now we count the cardinality:
The first set is in correspondence with the good strings of length $n-1$. The correspondence is given by adding/eliminating a $1$ on the left side. It's cardinality is $a_{n-1}$;
The second set is in correspondence with the good strings of length $n-2$. The correspondence is given by adding/eliminating a $10$ on the left side. It's cardinality is $a_{n-2}$;
The third set is in correspondence with the strings of length $n-3$ that contain no pair of consecutive ones. The correspondence is given by adding/eliminating a $110$ on the left side
The fourth set is in correspondence with the strings of length $n-3$ that contain at least a pair of consecutive ones. The correspondence is given by adding/eliminating a $100$ on the left side.
Note that the union of the third and fourth set correspond to all the string of length $n-3$. The correspondence is given by adding $110$ on the left if the string contains no pair of consecutive ones and $100$ otherwise. It follows that the total cardinality of the third and fourth set is $2^{n-3}$.