Home About Notes Resources Archive Contact
\[ \newcommand{\lbrac}{\left(} \newcommand{\rbrac}{\right)} \DeclareMathOperator{\lcm}{lcm} \newcommand{\R}{\mathbb{R}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\N}{\mathbb{N}} \DeclareMathOperator{\modular}{mod} \]
Topics: Mathematics

My Favorite Problems of All Time

Updated April 24, 2025
“Real mathematics must be justified as art if it can be justified at all.”
- G.H. Hardy

A Quite Difficult Series Problem

Let $\lcm(1):=1$. Prove that the series
$$\sum_{k=1}^{\infty}\frac{1}{\lcm(1,2,3,...,k)}$$
converges to an irrational number.
Proof
To know if the series converges, we use the comparison test. Let $L_k:=\lcm(1,2,...,k)$, for $k=1,2,3,...$. By definition, $L_1:=1$ and note that for $k\geq 2$, $0< L_k\leq k(k-1)$. That is, for each integer $N>0$,
$$\sum_{k=1}^{N}\frac{1}{L_k}\leq 1+\sum_{k=2}^{N}\frac{1}{k(k-1)}\leq 1+\sum_{k=2}^{\infty}\frac{1}{k(k-1)}=1+\sum_{k=2}^{\infty}\left(\frac{1}{k-1}-\frac{1}{k}\right)=2.$$
This means that $S=\sum_{k=1}^{\infty}\frac{1}{L_k}$ exists and is a positive real number between 1 and 2. To prove that this number is irrational, we argue by contradiction. Suppose on the contrary that $S$ is rational, and it can be written as
$$S=\frac{a}{b},$$
where $(a,b)\in\Z\times\Z\backslash\{0\}$, and $a, b$ are coprimes. Let $p_1,p_2,p_3,...,p_r,...$ be the increasing sequence of prime numbers greater than $b$. Using the famous Bertrand's Postulate, we know that
$$p_r < p_{r+1}< 2p_r\quad\Rightarrow\quad p_{r+1}-p_r< p_r,\;\forall r=1,2,3,...$$
Change this to a non-strict inequality, we have
$$p_{r+1}-p_r\leq p_r-1$$
for each $r\in\Z^+$. We will now show that $p_{r+1}-p_r$ is indeed strictly less than $p_r-1$. To do this, we need to recall a useful lemma that we will not prove formally:
Lemma 1: There are infinitely primes of the form $3k+2$.
Lemma (1) simply states that for infinitely many primes $p_r$, it holds that $p_r\equiv 2\;(\modular 3)$. Now, note that if $p_{r+1}-p_r=p_r-1$, then $p_{r+1}-2\equiv 1\;(\modular 3)$, which means that $p_{r+1}\equiv 0\;(\modular 3)$, and is indeed true for $3$, but not true for infinitely many primes $p_r$. Hence, $p_{r+1}-p_r< p_r-1$ for infinitely many $r$. Now, notice that
$$ \begin{align*} S-S_{p_1-1}&=\left(\sum_{k=1}^{\infty}\frac{1}{L_k}-\sum_{k=1}^{p_1-1}\frac{1}{L_k}\right)=\sum_{k=p_1}^{\infty}\frac{1}{L_k}=\frac{1}{L_{p_1}}+\frac{1}{L_{p_1+1}}+\frac{1}{L_{p_1+2}}+\cdots\\ &=\left(\frac{1}{L_{p_1}}+\frac{1}{L_{p_1+1}}+\cdots+\frac{1}{L_{p_2-1}}\right)+\left(\frac{1}{L_{p_2}}+\frac{1}{L_{p_2+1}}+\cdots+\frac{1}{L_{p_3-1}}\right)+\cdots\\ &=\sum_{r=1}^{\infty}\sum_{k=p_r}^{p_{r+1}-1}\frac{1}{L_k}=\frac{1}{L_{p_1-1}}\sum_{r=1}^{\infty}\sum_{k=p_r}^{p_{r+1}-1}\frac{L_{p_1-1}}{L_k}. \end{align*} $$
Notice also that $L_{p_1-1}=\lcm(1,2,...,p_1-1)$ is a multiple of all primes less than $p_1$, and $L_k=\lcm(1,2,...,k)=\lcm(1,...,p_r)$ is a multiple of all primes less than $p_r$. Therefore
\begin{align*} 0 < S-S_{p_1-1}&\leq \frac{1}{L_{p_1-1}}\sum_{r=1}^{\infty}\sum_{k=p_r}^{p_{r+1}-1}\frac{2\cdot 3\cdot 5\cdots (p_1-1)}{2\cdot 3\cdot 5\cdots (p_1-1)p_1\cdots p_r}\\ &=\frac{1}{L_{p_1-1}}\sum_{r=1}^{\infty}\sum_{k=p_r}^{p_{r+1}-1}\frac{1}{p_1p_2...p_r}=\frac{1}{L_{p_1-1}}\sum_{r=1}^{\infty}\frac{1}{p_1p_2\cdots p_r}\sum_{k=p_r}^{p_{r+1}-1}1\\ &=\frac{1}{L_{p_1-1}}\sum_{r=1}^{\infty}\frac{p_{r+1}-p_r}{p_1p_2\cdots p_r}< \frac{1}{L_{p_1-1}}\sum_{r=1}^{\infty}\frac{p_r-1}{p_1p_2\cdots p_r}\\ &=\frac{1}{L_{p_1-1}}\sum_{r=1}^{\infty}\left(\frac{1}{p_1\;...\;p_{r-1}}-\frac{1}{p_1...p_r}\right)\\ &=\frac{1}{L_{p_1-1}}\left(1-\frac{1}{p_1}+\frac{1}{p_1}-\frac{1}{p_1p_2}+\frac{1}{p_1p_2}-\frac{1}{p_1p_2p_3}+\cdots\right)\\ &=\frac{1}{L_{p_1-1}}, \end{align*}
which is the same as saying that
$$ \begin{equation*}\label{eqn: lcm_1} 0< SL_{p_1-1}-S_{p_1-1}L_{p_1-1}< 1. \end{equation*} $$
Recall that we defined $p_1$ to be a prime number greater than $b$, therefore, $b\in\{1,2,...,p_1-1\}$, and hence $L_{p_1-1}=\lcm(1,2,...,p_1-1)$ must be a multiple of $b$; i.e., $L_{p_1-1}=kb$ for some integer $k$. This means that
$$SL_{p_1-1}=\frac{a}{b}\cdot kb=a\cdot k\in\N.$$
Let us remind ourselves of the formula of $\lcm$ for a list of numbers.
Lemma 2: For an integer $m\geq k$, we have
$$L_m=\lcm(1,2,...,m)=\lcm(\lcm(1,2,...,k),k+1,...,m).$$
Ok, but why? This lemma is left as an exercise for the reader.

