Any positive integer can be written in binary (also called base $2$ ). For example, $37$ is $100101$ in binary ( because $37=2^5+2^2+2^0)$, and $45$ is $101101$ in binary. Let's say that a positive integer is '$scattered$' if, in its binary expansion, there are never two ones immediately next to each other. For example, $37$ is $scattered$ but $45$ is not. How many scattered numbers are there less than $4$ ? Less than $8$ ? Less than $2^n$? I have thought it by the length of the number and made a recursion $a_n= a_{n-1}+a_{n-3}$.May be this can help. Any other help would be appreciated.
2026-03-30 23:12:40.1774912360
Find all $scattered$ numbers less than $2^n$ whose in its binary expansion there are never two 1's immediately next to each other
1.1k Views Asked by user1086101 https://math.techqa.club/user/user1086101/detail At
1
There are 1 best solutions below
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 EXPONENTIATION
- exponential equation with different bases; no logarithms
- Is square root of $y^2$ for every $y>0,y\in\mathbb{R}$?
- Definite sum for $(1+a)^n$
- Fractional exponents definition and the additive law of exponents
- Fourth term in the expansion of $(1-2x)^{3/2}$
- Why is $\int_{0}^{t} e^{nt} \mathrm{\ dt} = \frac{1}{n} \left(e^{nt} - 1\right)$? [solved; notation is also faulty in the first place]
- Exponentiation property of the modulo operator
- When are $\left(\frac{a}{b}\right)^c$ and $\frac{a^c}{b^c}$ equivalent?
- How can I rewrite expression to get log out of exponent
- Compare $2^{2016}$ and $10^{605}$ without a calculator
Related Questions in BINARY
- What is (mathematically) minimal computer architecture to run any software
- Produce solutions such that $k$&$x$ $=$ $k$,in a range ($0$,$n$)
- Solve an equation with binary rotation and xor
- Number of binary sequences with no consecutive ones.
- Recurrence with $\lfloor n/2 \rfloor$
- Converting numbers to different bases
- Why does the decimal representation of (10^x * 10^y) always suffix the same representation in binary?
- Period of a binary sequence
- Contradiction in simple linear regression formula
- From unary to binary numeral system
Related Questions in BINARY-OPERATIONS
- Produce solutions such that $k$&$x$ $=$ $k$,in a range ($0$,$n$)
- Solve an equation with binary rotation and xor
- In a finite monoid (M, $\circ$) if the identity element $e$ is the only idempotent element, prove that each element of the monoid is invertible.
- Define a binary operation on the set of even integers which is different from addition,substraction and multiplication
- Basic problems on Group Theory
- Doubt in a proof of dropping parentheses with associativity
- how to show that the group $(G,+)$ is abelian
- Why quaternions is a group?
- Define a binary operation * on the real numbers as $x * y=xy+x+y$ for all real numbers x and y.
- Determining if the binary operation gives a group structure
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?
This answer was made possible by the significant hint given by @user2661923.
Let $\boldsymbol{f(n)}$ denote the number of scattered binary strings with $\boldsymbol{n}$ terms, and let $a_n$ denote an arbitrary scattered binary string with $n$ terms. $a_n$ can end with a $0$ or a $1$.
Suppose $a_n$ ends with a $0$. Then, we can remove the last term to produce a binary string which is still scattered. Conversely, this implies that for every $a_{n-1}$ (there are $f(n-1)$ such strings), one can form $f(n-1)$ scattered binary strings of length $n$ by concatenating a $0$.
Now, if $a_n$ ends with a $1$, then we'll have to modify our earlier reasoning. We know that the last two terms of $a_n$ will be $01$. (Note: we will not consider the case $n = 1$, where $a_n = 1$, since our recursion will start for $n \ge 3$). So, if we remove the $01$, we'll arrive at another scattered binary string of length $n-2$. Conversely, for every $a_{n-2}$ (there are $f(n-2)$ of these), one can form $f(n-2)$ strings of length $n$ by concatenating $01$.
Since we have covered all the cases, we can establish a recurrence relation. We need to calculate $f(1)$ and $f(2)$ manually, which is easy. We get: $$\color{green}{f(1) = 2}$$$$\color{green}{f(2) = 3}$$ and $$\color{green}{f(n) = f(n-1) + f(n-2) \text{ for all } n \ge 3}$$