1 Introduction

Determining the Hausdorff dimension of sets of numbers is a fundamental and important problem in number theory and the multifractal analysis of various dynamical systems in view of Borel’s normal number theorem [1] in 1909. In 1934, Besicovitch [2] firstly complemented Borel’s result by computing the Hausdorff dimension of sets of numbers in [0, 1] for which the limit of the frequency of digit one in the dyadic expansion is bounded from above. After that, Eggleston [3] generalized Besicovitch’s work to the case of b-adic expansion, where \(b\ge 2\) is an integer. In the past several decades, many people extended the results got by Besicovitch and Eggleston in diverse directions. For more details, the readers are referred to [4, 7, 8] and references therein. In 2013, Chen and Wen [6] generalized Besicovitch’s work by considering the Hausdorff dimension of the intersections of the lower Besicovitch sets and the Erdös–Rényi sets. Based on their result, we turn to a more subtle kind of sets, which will complement the result got by Chen et al.

Now, we are going to introduce some notations and definitions that will be used later. For any real number \(x\in [0,1)\), let \(x\!=\!\sum \nolimits _{n=1}^{\infty }x_{n}/2^{n}\!=\!0\)\(x_{1}x_{2}\ldots \) be the unique non-terminating binary expansion of x, where \(x_{n}\in \{0,1\},~n\ge 1\), are called the digits of the binary expansion of x. We set \(S_{0}(x)=0\) and write \(S_{n}(x)=\sum \nolimits _{i=1}^{n}x_{i},~n\ge 1\), the sum of the first n digits of x or the n-th partial sum of x. For the following sets

$$\begin{aligned} {\underline{B}}(\alpha )=\left\{ x\in [0,1):~\liminf \limits _{n\rightarrow \infty }\frac{S_{n}(x)}{n}\ge \alpha \right\} ,~~\frac{1}{2}\le \alpha \le 1, \end{aligned}$$

which are called the lower Besicovitch sets, it can be concluded by Besicovitch’s result [2] that

$$\begin{aligned} \dim _{H}{\underline{B}}(\alpha )=\frac{H(\alpha )}{\log 2},~~\frac{1}{2}\le \alpha \le 1, \end{aligned}$$

where \(\dim _{H}\) denotes the Hausdorff dimension and \(H(\cdot )\) is the entropy function defined by

$$\begin{aligned} H(x)=-x\log x-(1-x)\log (1-x), ~~0\le x\le 1, \end{aligned}$$
(1.1)

and we set \(0\log 0=0\) by convention. Furthermore, write

$$\begin{aligned} B(\alpha )=\left\{ x\in [0,1):~\lim \limits _{n\rightarrow \infty }\frac{S_{n}(x)}{n}=\alpha \right\} ,~~0\le \alpha \le 1, \end{aligned}$$
(1.2)

which are called Besicovitch sets. It is well known that Besicovitch’s research also give the conclusion that

$$\begin{aligned} \dim _{H}B(\alpha )=\frac{H(\alpha )}{\log 2},~~0\le \alpha \le 1. \end{aligned}$$

Next we are ready to introduce the Erdös–Rényi sets. For any \(x\in [0,1)\), let \(R_{n}(x)\) be the dyadic run-length function of x, namely,

$$\begin{aligned} R_{n}(x)=\max \{k:~x_{i+1}=x_{i+2}=\ldots = x_{i+k}=1,~0\le i\le n-k\}. \end{aligned}$$

In a pioneering work, Erdös and Rényi [5] proved that for almost all \(x\in [0,1)\),

$$\begin{aligned} \lim \limits _{n\rightarrow \infty }\frac{R_{n}(x)}{\log _{2}n}=1, \end{aligned}$$

which is the well known Erdös–Rényi limit theorem. So it is meaningful to study the level sets

$$\begin{aligned} E(\beta )=\left\{ x\in [0,1):~\lim \limits _{n\rightarrow \infty }\frac{R_{n}(x)}{\log _{2}n}=\beta \right\} ,~~0\le \beta \le \infty , \end{aligned}$$
(1.3)