The lemma says that $L_m$ is a number divisible by $\lcm(1,2,...,k)$, and hence $\lcm(1,...,m)=h\lcm(1,...,k)$, for some $h\in\Z$. Therefore, for the term $S_{p_1-1}L_{p_1-1}$,
$$S_{p_1-1}L_{p_1-1}=\sum_{k=1}^{p_1-1}\frac{L_{p_1-1}}{L_k}=\sum_{k=1}^{p_1-1}\frac{\lcm(1,2,...,p_1-1)}{\lcm(1,2,...,k)}\in\N,\;1\leq k\leq p_1-1.$$
This means that
$$SL_{p_1-1}-S_{p_1-1}L_{p_1-1}\in\N,$$
which is completely nonsensical, since this implies that there is an integer somewhere between $0$ and $1$. Therefore, the original statement must be true and $S$ is irrational.

An Interesting Inequality Problem

I encountered this problem back when I was in high school. I remember it took me more than 2 hours to solve.

Consider the set $\mathcal{S}$ of all integers $x$ satisfying
\[ 4yx^6 + \log_2(yx^6) - 2\log_2(x) + 1 \geq 2^{[\log_2(2x)]^2} + [\log_2(x)]^2, \]
for some integer $y$. How many integer values of $y$ are there such that the set $\mathcal{S}$ contains no more than 64 elements?

You can try solving this, or view the solution right below :)

Solution
For this inequality to make sense, $x$ and $y$ must be greater than 0. We now restate the problem more generally: if $\mathcal{S}$ has $n$ elements, then the inequality must hold for $n$ integers $x$ satisfying:
$$4yx^6 + \log_2(yx^6) - 2\log_2(x) + 1 \geq 2^{[\log_2(2x)]^2} + [\log_2(x)]^2.$$
Rearranging the inequality, we obtain:
$$ \begin{align*} 4yx^6 + \log_2(yx^6) + \log_2(4) &\geq 2^{[\log_2(2x)]^2} + [\log_2(x)]^2 + 2\log_2(x) + 1 \\[0.2em] 2^{\log_2(4yx^6)} + \log_2(4yx^6) &\geq 2^{[\log_2(2x)]^2} + [\log_2(x) + 1]^2 \\[0.2em] 2^{\log_2(4yx^6)} + \log_2(4yx^6) &\geq 2^{[\log_2(2x)]^2} + [\log_2(2x)]^2 \end{align*} $$
Let $u(x) = \log_2(4yx^6)$ and $v(x) = [\log_2(2x)]^2$. Then, based on the above, we have: $$ 2^{u(x)} + u(x) \geq 2^{v(x)} + v(x) $$ To proceed, let's introduce a useful property of monotonic functions:
Lemma 1: Let $f: D \to \mathbb{R}$ be a function defined on a subset $D \subseteq \mathbb{R}$. Let $u(x)$ and $v(x)$ be functions such that for all $x$, $u(x), v(x) \in D$ and $u(x) > v(x)$. Then:
  • If $f$ is strictly increasing on $D$, then $f(u(x)) > f(v(x))$.
  • If $f$ is strictly decreasing on $D$, then $f(u(x)) < f(v(x))$.
