Let $b \geq 2$ be a positive integer and consider the function $f_b : \mathbb{N}^+ \to \mathbb{N}^+$ given by $$f_b (n) = |\{ k \in \mathbb{N}^+ : k \leq n \mbox{ and } k \mbox{ is palindromic in base } b\}|.$$ A simple counting argument shows that: $$f_b (b^k) = \begin{cases} (1+b) b^{\frac{k-1}{2}} - 2& \mbox{if } k \mbox{ is odd } \\ 2 \cdot b^{\frac{k}{2}} - 2 & \mbox{if } k \mbox{ is even} \end{cases}$$ Using the monotonicity of $f_b$ and the previous fact, together with the inequality $b^{\lfloor \log_b n \rfloor} \leq n \leq b^{1 + \lfloor \log_b n \rfloor}$ we get the following $$\frac{2\sqrt{b}}{b} \sqrt{n} - 2\leq 2 b^{\frac{\lfloor \log_b n \rfloor}{2}} - 2 \leq f_b(n) \leq (1+b)b^{\frac{\lfloor \log_b n \rfloor}{2}} \leq (1+b) \sqrt{n} - 2$$ From this it follows that $$ \frac{2\sqrt{b}}{b} - 2\frac{\sqrt{n}}{n} \leq \frac{f_b(n)}{\sqrt{n}} \leq (1+b) - 2\frac{\sqrt{n}}{n}$$ Consider the function $g_b: \mathbb{N}^+ \to \mathbb{N}^+$ given by $$g_b (n) = \frac{f_b(n)}{\sqrt{n}} \hspace{3mm} \forall n \in \mathbb{N}^+$$ The previous facts imply that $g_b$ is a bounded positive function, and that $$\frac{2\sqrt{b}}{b} \leq \liminf_{n \to \infty} g_b (n) \leq \limsup_{n \to \infty} g_b(n) \leq 1 + b$$ Computational evidence suggests that $$\liminf_{n \to \infty} g_b(n) = 2 \hspace{3mm} \mbox{ and } \hspace{3mm} \limsup_{n \to \infty} g_b(n) = \frac{(1+b)\sqrt{b}}{b}$$ How can i prove it? I think i need tighter bounds, and therefore a better and non trivial way to count palindromes.
2026-03-28 13:30:52.1774704652
The palindrome counting function
247 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in REAL-ANALYSIS
- how is my proof on equinumerous sets
- Finding radius of convergence $\sum _{n=0}^{}(2+(-1)^n)^nz^n$
- Optimization - If the sum of objective functions are similar, will sum of argmax's be similar
- On sufficient condition for pre-compactness "in measure"(i.e. in Young measure space)
- Justify an approximation of $\sum_{n=1}^\infty G_n/\binom{\frac{n}{2}+\frac{1}{2}}{\frac{n}{2}}$, where $G_n$ denotes the Gregory coefficients
- Calculating the radius of convergence for $\sum _{n=1}^{\infty}\frac{\left(\sqrt{ n^2+n}-\sqrt{n^2+1}\right)^n}{n^2}z^n$
- Is this relating to continuous functions conjecture correct?
- What are the functions satisfying $f\left(2\sum_{i=0}^{\infty}\frac{a_i}{3^i}\right)=\sum_{i=0}^{\infty}\frac{a_i}{2^i}$
- Absolutely continuous functions are dense in $L^1$
- A particular exercise on convergence of recursive sequence
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 NUMBER-THEORY
- Maximum number of guaranteed coins to get in a "30 coins in 3 boxes" puzzle
- Interesting number theoretical game
- Show that $(x,y,z)$ is a primitive Pythagorean triple then either $x$ or $y$ is divisible by $3$.
- About polynomial value being perfect power.
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Reciprocal-totient function, in term of the totient function?
- What is the smallest integer $N>2$, such that $x^5+y^5 = N$ has a rational solution?
- Integer from base 10 to base 2
- How do I show that any natural number of this expression is a natural linear combination?
- Counting the number of solutions of the congruence $x^k\equiv h$ (mod q)
Related Questions in UPPER-LOWER-BOUNDS
- Bound for difference between arithmetic and geometric mean
- Show that $\frac{1}{k}-\ln\left(\frac{k+1}{k}\right)$ is bounded by $\frac{1}{k^2}$
- Bounding Probability with Large Variance
- Connectivity of random graphs - proof $\frac{logn}{n}$ is threshold
- Natural log integral inequality
- Spectrum of a matrix after applying an element-wise function (e.g. elementwise log)
- Majorization form for a given set of integers in some interval.
- Proving $(λ^d + (1-λ^d)e^{(d-1)s})^{\frac{1}{1-d}}\leq\sum\limits_{n=0}^\infty\frac1{n!}λ^{\frac{(d^n-1)d}{d-1}+n}s^ne^{-λs}$
- Upper bound for distribution function of the standard normal distribution
- Show $0 < f'(x) \leqslant \frac{1}{2}$
Related Questions in PALINDROME
- The quotient of two palindromes
- How many $4$-digit palindromes are divisible by $3$?
- Palindrome multiple of prime
- Patterns in solutions to simultaneous palindromes in two number bases
- How many palindromes of length 5 can be formed that contain 7 or 8?
- How to make a palindromic table where each row and column is a palindrome?
- Dynamic Programming problem palindrome
- Prove that a language which consists of concatenation of strings in palindromes is not a regular language?
- How many palindromes are there in the range $0000$ to $9999$?
- When are $a+b$ and $ab$ palindromic for integers $a,b$?
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?
The proof is by me, not from any source, sorry.
Let $n$ be $k$-digit number in base $b$. Let $n=a_{k-1}a_{k-2}\dots a_0$. We split the interval $[0,n]$ to $[0,b^{k-1}), [b^{k-1},a_{k-1}a_{k-2}\dots a_{\lfloor k/2\rfloor}0\dots 0),[a_{k-1}a_{k-2}\dots a_{\lfloor k/2\rfloor}0\dots 0,n]$.
We count the number of palindrome numbers in each interval.
(1) $k$ is odd
The first interval $[0,a_{k-1}000\dots 0)$ counts all the palindromes with $\le k-1$ digits and all the palindromes with $k$ digits and first digit is $1,\dots,a_{k-1}-1$. The number of the palindromes with $\le k-1$ digits is $2b^{(k-1)/2}-2$.
The last interval has first $\frac{k+1}2$ numbers fixed, so it has at most one palindrome numbers. Let $r$ be the number of palindromes in this interval, and $r\in\{0,1\}$
The second interval has $a_{k-1}a_{k-2}\dots a_{(k-1)/2}-b^{(k-1)/2}$ palindromes, since we can map any palindrome, by taking its first $(k+1)/2$ digits, to a number from $b^{(k-1)/2}$ to $a_{k-1}a_{k-2}\dots a_{(k-1)/2}-1$. Also, for each number in $b^{(k-1)/2}$ to $a_{k-1}a_{k-2}\dots a_{(k-1)/2}-1$, we can write its first $(k-1)/2$ digits reversely to its end, and it is in the second interval.
So the number of palindrome is
$$2b^{(k-1)/2}-2+a_{k-1}a_{k-2}\dots a_{(k-1)/2}-b^{(k-1)/2}+r\\=b^{(k-1)/2}+a_{k-1}a_{k-2}\dots a_{(k-1)/2}+O(1)=b^{(k-1)/2}+\frac{n}{b^{(k-1)/2}}+O(1)$$
So
$$g_b(n)=\frac{b^{(k-1)/2}+\frac{n}{b^{(k-1)/2}}}{\sqrt{n}}+O(\frac{1}{\sqrt n})=\frac{b^{(k-1)/2}}{\sqrt{n}}+\frac{\sqrt{n}}{b^{(k-1)/2}}+O(\frac{1}{\sqrt n})$$
Notice that $n$ is from $[b^{k-1},b^k]$, so $g_b(n)$ takes value from $[2+O(\frac{1}{\sqrt n}),\frac{1+b}{\sqrt{b}}+O(\frac{1}{\sqrt n})]$
(2) $k$ is even
Everything is similar. The first interval $[0,a_{k-1}000\dots 0)$ counts all the palindromes with $\le k-1$ digits and all the palindromes with $k$ digits and first digit is $1,\dots,a_{k-1}-1$. The number of the palindromes with $\le k-1$ digits is $(b+1)b^{(k-2)/2}-2$.
The last interval has first $\frac{k}2$ numbers fixed, so it has at most one palindrome numbers. Let $r$ be the number of palindromes in this interval, and $r\in\{0,1\}$
The second interval has $a_{k-1}a_{k-2}\dots a_{k/2}-b^{(k-2)/2}$ palindromes, since we can map any palindrome, by taking its first $k/2$ digits, to a number from $b^{(k-2)/2}$ to $a_{k-1}a_{k-2}\dots a_{(k-1)/2}-1$. Also, for each number from $b^{(k-2)/2}$ to $a_{k-1}a_{k-2}\dots a_{(k-1)/2}-1$, we can write all its digits reversely to its end, and it is in the second interval.
So the number of palindrome is
$$(b+1)b^{(k-2)/2}-2+a_{k-1}a_{k-2}\dots a_{k/2}-b^{(k-2)/2}+r\\=b^{k/2}+a_{k-1}a_{k-2}\dots a_{(k-1)/2}+O(1)=b^{k/2}+\frac{n}{b^{(k-1)/2}}+O(1)$$
So
$$g_b(n)=\frac{b^{k/2}+\frac{n}{b^{k/2}}}{\sqrt{n}}+O(\frac{1}{\sqrt n})=\frac{b^{k/2}}{\sqrt{n}}+\frac{\sqrt{n}}{b^{k/2}}+O(\frac{1}{\sqrt n})$$
Notice that $n$ is from $[b^{k-1},b^k]$, so $g_b(n)$ takes value from $[2+O(\frac{1}{\sqrt n}),\frac{1+b}{\sqrt{b}}+O(\frac{1}{\sqrt n})]$
Therefore, we can say that $\limsup g_b(n)\le \frac{1+b}{\sqrt{b}}$ and $\liminf g_b(n)\ge 2$. The "minimum" case achieved when $n=b^{2k}$, the "maximum" case achieved when $n=b^{2k+1}$. Thus, the problem is solved.