which are called Erdös–Rényi sets. It was proved by Ma et al. that the exceptional set of the Erdös–Rényi limit theorem has full Hausdorff dimension in [11]. In the past several years, there are abundant dimensional results concerning the run-length function. For more results, the readers are referred to [12,13,14]. However, few results are concerned about the relationship between the Besicovitch sets and the Erdös–Rényi sets.

By classifying the real numbers in the unit interval satisfying both the properties of Besicovitch sets and Erdös–Rényi sets, Chen et al. [6] firstly considered the fractional dimensions of intersections of the lower Besicovitch sets and the Erdös–Rényi sets in 2013. In fact, for any \(0\le \alpha \le 1,~0\le \beta \le +\,\infty \), they showed that the Hausdorff dimension of the sets

$$\begin{aligned} {\underline{S}}(\alpha ,\beta )=\left\{ x\in [0,1):~\liminf \limits _{n\rightarrow \infty }\frac{S_{n}(x)}{n}\ge \alpha ,~ \lim \limits _{n\rightarrow \infty }\frac{R_{n}(x)}{\log _{2}n}=\beta \right\} \end{aligned}$$

is \(\sup \nolimits _{\alpha \le t\le 1}\frac{H(t)}{\log 2}\), where \(H(\cdot )\) is defined as (1.1). In this paper, we turn to a more subtle kind of sets, which are the intersections of the Besicovitch sets and the Erdös–Rényi sets. For the \(\alpha ,\beta \) above, we define the sets

$$\begin{aligned} E(\alpha ,\beta )=\left\{ x\in [0,1):~\lim \limits _{n\rightarrow \infty }\frac{S_{n}(x)}{n}=\alpha , ~\lim \limits _{n\rightarrow \infty }\frac{R_{n}(x)}{\log _{2}n}=\beta \right\} . \end{aligned}$$
(1.4)

The main result of this paper can be stated as follows.

Theorem 1.1

  For any  \(0\le \alpha \le 1~\text {and}~~0\le \beta \le +\,\infty \), we have that

$$\begin{aligned} \dim _{H}E(\alpha ,\beta )=\frac{H(\alpha )}{\log 2}. \end{aligned}$$

For acquaintance of the definitions and properties of Hausdorff dimension, one can refer to Falconer’s book [10].

2 Preliminaries

In this section, we gather some terminologies and present some lemmas which are essential to our proof.

Definition 2.1

Let \(M\ge 1\) be an integer. The finite sequence \((x_{1}x_{2}\ldots x_{M})\in \{0,1\}^{M}\) is called an M-word. When \(x_{i}=0\) or 1 for any \(1\le i\le M\), such M-word is denoted by \(0^{M}\) or \(1^{M}\) respectively for convenience. In particular, for an integer N satisfying \(0\le N<M\), the M-word

$$\begin{aligned} (x_{1}x_{2}\ldots x_{M-1},0)~\text {with}~\sum _{i=1}^{M-1}x_{i}=N \end{aligned}$$

is called an (NM)-word. We denote the family of all the (NM)-words by \(W_{M}(N)\).

In order to estimate the number of the words in \(W_{M}(N)\), we need the following result which is a direct consequence of the Stirling’s formula [15].

Lemma 2.2

For any positive integers n and k with \(0\le k\le n\), we have the following equation

$$\begin{aligned} \log \left( {\begin{array}{c}n\\ k\end{array}}\right) =nH\left( \frac{k}{n}\right) +O(\log n),~\text {as}~n\rightarrow \infty , \end{aligned}$$

where \(H(\cdot )\) is the entropy function defined as (1.1), and the notation \(f(n)=O(g(n))\) means that \(\frac{f(n)}{g(n)}\) is bounded as \(n\rightarrow \infty \).

The following dimension result about homogeneous Moran sets is a classic tool to estimate the Hausdorff dimension of a fractal set from below.

Let \(\{d_{i}\}_{i\ge 1}\) be a sequence of positive integers and \(\{c_{i}\}_{i\ge 1}\) be a sequence of positive numbers satisfying \(d_{i}\ge 2\), \(0<c_{i}<1\), \(d_{1}c_{1}\le \delta \) and \(d_{i}c_{i}\le 1~(i\ge 2)\), where \(\delta \) is some positive number. Let