Note: If $f$ is non-strictly monotonic (i.e., non-decreasing or non-increasing), then the inequalities become non-strict:
  • If $f$ is non-decreasing on $D$, then $f(u(x)) \geq f(v(x))$.
  • If $f$ is non-increasing on $D$, then $f(u(x)) \leq f(v(x))$.
See the definition of monotonic functions here.
Returning to the inequality:
$$2^{\log_2(4yx^6)} + \log_2(4yx^6) \geq 2^{[\log_2(2x)]^2} + [\log_2(2x)]^2,$$
Let $f(x) = 2^x + x$, a strictly increasing function. Then, by Lemma 1:
$$\log_2(4yx^6) \geq [\log_2(2x)]^2$$
Solving for $y$:
$$ \begin{align*} 4yx^6 &\geq 2^{[\log_2(2x)]^2} = 2^{\log_2(2x) \cdot \log_2(2x)} = (2x)^{\log_2(2x)} \\ &= 2x \cdot x^{\log_2(2x)} = 2x^{\log_2(x) + 2} \end{align*} $$
Therefore:
$$y \geq \frac{1}{2}x^{\log_2(x) - 4} > 0$$
Define $f(x) = \frac{1}{2}x^{\log_2(x) - 4}$. Our goal is to find the minimum of this function. Proceeding via standard calculus:
$$ \begin{align*} f'(x) &= \frac{1}{2}x^{\log_2(x) - 4}\left[\frac{\log_2(x) - 4}{x} + \frac{\ln(x)}{x\ln(2)}\right] \\ &= \frac{1}{2}x^{\log_2(x) - 4} \cdot \frac{1}{x} \left[ \log_2(x) + \frac{\ln(x)}{\ln(2)} - 4 \right] \\ &= \frac{1}{2}x^{\log_2(x) - 5} (2\log_2 x - 4) \end{align*} $$
Setting $f'(x) = 0$, we have either $\frac{1}{2}x^{\log_2(x) - 5} = 0$ or $2\log_2 x - 4 = 0$. The first case is impossible since $x > 0$. Thus: $$ 2\log_2 x - 4 = 0 \Rightarrow x = 4 $$ It's easy to verify that $f'(x)$ changes sign from negative to positive at $x = 4$, so $x = 4$ is a minimum. The core result is that:
$$4yx^6 + \log_2(yx^6) - 2\log_2(x) + 1 \geq 2^{[\log_2(2x)]^2} + [\log_2(x)]^2$$
is true if and only if $y \geq f(x) > 0$. For $\mathcal{S}$ to have $n$ elements, it must be true that:
$$0 < y \leq \left\lfloor f(n + 1) \right\rfloor$$
Plugging in $n = 64$ gives $0 < y < 2319$. Therefore, there are 2319 values of $y$ satisfying the inequality.

More Articles

The Quest to Finding Chladni Patterns, Part 2: Codes and Results
The Quest to Finding Chladni Patterns, Part 2: Codes and Results
Tags: Python, Eigenvalue Problems, PDEs, Numpy
Plotting a series of Chladni's patterns using the wave equation model.
Algorithmic Analysis of an Algorithm
Algorithmic Analysis of an Algorithm
Tags: Data Structures and Algorithm, C++, Python
Theoretical basics about time-complexity of an algorithm, how to measure the time-complexity of a function, examples of algorithms.
Simulating Moment of Inertia with OpenGL and GLM
Simulating Moment of Inertia with OpenGL and GLM
Tags: Classical Mechanics, Dynamics of Rotation
If mass is an object's resistance to change of motion due to force, then moment of inertia is its resistance to rotation due to torque. Unlike mass, moments of inertia varies based on shapes and axis of rotations.
The Quest to Finding Chladni Patterns, Part 1: Theory and Algorithms
The Quest to Finding Chladni Patterns, Part 1: Theory and Algorithms
Tags: Python, Eigenvalue Problems, PDEs, Numpy
Solve the two-dimensional wave equation via separation of variables and design algorithms to plot Chladni's pattern using the wave equation model.