$$\begin{aligned} D=\bigcup \limits _{i\ge 0}D_{i},~D_{0}=\emptyset ,~D_{i}=\{(\sigma _{1}\ldots \sigma _{i}):1\le \sigma _{j}\le d_{j},~1\le j\le i\}. \end{aligned}$$

If \(\sigma =(\sigma _{1}\ldots \sigma _{k})\in D_{k}\), \(\tau =(\tau _{1}\ldots \tau _{m})\in D_{m}\), the concatenation of \(\sigma \) and \(\tau \) is denoted by \(\sigma *\tau =(\sigma _{1}\ldots \sigma _{k}\tau _{1}\ldots \tau _{m})\).

Definition 2.3

([9]) Suppose that \(J\subset {\mathbb {R}}\) is a closed subinterval with diameter \(\delta >0\). Let \({\mathcal {F}}=\{J_{\sigma }:\sigma \in D\}\) be a collection of closed subsets of J with the following properties:

  1. (1)

    \(J_{\emptyset }=J\);

  2. (2)

    For any \(i\ge 1\) and \(\sigma \in D_{i-1}\), \(J_{\sigma *1},J_{\sigma *2},\ldots ,J_{\sigma *d_{i}}\) are subintervals of \(J_{\sigma }\) and \(int(J_{\sigma *i})\bigcap int(J_{\sigma *j})=\emptyset ~(i\ne j)\), where \(int(\cdot )\) denotes the interior of a set;

  3. (3)

    For any \(i\ge 1\) and \(\sigma \in D_{i-1},~1\le l\le d_{i},~\frac{|J_{\sigma *l}|}{|J_{\sigma }|}=c_{i}\), where \(|\cdot |\) denotes the diameter of a set.

    Then \({\mathbb {C}}_{\infty }:=\bigcap \limits _{i\ge 1}\bigcup \limits _{\sigma \in D_{i}}J_{\sigma }\) is called a homogeneous Moran set determined by \({\mathcal {F}}\). For each \(i\ge 1\), we call the union \(C_{i}:=\bigcup \limits _{\sigma \in D_{i}}J_{\sigma }\) the i-th generation of \({\mathbb {C}}_{\infty }\).

Lemma 2.4

([9]) For the homogeneous Moran sets defined above, we have

$$\begin{aligned} \dim _{H}{\mathbb {C}}_{\infty }\ge \liminf \limits _{j\rightarrow \infty }\frac{\log d_{1}d_{2}\ldots d_{j}}{-\log c_{1}c_{2}\ldots c_{j+1}d_{j+1}}. \end{aligned}$$

3 Proof of Theorem 1.1

This section is devoted to the proof of Theorem 1.1. As for the upper bound, it is easy to get that \(\dim _{H}E(\alpha ,\beta )\le \frac{H(\alpha )}{\log 2}\) since \(E(\alpha ,\beta )\subset B(\alpha )\) for any \(0\le \alpha \le 1,~0\le \beta \le +\,\infty \), where \(B(\alpha )\) is defined as (1.2). To obtain the lower bound of \(\dim _{H}E(\alpha ,\beta )\), we will construct a suitable homogeneous Moran subset named \({\mathbb {C}}_{\infty }\), then the conclusion can be drawn by using Lemma 2.4. For this, we need to consider the following cases.

3.1 \(0\le \alpha \le 1,~0<\beta <+\,\infty \)

In this subsection, we shall prove our result in the case of  \(0\le \alpha \le 1,~0<\beta <+\infty \) in detail, while the argument for other cases can be done by some minor modifications. In what follows, we will construct the desired Moran subset \({\mathbb {C}}_{\infty }\) of \(E(\alpha ,\beta )\). For any \(x\in {\mathbb {R}}\), we use the notation \(\lfloor x\rfloor \) to represent the maximal integer that less than or equal to x.

Choose an integer \(n_{0}\) large enough such that \(2^{n_{0}}>\lfloor (n_{0}+1)\beta \rfloor \) . We define two sequences of integers \(\{N_{n}\}_{n\ge 1}\) and \(\{l_{n}\}_{n\ge 1}\) as follows:

$$\begin{aligned}&N_{n}=\left\{ \begin{array}{ll} \lfloor \frac{2^{n_0}-\lfloor n_{0}\beta \rfloor }{\lfloor \sqrt{n_{0}-1}\rfloor }\rfloor , &{}\quad n=1; \\ \\ \lfloor \frac{2^{n_{0}+n-2}-\lfloor (n_{0}+n-1)\beta \rfloor }{\lfloor \sqrt{n_{0}+n-2}\rfloor }\rfloor , &{}\quad n\ge 2. \end{array} \right. \\\\&l_{n}=\left\{ \begin{array}{ll} 2^{n_{0}}-N_{1}\lfloor \sqrt{n_{0}-1}\rfloor -\lfloor n_{0}\beta \rfloor , &{}\quad n=1; \\ \\ 2^{n_{0}+n-2}-N_{n}\lfloor \sqrt{n_{0}+n-2}\rfloor -\lfloor (n_{0}+n-1)\beta \rfloor , &{}\quad n\ge 2. \end{array} \right. \end{aligned}$$

Obviously, we know that \(0\le l_{n}<\lfloor \sqrt{n_{0}+n-2}\rfloor \) for any \(n\ge 1\).

A family of sets \(\{C_{n}\}_{n\ge 1}\) of words which are related to \({\mathbb {C}}_{\infty }\) are defined by

$$\begin{aligned} C_{n}&=\left\{ \omega _{1}\omega _{2}\ldots \omega _{N_{n}-1}\nu _{N_{n}}: \nu _{N_{n}}=\omega _{N_{n}}0^{l_{n}}1^{\lfloor (n_{0}+n-1)\beta \rfloor },\right. \\&\quad \left. \omega _{i}\in W_{\lfloor \sqrt{n_{0}+n-2}\rfloor }(\lfloor \alpha \sqrt{n_{0}+n-2}\rfloor ),~1\le i\le N_{n}\right\} , \end{aligned}$$

for any \(~n\ge 1\).

Now, we are ready to give a suitable homogeneous Moran set \({\mathbb {C}}_{\infty }\) as below:

$$\begin{aligned} {\mathbb {C}}_{\infty }&=\{0.u_{1}u_{2}\ldots \in [0,1]:~u_{i}\in C_{i},~~\forall i\ge 1\}\\&=0.\prod \limits _{i=1}^{\infty }C_{i}. \end{aligned}$$

By the construction of \({\mathbb {C}}_{\infty }\), the two sequences \(\{d_{i}\}_{i\ge 1}\) and \(\{c_{i}\}_{i\ge 1}\) corresponding to Definition 2.3 can be written as follows:

$$\begin{aligned}&d_{i}=\left\{ \begin{array}{ll} \left( {\begin{array}{c}\lfloor \sqrt{n_{0}-1}\rfloor -1\\ \lfloor \alpha \sqrt{n_{0}-1}\rfloor \end{array}}\right) , &{}\quad 1\le i\le N_{1}; \\ \\ \left( {\begin{array}{c}\lfloor \sqrt{n_{0}+p-1}\rfloor -1\\ \lfloor \alpha \sqrt{n_{0}+p-1}\rfloor \end{array}}\right) ,&\quad \sum \limits _{j=1}^{k+1}N_{j}+1\le i\le \sum \limits _{j=1}^{k+2}N_{j},~k\ge 0. \end{array} \right. \\\\&c_{i}=\left\{ \begin{array}{ll} 2^{-\lfloor \sqrt{n_{0}-1}\rfloor }, &{}\quad 1\le i<N_{1}; \\ 2^{-(\lfloor \sqrt{n_{0}-1}\rfloor +l_{1}+\lfloor n_{0}\beta \rfloor )}, &{}\quad i=N_{1};\\ 2^{-\lfloor \sqrt{n_{0}+k}\rfloor }, &{}\quad \sum \limits _{j=1}^{k+1}N_{j}+1\le i<\sum \limits _{j=1}^{k+2}N_{j},~k\ge 0;\\ 2^{-(\lfloor \sqrt{n_{0}+k}\rfloor +l_{k+2}+\lfloor (n_{0}+k+1)\beta \rfloor )}, &{}\quad i=\sum \limits _{j=1}^{k+2}N_{j},~k\ge 0. \end{array} \right. \end{aligned}$$

In order to get the lower bound of \(\dim _{H}E(\alpha ,\beta )\), the following two lemmas are essential.

Lemma 3.1

Let \(0\le \alpha \le 1,~0<\beta <+\,\infty \), then \(\dim _{H}{\mathbb {C}}_{\infty }\ge \frac{H(\alpha )}{\log 2}\).

Proof

For any integer j satisfying \(\sum \nolimits _{i=1}^{k+1}N_{i}\le j<\sum \nolimits _{i=1}^{k+2}N_{i}\) for some \(k\ge 0\), we assume that \(j=\sum \nolimits _{i=1}^{k+1}N_{i}+p\), for some p with \(0\le p<N_{k+2}\). Let us consider the following two cases.

Case 1  \(j+1<\sum \limits _{i=1}^{k+2}N_{i}\).

By the definitions of \(\{d_i\}_{i\ge 1}\) and \(\{c_i\}_{i\ge 1}\), an application of Lemma 2.2 implies that

$$\begin{aligned}&~~~~\liminf \limits _{j\rightarrow \infty }\frac{\log d_{1}d_{2}\ldots d_{j}}{-\log c_{1}c_{2}\ldots c_{j+1}d_{j+1}}\\&=\liminf \limits _{k\rightarrow \infty } \frac{\sum \limits _{i=1}^{k+1}N_{i}\log \left( {\begin{array}{c}\lfloor \sqrt{n_{0}+i-2}\rfloor -1\\ \lfloor \alpha \sqrt{n_{0}+i-2}\rfloor \end{array}}\right) +p\log \left( {\begin{array}{c}\lfloor \sqrt{n_{0}+k}\rfloor -1\\ \lfloor \alpha \sqrt{n_{0}+k}\rfloor \end{array}}\right) }{\left[ 2^{n_{0}}+\sum \limits _{i=1}^{k}2^{n_{0}+i-1}+(p+1)\lfloor \sqrt{n_{0}+k}\rfloor \right] \log 2 -\log \left( {\begin{array}{c}\lfloor \sqrt{n_{0}+k}\rfloor -1\\ \lfloor \alpha \sqrt{n_{0}+k}\rfloor \end{array}}\right) }\\&\ge \liminf \limits _{k\rightarrow \infty }\frac{A(k)+B(k)}{C(k)+D(k)}, \end{aligned}$$

where we denote

$$\begin{aligned} A(k)= & {} \sum \limits _{i=1}^{k+1}N_{i}\left[ \left( \lfloor \sqrt{n_{0}+i-2}\rfloor -1\right) H\left( \frac{\alpha \lfloor \sqrt{n_{0}+i-2}\rfloor }{\lfloor \sqrt{n_{0}+i-2}\rfloor -1}\right) \right. \\&\quad \left. +O\left( \lfloor \sqrt{n_{0}+i-2}\rfloor -1\right) \right] \\&\quad +O\left( \lfloor \sqrt{n_{0}+k}\rfloor -1\right) ,\\ B(k)= & {} p \left( \lfloor \sqrt{n_{0}+k}\rfloor -1\right) H\left( \frac{\lfloor \sqrt{n_{0}+k}\rfloor -1}{\lfloor \alpha \sqrt{n_{0}+k}\rfloor }\right) ,\\ C(k)= & {} \left[ 2^{n_0}+\sum \limits _{i=1}^{k}2^{n_{0}+i-1}+\lfloor \sqrt{n_{0}+k}\rfloor \right] \log 2,\\ D(k)= & {} \left( p\lfloor \sqrt{n_{0}+k}\rfloor \right) \log 2. \end{aligned}$$

Thus by the Stolz-Cesàro Theorem we know that

$$\begin{aligned} \liminf \limits _{k\rightarrow \infty }\frac{A(k)}{C(k)}=\frac{H(\alpha )}{\log 2},~~\liminf \limits _{k\rightarrow \infty }\frac{B(k)}{D(k)}=\frac{H(\alpha )}{\log 2}, \end{aligned}$$

so we have

$$\begin{aligned} \liminf \limits _{k\rightarrow \infty }\frac{A(k)+B(k)}{C(k)+D(k)}\ge \frac{H(\alpha )}{\log 2}. \end{aligned}$$

Case 2  \(j+1=\sum \limits _{i=1}^{k+2}N_{i}\). Similar to Case 1, we have

$$\begin{aligned}&~~~~\liminf \limits _{j\rightarrow \infty }\frac{\log d_{1}d_{2}\ldots d_{j}}{-\log c_{1}c_{2}\ldots c_{j+1}d_{j+1}}\\&=\liminf \limits _{k\rightarrow \infty } \frac{\sum \limits _{i=1}^{k+1}N_{i}\log \left( {\begin{array}{c}\lfloor \sqrt{n_{0}+i-2}\rfloor -1\\ \lfloor \alpha \sqrt{n_{0}+i-2}\rfloor \end{array}}\right) +\left( N_{k+2}-1\right) \log \left( {\begin{array}{c}\lfloor \sqrt{n_{0}+k}\rfloor -1\\ \lfloor \alpha \sqrt{n_{0}+k}\rfloor \end{array}}\right) }{\left( 2^{n_{0}}+\sum \limits _{i=1}^{k+1}2^{n_{0}+i-1}\right) \log 2 -\log \left( {\begin{array}{c}\lfloor \sqrt{n_{0}+k}\rfloor -1\\ \lfloor \alpha \sqrt{n_{0}+k}\rfloor \end{array}}\right) }\\&\ge \liminf \limits _{k\rightarrow \infty }\frac{\sum \limits _{i=1}^{k+2}N_{i}\left[ \left( \lfloor \sqrt{n_{0}+i-2}\rfloor -1\right) H(\frac{\alpha \lfloor \sqrt{n_{0}+i-2}\rfloor }{\lfloor \sqrt{n_{0}+i-2}\rfloor -1}) +O\left( \log \lfloor \sqrt{n_{0}+i-2}\rfloor \right) \right] }{(2^{n_{0}}+\sum \limits _{i=1}^{k+1}2^{n_{0}+i-1})\log 2}\\&=\frac{H(\alpha )}{\log 2}. \end{aligned}$$

Hence, by Lemma 2.4 we have

$$\begin{aligned} \dim _{H}{\mathbb {C}}_{\infty }\ge \liminf \limits _{j\rightarrow \infty }\frac{\log d_{1}d_{2}\ldots d_{j}}{-\log c_{1}c_{2}\ldots c_{j+1}d_{j+1}} \ge \frac{H(\alpha )}{\log 2}. \end{aligned}$$

\(\square \)

Lemma 3.2

Let \(0\le \alpha \le 1,~0<\beta <+\,\infty \), then \({\mathbb {C}}_{\infty }\subset E(\alpha ,\beta )\).

Proof

Let \(n\in {\mathbb {N}}\) satisfying \(2^{n_{0}+k}\le n<2^{n_{0}+k+1}\) for some \(k\ge 1\).

Take \(x=0.x_{1}x_{2}\ldots \in {\mathbb {C}}_{\infty }\). In order to get that \(\lim \limits _{n\rightarrow \infty }\frac{S_{n}(x)}{n}=\alpha \), we have the following three cases.

Case\(2^{n_{0}+k}+p\lfloor \sqrt{n_{0}+k}\rfloor \le n<2^{n_{0}+k}+(p+1)\lfloor \sqrt{n_{0}+k}\rfloor \) for some \(1\le p<N_{k+2}\).

$$\begin{aligned} \frac{S_{n}(x)}{n}=\frac{\sum \limits _{i=1}^{k+1}\left[ N_{i}\lfloor \alpha \sqrt{n_{0}+i-2}\rfloor +\lfloor (n_{0}+i-1)\beta \rfloor \right] + p\lfloor \alpha \sqrt{n_{0}+k}\rfloor +O\left( \sqrt{n_{0}+k}\right) }{2^{n_{0}+k}+p\lfloor \sqrt{n_{0}+k}\rfloor +O\left( \sqrt{n_{0}+k}\right) }; \end{aligned}$$

Case\(2^{n_{0}+k}+N_{k+2}\lfloor \sqrt{n_{0}+k}\rfloor \le n<2^{n_{0}+k}+N_{k+2}\lfloor \sqrt{n_{0}+k}\rfloor +l_{k+2}\).

$$\begin{aligned} \frac{S_{n}(x)}{n}=\frac{\sum \limits _{i=1}^{k+2}N_{i}\lfloor \alpha \sqrt{n_{0}+i-2}\rfloor +\sum \limits _{i=1}^{k+1}\lfloor (n_{0}+i-1)\beta \rfloor }{2^{n_{0}+k}+N_{k+2}\lfloor \sqrt{n_{0}+k}\rfloor +O\left( \sqrt{n_{0}+k}\right) }; \end{aligned}$$

Case\(2^{n_{0}+k}+N_{k+2}\lfloor \sqrt{n_{0}+k}\rfloor +l_{k+2}\le n<2^{n_{0}+k+1}\).

$$\begin{aligned} \frac{S_{n}(x)}{n}=\frac{\sum \limits _{i=1}^{k+2}N_{i}\lfloor \alpha \sqrt{n_{0}+i-2}\rfloor +\sum \limits _{i=1}^{k+1}\lfloor (n_{0}+i-1)\beta \rfloor + O\left( n_{0}+k-1\right) }{2^{n_{0}+k}+N_{k+2}\lfloor \sqrt{n_{0}+k}\rfloor +O\left( n_{0}+k+1\right) }. \end{aligned}$$

Therefore, by the definition of \(\{N_{i}\}_{i\ge 1}\), we have \(\lim \nolimits _{n\rightarrow \infty }\frac{S_{n}(x)}{n}=\alpha \) in all the cases above.

Also, by the construction of \({\mathbb {C}}_{\infty }\) one can easily check that

$$\begin{aligned} \frac{\lfloor \beta (n_{0}+k)\rfloor }{n_{0}+k+1}<\frac{R_{n}(x)}{\log _{2}n}\le \frac{\lfloor \beta (n_{0}+k+1)\rfloor }{n_{0}+k}, \end{aligned}$$

which means \(\lim \nolimits _{n\rightarrow \infty }\frac{R_{n}(x)}{\log _{2}n}=\beta \). Hence we have \({\mathbb {C}}_{\infty }\subset E(\alpha ,\beta )\). \(\square \)

Using Lemmas 3.1 and 3.2, we can easily get that

$$\begin{aligned} \dim _{H}E(\alpha ,\beta )\ge \frac{H(\alpha )}{\log 2}, \end{aligned}$$

which completes the proof of Theorem 1.1.

3.2  \(0\le \alpha \le 1,~\beta =0~\text {and}+\,\infty \)

Bearing in mind the construction of \({\mathbb {C}}_{\infty }\), the proof for the remaining cases are similar to the proof in the case \(0\le \alpha \le 1,~0<\beta <+\,\infty \). We only need to modify the number of 1s in the construction of \(\{C_{n}\}_{n\ge 1}\) when \(\beta \) is allowed to be 0 or \(+\,\infty \).

Case\(0\le \alpha \le 1,~\beta =0\).

Similar to the definitions of \(\{N_{n}\}_{n\ge 1}\) and \(\{l_{n}\}_{n\ge 1}\) in the previous subsection, we define two sequences of integers \(\{N_{n}^{'}\}_{n\ge 1}\) as well as \(\{l_{n}^{'}\}_{n\ge 1}\) as follows:

$$\begin{aligned}&N_{n}^{'}=\left\{ \begin{array}{ll} \lfloor \frac{2^{n_{0}}-\lfloor \sqrt{n_{0}}\rfloor }{\lfloor \sqrt{n_{0}-1}\rfloor }\rfloor , &{}\quad n=1; \\ \\ \lfloor \frac{2^{n_{0}+n-2}-\lfloor \sqrt{(n_{0}+n-1)}\rfloor }{\lfloor \sqrt{n_{0}+n-2}\rfloor }\rfloor , &{}\quad n\ge 2. \end{array} \right. \\\\&l_{n}^{'}=\left\{ \begin{array}{ll} 2^{n_{0}}-N_{1}^{'}\lfloor \sqrt{n_{0}-1}\rfloor -\lfloor \sqrt{n_{0}}\rfloor , &{}\quad n=1; \\ \\ 2^{n_{0}+n-2}-N_{n}^{'}\lfloor \sqrt{n_{0}+n-2}\rfloor -\lfloor \sqrt{(n_{0}+n-1)}\rfloor , &{}\quad n\ge 2. \end{array} \right. \end{aligned}$$

Obviously, we have that \(0\le l_{n}^{'}<\lfloor \sqrt{n_{0}+n-2}\rfloor \) for any \(n\ge 1\).

Then we define

$$\begin{aligned} C_{n}&=\left\{ \omega _{1}\omega _{2}\ldots \omega _{N_{n}^{'}-1}\nu _{N_{n}^{'}}: \nu _{N_{n}^{'}}=\omega _{N_{n}^{'}}0^{l_{n}^{'}}1^{\lfloor \sqrt{n_{0}+n-1}\rfloor },\right. \\&\quad \left. \omega _{i}\in W_{\lfloor \sqrt{n_{0}+n-2}\rfloor }(\lfloor \alpha \sqrt{n_{0}+n-2}\rfloor ),~1\le i\le N_{n}\right\} , \end{aligned}$$

for any \(~n\ge 1\).

Case\(0\le \alpha \le 1,~\beta =+\,\infty \).

In this case, take an integer \(n_{0}\) large enough, and two sequences of integers \(\{N_{n}^{''}\}_{n\ge 1}\) and \(\{l_{n}^{''}\}_{n\ge 1}\) are defined as below:

$$\begin{aligned}&N_{n}^{''}=\left\{ \begin{array}{ll} \lfloor \frac{2^{n_{0}}-n_{0}^{2}}{\lfloor \sqrt{n_{0}-1}\rfloor }\rfloor , &{}\quad n=1; \\ \\ \lfloor \frac{2^{n_{0}+n-2}-n_{0}^{2}}{\lfloor \sqrt{n_{0}+n-2}\rfloor }\rfloor , &{}\quad n\ge 2. \end{array} \right. \\\\&l_{n}^{''}=\left\{ \begin{array}{ll} 2^{n_{0}}-N_{1}^{''}n_{0}^{2}-\lfloor \sqrt{n_{0}}\rfloor , &{}\quad n=1; \\ \\ 2^{n_{0}+n-2}-N_{n}^{''}\lfloor \sqrt{(n_{0}+n-2)}\rfloor -(n_{0}+n-1)^{2}, &{}\quad n\ge 2. \end{array} \right. \end{aligned}$$

Also, \(0\le l_{n}^{''}<\lfloor \sqrt{n_{0}+n-2}\rfloor \) for any \(n\ge 1\).

Define

$$\begin{aligned} C_{n}=\big \{\omega _{1}\omega _{2}\ldots \omega _{N_{n}^{''}-1}\nu _{N_{n}^{''}}:~&\nu _{N_{n}^{''}}=\omega _{N_{n}^{''}}0^{l_{n}^{''}}1^{(n_{0}+n-1)^{2}},\\&\omega _{i}\in W_{\lfloor \sqrt{n_{0}+n-2}\rfloor }\left( \lfloor \alpha \sqrt{n_{0}+n-2}\rfloor \right) ,~1\le i\le N_{n}^{''}\big \}, \end{aligned}$$

for any \(n\ge 1\).

In the two cases above, we construct the homogeneous Moran set

$$\begin{aligned} {\mathbb {C}}_{\infty }&=\big \{0.u_{1}u_{2}\ldots \in [0,1]:~u_{i}\in C_{i},~~\forall i\ge 1\big \}\\&=0.\prod \limits _{i=1}^{\infty }C_{i}. \end{aligned}$$

As we did in the Sect. 3.1, it is easy to check that Lemmas 3.1 and 3.2 still hold. So we can obtain that \(\dim _{H}E(\alpha ,\beta )\ge \frac{H(\alpha )}{\log 2}\) in all the above cases.