1 Preliminaries

Let \({\mathbb {N}}=\{1,2,3,4,\ldots \}\) and \({\mathbb {N}}_0=\{0,1,2,3,4,\ldots \}\) denote the sets of positive and non-negative integers, respectively.

An achievement set is a set of the form \(A(x_n)=\left\{ \sum _{n=1}^{\infty }\varepsilon _n x_n : (\varepsilon _n)\in \{0,\right. \left. 1\}^{\mathbb {N}}\right\} =\left\{ \sum _{n\in A} x_n : A\subset {\mathbb {N}}\right\} \), where \(\sum _{n=1}^{\infty } x_n\) is convergent series of positive reals. We additionally assume that \(x_n\ge x_{n+1}\) for every \(n\in {\mathbb {N}}\).

The first paper where achievement set was considered is that of Kakeya, see [12]. The author presented sufficient conditions for achievement set to be interval or Cantor set in terms of series terms \(x_n\) and the remainders \(r_n=\sum _{k>n}x_k\).

Theorem 1.1

(Kakeya).

  1. (1)

    \(A(x_n)\) is a closed interval if and only if \(x_n\le r_n\) for all n;

  2. (2)

    \(A(x_n)\) is homeomorphic to a Cantor set, if \(x_n>r_n\) for all \(n\in {\mathbb {N}}\).

The sequences \((x_n)\) which satisfy condition (1) are called interval-filling and were deeply studied in [6,7,8]. The interval-filling sequences \((x_n)\) are also known as slowly convergent, while the sequences satisfying condition (2) are called quickly or fast convergent.

Softened condition (1) ’\(x_n\le r_n\) for all but finitely many \(n\in {\mathbb {N}}\)’ is equivalent to that \(A(x_n)\) is a finite union of closed intervals. On the other hand, if \(x_n>r_n\) for every \(n>N\), then \(A(x_n)=\Sigma +A((x_n)_{n>N})\) where \(\Sigma =\{\sum _{n=1}^{N}\varepsilon _n x_n : (\varepsilon _n)\in \{0,1\}^N\}\). Since \(\Sigma \) is finite and \(A((x_n)_{n>N})\) is a Cantor set, then \(A(x_n)\) as a finite union of Cantor sets is a Cantor set as well.

Kakeya claimed that for an absolutely convergent series with infinitely many nonzero terms the set \(A(x_n)\) is either a finite union of closed intervals or a set homeomorphic to a Cantor set. Due to the Guthrie-Nymann characterization the achievement set is either a Cantor set or a finite union of intervals or a Cantorval.

Theorem 1.2

For an absolutely convergent series \(\sum _{n=1}^{\infty }x_n\) with infinitely many nonzero terms, the set \(A(x_n)\) is one of the following: a finite sum of closed intervals, homeomorphic to a Cantor set or a Cantorval, that is a set homeomorphic to \(A(y_n)\) for \(y_{2n-1}=\frac{3}{4^n}\) and \(y_{2n}=\frac{2}{4^n}\) for all \(n\in {\mathbb {N}}\).

It is known that a Cantorval is a nonempty compact set in \({\mathbb {R}}\) such that it is the closure of its interior and both endpoints of any nontrivial connected component are accumulation points of its trivial connected components. Another topological characterizations of Cantorvals can be found in [4, 13]. Theorem 1.2 was first stated in [11] but its correct proof was given in [14]. The set \(A(y_n)\) for \(y_{2n-1}=\frac{3}{4^n}\) and \(y_{2n}=\frac{2}{4^n}\) for all \(n\in {\mathbb {N}}\) is called the Guthrie-Nymann Cantorval. A multigeometric sequence is a sequence of the form \((x_n)=(a_1,a_2,\ldots ,a_m;q)=(a_1q,a_2q,\ldots ,a_mq,a_1q^2, a_2q^2,\ldots ,a_mq^2,a_1q^3,\ldots )\), where \(a_1\ge a_2\ge \cdots \ge a_m\) and \(a_1q\le a_m\) which ensure that \((x_n)\) is non-increasing. Using that notion, the Guthrie and Nymann’s Cantorval can be viewed as \(A(3,2;\frac{1}{4})\). The set \(\Sigma =A(a_1,\ldots ,a_m)= \left\{ \sum _{n=1}^{m}\varepsilon _na_n : (\varepsilon _n)\in \{0,\right. \left. 1\}^{m}\right\} \) will be of special interest to us. Then \(A(a_1,a_2,\ldots ,a_m;q)=\left\{ \sum _{n=1}^{\infty }y_nq^n\right. \left. : (y_n)\in \Sigma ^{{\mathbb {N}}}\right\} \). Multigeometric series were studied in [1, 3, 5].

To obtain Cantorval, both conditions \(x_n\le r_n\) and \(x_n>r_n\) must be fulfilled, each for infinitely many n’s. However, there are known series which fulfill both conditions but their achievement sets are Cantor sets. We ask if there are subsets E of \({\mathbb {N}}\) such that the condition \(x_n\le r_n \ \Leftrightarrow \ n\in E\) implies that \(A(x_n)\) is a Cantorval. Similarly, are there infinite subsets E of \({\mathbb {N}}\) such that the condition \(x_n\le r_n \ \Leftrightarrow \ n\in E\) implies that \(A(x_n)\) is a Cantor set? In the paper we present the negative answer for the first question (Theorem 2.1) and partially negative for the second one in the third section.

We will base on the following theorem proved in [5], which gives a simple sufficient condition for the achievement set to be a Cantorval.

Theorem 1.3

Let \(a_1\ge a_2\ge \cdots \ge a_m\) be positive integers. Assume that there exist positive integers \(n_0\) and r such that \(\Sigma \supset \{n_0,n_0+1,\ldots ,n_0+r\}\). If \(q\ge \frac{1}{r+1}\), then \(A(a_1,a_2,\ldots ,a_m;q)\) has a nonempty interior. If \(q<\frac{a_m}{\sum _{i=1}^{m}a_i+a_m}\), then \(A(a_1,a_2,\ldots ,a_m;q)\) is not a finite union of intervals. Consequently, if \(\frac{1}{r+1}\le q <\frac{a_m}{\sum _{i=1}^{m}a_i+a_m}\), then \(A(a_1,a_2,\ldots ,a_m;q)\) is a Cantorval.

It is worth to mention that the negative answer for Kakeya’s conjecture was obtained before Guthrie and Nymann’s paper. The first counterexample was given without proof by Weinstein and Shapiro in [16]. In [9] Ferens constructed a purely atomic finite measure \(\mu \) and proved that its range is a Cantorval. The theories of achievement sets and purely atomic finite measures coincide. Indeed, we may assume that \(\mu \) is defined on \({\mathbb {N}}\). Then \(\text {rng}(\mu )=\{\mu (A) : A\subset {\mathbb {N}}\}=A(x_n)\), where the terms of our series are the values of measure on singletons, that is \(x_n=\mu (\{n\})\) for all \(n\in {\mathbb {N}}\). Hence, we may say that Ferens observed that \(A(7,6,5,4,3;\frac{2}{27})\) is a Cantorval. In the paper we base on two simple properties of the achievement sets. First of them is connected with the equality \(A(\vert x_n\vert )=A(x_n)+\sum _{n=1}^{\infty }x_n^{-}\) (recall that \(x^{-}=-\min \{x,0\}\) for each real number x), which allows us to consider only the sequences with all terms positive. The second property is that for any absolutely convergent series \(\sum _{n=1}^{\infty }x_n\) and any bijection \(\sigma : {\mathbb {N}}\rightarrow {\mathbb {N}}\) the equality \(A(x_{\sigma (n)})=A(x_n)\) holds. This means that the achievement set is invariant to any rearrangement of its terms and hence we may assume that the sequence \((x_n)\) is non-increasing. It is also needed to introduce the Kakeya conditions.

The conditions in which we consider the inequalities between the terms \(x_n\) and the tails \(r_n\) are also known as Kakeya or Kakeya-like conditions. In [6, 7] the authors considered a subset \(U(x_n)\subset A(x_n)\) of those points which are obtained in a unique way. In other words, \(x\in U(x_n)\) if and only if there exists a unique set A or \(0-1\) sequence \((\varepsilon _n)\) such that \(x=\sum _{n\in A}^{\infty } x_n\) or \(x=\sum _{n=1}^{\infty }\varepsilon _n x_n\), respectively. Clearly, \(U(x_n)\supset \{0,\sum _{n=1}^{\infty }x_n\}\). The authors in [6, 7] proved that if an interval-filling sequence is a locker, that is \(x_k\le r_{k+1}\) for all k, then \(U(x_n)\) contains only the endpoints 0 and \(\sum _{n=1}^{\infty }x_n\).

On the other hand, if the pure Kakeya condition Theorem 1.1(2) holds, then \(U(x_n)=A(x_n)\), which can be found in [15]. Let us consider the case of \(U(x_n)=A(x_n)\). Then, the mapping

$$\begin{aligned} T:\{0,1\}^{{\mathbb {N}}}\ni (\varepsilon _n)\mapsto \sum _{n=1}^{\infty }\varepsilon _nx_n\in A(x_n). \end{aligned}$$

is bijective. T is also continuous with respect to the product topology on \(\{0,1\}^{{\mathbb {N}}}\) and natural topology on \({\mathbb {R}}\) as the series \(\sum _{n=1}^{\infty }x_n\) is absolutely convergent. The set \(\{0,1\}^{{\mathbb {N}}}\) equipped with the product topology is homeomorphic to a Cantor set . In particular, \(\{0,1\}^{{\mathbb {N}}}\) is a compact topological space. This means that T is a homeomorphism. Thus, if \(A(x_n)=U(x_n)\), then \(A(x_n)\) is homeomorphic to a Cantor set.

Although the condition Theorem 1.1(1) characterizes the case when \(A(x_n)\) is a finite union of closed intervals by Kakeya conditions, the implication in Theorem 1.1(2) can not be reversed. The authors showed in [10] that even the implication \((x_n)\) is fast convergent \(\Rightarrow \) \(U(x_n)=A(x_n)\) is far from reversal and constructed the sequence \((x_n)\) for which \(x_{2n-1}<r_{2n-1}\) for each \(n\in {\mathbb {N}}\) and \(U(x_n)=A(x_n)\). In the paper we improve their construction and show that the fast convergence condition may be broken in any non-cofinite set of indices, see Theorem 2.1. Note that by Theorem 1.1 (1) there are no such constructions for any cofinite set. There are several more results connected with the Kakeya conditions, in particular the three gaps lemmas, which can be found in [4].

From the Kakeya condition we see that if the series \(\sum _{n=1}^{\infty }x_n\) is ,,closer” to satisfy the fast convergence condition, then its achievement set \(A(x_n)\) is more likely to be a Cantor set. It is natural to ask if the form of achievement set \(A(x_n)\) is somehow connected with the largeness of the set \(\{n\in {\mathbb {N}}: x_n>r_n\}\). Probably the most common and popular function which describes the size of subsets of \({\mathbb {N}}\) is asymptotic density. Let us recall the notions of lower and upper asymptotic densities of subsets of \({\mathbb {N}}\):

$$\begin{aligned} {\underline{\delta }}(F)=&\liminf _{n\rightarrow \infty } \frac{\vert F\cap \{1,2,\ldots ,n\}\vert }{n} \quad \text{(lower } \text{ asymptotic } \text{ density) },\\ {\overline{\delta }}(F)=&\limsup _{n\rightarrow \infty } \frac{\vert F\cap \{1,2,\ldots ,n\}\vert }{n} \quad \text{(upper } \text{ asymptotic } \text{ density) }. \end{aligned}$$

If \({\underline{\delta }}(F)={\overline{\delta }}(F)\), then we define asymptotic density of F as the common value of lower and upper asymptotic density of F. The main purpose of the paper is to show that it is not possible to characterize or even give necessary either sufficient Kakeya-like condition for the form of \(A(x_n)\) by using the asymptotic density of the set \(\{n\in {\mathbb {N}}: x_n>r_n\}\). To avoid conflict of notations, in the whole paper we denote the terms of the series as \((x_n)\), \((y_n)\) or \((z_n)\). The sequences of tails for the series \(\sum _{n=1}^{\infty }x_n\), \(\sum _{n=1}^{\infty }y_n\) and \(\sum _{n=1}^{\infty }x_n\) are donted by \((r_n(\mathbf{x }))\), \((r_n(\mathbf{y }))\) and \((r_n(\mathbf{z }))\), respectively. However, if it is known what series we consider, its sequence of tails will be denoted by \((r_n)\) for simplification of notation.

2 Extreme Examples of Cantor Set as an Achievement Set

We will show that for each (arbitrarily large) not cofinite subset B of \({\mathbb {N}}\) one can construct a convergent series \(\sum _{n=1}^{\infty }x_n\) with positive terms such that the fast convergence condition with respect to this series fails exactly on B but the set \(A(x_n)\) is a Cantor set.

Theorem 2.1

Let \(C=\{n_1<n_2<n_3<\cdots \}\) be an infinite subset of \({\mathbb {N}}\). Then there exists a non-increasing sequence \((x_n)\) of positive real numbers such that the series \(\sum _{n=1}^{\infty }x_n\) is convergent, \(\{n\in {\mathbb {N}}: x_n>r_n\}=C\), \(\{n\in {\mathbb {N}}: x_n<r_n\}=C^c\) and \(A(x_n)=U(x_n)\). In particular, \(A(x_n)\) is a Cantor set.

Proof

Put \(n_{-1}=n_0=0\) and for each \(k\in {\mathbb {N}}_0\) define \(y_k=3^{-k}\cdot 2^{-n_{k-1}}\prod _{j=0}^k (n_{j+1}-n_j)^{-1}\). Then, for \(k\in {\mathbb {N}}_0\) and \(i\in \{1,\ldots ,n_{k+1}-n_k\}\) we define \(x_{n_k+i}=y_k+2^{-i}y_{k+1}\). In other words, if \(n_k<n\le n_{k+1}\), then \(x_n=y_k+2^{n_k-n}y_{k+1}\). It is clear, that for each \(k\in {\mathbb {N}}_0\) and \(i\in \{1,\ldots ,n_{k+1}-n_k-1\}\) we have \(x_{n_k+i}>x_{n_k+i+1}\). Let us check that for any \(k\in {\mathbb {N}}\) we have \(x_{n_k}>x_{n_k+1}\):

$$\begin{aligned} x_{n_k}&=x_{n_{k-1}+n_k-n_{k-1}}=y_{k-1}+2^{n_{k-1}-n_k}y_k=3^{-k+1}\cdot 2^{-n_{k-2}}\prod _{j=0}^{k-1}(n_{j+1}-n_j)^{-1}\\&\quad +3^{-k}\cdot 2^{-n_k}\prod _{j=0}^k(n_{j+1}-n_j)^{-1} > 3^{-k}\cdot 2^{-n_{k-1}}\prod _{j=0}^k(n_{j+1}-n_j)^{-1}\\&\quad +3^{-k-1}\cdot 2^{-n_k-1}\prod _{j=0}^{k+1}(n_{j+1}-n_j)^{-1}=y_k+2^{-1}y_{k+1}=x_{n_k+1}. \end{aligned}$$

We show that the series \(\sum _{n=1}^{\infty }x_n\) is convergent:

$$\begin{aligned} \sum _{n=1}^{\infty }x_n&=\sum _{k=0}^{\infty }\sum _{i=1}^{n_{k+1}-n_k}x_{n_k+i}=\sum _{k=0}^{\infty }\sum _{i=1}^{n_{k+1}-n_k}(y_k+2^{-i}y_{k+1})\\&<\sum _{k=0}^{\infty }[(n_{k+1}-n_k)y_k+y_{k+1}]\\&<\sum _{k=0}^{\infty }(3^{-k}+3^{-k-1}) =\frac{1+\frac{1}{3}}{1-\frac{1}{3}}=2. \end{aligned}$$

If \(k\in {\mathbb {N}}_0\) and \(i\in \{1,\ldots ,n_{k+1}-n_k-1\}\), then

$$\begin{aligned} x_{n_k+i}&=y_k+2^{-i}y_{k+1}<y_k+2^{-i-1}y_{k+1}+y_{k+1}+2^{-1}y_{k+2}\\&=x_{n_k+i+1}+x_{n_{k+1}+1}<r_{n_k+i}. \end{aligned}$$

Let us notice that for \(k\in {\mathbb {N}}_0\) we have

$$\begin{aligned} 2^{n_{k-1}-n_k}y_k>r_{n_{k+1}}+y_{k+1}. \end{aligned}$$
(1)

Indeed,

$$\begin{aligned}&r_{n_{k+1}}+y_{k+1}\\&\quad =\sum _{l=k+1}^{\infty }\sum _{i=1}^{n_{l+1}-n_l}(y_l+2^{-i}y_{l+1})+y_{k+1}<\sum _{l=k+1}^{\infty }[(n_{l+1}-n_l)y_l+y_{l+1}]+y_{k+1}\\&\quad = \sum _{l=k+1}^{\infty }(n_{l+1}-n_l+1)y_l\\&\quad =\sum _{l=k+1}^{\infty }\left[ (n_{l+1}-n_l+1)\cdot 3^{-l}\cdot 2^{-n_{l-1}}\prod _{j=0}^l(n_{j+1}-n_j)^{-1}\right] \\&\quad = 3^{-k}\cdot 2^{-n_{k}}\sum _{l=k+1}^{\infty }\left[ \left( 1+\frac{1}{n_{l+1}-n_l}\right) \cdot 3^{k-l}\cdot 2^{n_{k}-n_{l-1}}\prod _{j=0}^{l-1}(n_{j+1}-n_j)^{-1}\right] \\&\quad < 3^{-k}\cdot 2^{-n_k}\sum _{l=k+1}^{\infty }\left[ 2\cdot 3^{k-l}\prod _{j=0}^k(n_{j+1}-n_j)^{-1}\right] \\&\quad =2^{n_{k-1}-n_k}\cdot 3^{-k}\cdot 2^{-n_{k-1}}\prod _{j=0}^k(n_{j+1}-n_j)^{-1}\sum _{l=k+1}^{\infty } 2\cdot 3^{k-l}\\&\quad = 2^{n_{k-1}-n_k}y_k\cdot \frac{\frac{2}{3}}{1-\frac{1}{3}}=2^{n_{k-1}-n_k}y_k. \end{aligned}$$

In particular,

$$\begin{aligned} x_{n_{k}}&=x_{n_{k-1}+(n_k-n_{k-1})}=y_{k-1}+2^{n_{k-1}-n_k}y_k>y_{k-1}+y_{k+1}+r_{n_{k+1}}\\&= 3\cdot 2^{n_{k-1}-n_{k-2}}(n_{k+1}-n_k)y_k+y_{k+1}+r_{n_{k+1}}>\sum _{i=1}^{n_{k+1}-n_k}(y_k+2^{-i}y_{k+1})\\&\quad +r_{n_{k+1}}=\sum _{i=1}^{n_{k+1}-n_k}x_{n_k+i}+r_{n_{k+1}}=r_{n_k} \end{aligned}$$

for each \(k\in {\mathbb {N}}\), where the first inequality follows from (1). As a result, if \(n\in C\), then \(x_n>r_n\), and if \(n\in C^c\), then \(x_n<r_n\).

To the end of the proof it is enough to show that if \(F,G\subset {\mathbb {N}}\) and \(\sum _{n\in F}x_n=\sum _{n\in G}x_n\), then \(F=G\). Denote \(I_k=\{n_k+1,\ldots ,n_{k+1}\}\) for each \(k\in {\mathbb {N}}_0\). We will show by induction on k that \(F\cap I_k=G\cap I_k\). Assume that \(F\cap I_l=G\cap I_l\) for all \(l<k\). First, let us note that \(|F\cap I_k|=|G\cap I_k|\). Otherwise, we would have

$$\begin{aligned}&\left| \sum _{n\in F}x_n-\sum _{n\in G}x_n\right| =\left| \sum _{n\in F\cap I_k}y_k-\sum _{n\in G\cap I_k}y_k\right. \\&\qquad \left. +\sum _{n\in F\cap I_k}2^{n_k-n}y_{k+1}-\sum _{n\in G\cap I_k}2^{n_k-n}y_{k+1}\right. \\&\qquad \left. +\sum _{\begin{array}{c} n\in F\\ n>n_{k+1} \end{array}}x_n-\sum _{\begin{array}{c} n\in G\\ n>n_{k+1} \end{array}}x_n\right| \ge \left| \sum _{n\in F\cap I_k}y_k-\sum _{n\in G\cap I_k}y_k\right| \\&\qquad -\left| \sum _{n\in F\cap I_k}2^{n_k-n}y_{k+1}-\sum _{n\in G\cap I_k}2^{n_k-n}y_{k+1}\right| -\left| \sum _{\begin{array}{c} n\in F\\ n>n_{k+1} \end{array}}x_n-\sum _{\begin{array}{c} n\in G\\ n>n_{k+1} \end{array}}x_n\right| \\&\quad> y_k-y_{k+1}-r_{n_{k+1}}>0, \end{aligned}$$

where the last inequality follows form (1). Next, suppose that \(|F\cap I_k|=|G\cap I_k|\) but \(F\cap I_k\ne G\cap I_k\). Then \(\left| \sum _{n\in F\cap I_k}x_n-\sum _{n\in G\cap I_k}x_n\right| \in \left[ 2^{n_k-n_{k+1}}y_{k+1};2^{-1}\right. \left. y_{k+1}\right] \). If \(|F\cap I_{k+1}|\ne |G\cap I_{k+1}|\), then

$$\begin{aligned}&\left| \sum _{n\in F}x_n-\sum _{n\in G}x_n\right| =\left| \sum _{n\in F\cap I_k}x_n-\sum _{n\in G\cap I_k}x_n+\sum _{n\in F\cap I_{k+1}}y_{k+1}-\sum _{n\in G\cap I_{k+1}}y_{k+1}\right. \\&\qquad \left. +\sum _{n\in F\cap I_{k+1}}2^{n_{k+1}-n}y_{k+2}-\sum _{n\in G\cap I_{k+1}}2^{n_{k+1}-n}y_{k+2}+\sum _{\begin{array}{c} n\in F\\ n>n_{k+2} \end{array}}x_n-\sum _{\begin{array}{c} n\in G\\ n>n_{k+2} \end{array}}x_n\right| \\&\quad \ge \left| \sum _{n\in F\cap I_{k+1}}y_{k+1}-\sum _{n\in G\cap I_{k+1}}y_{k+1}\right| -\left| \sum _{n\in F\cap I_k}x_n-\sum _{n\in G\cap I_k}x_n\right| \\&\qquad -\left| \sum _{n\in F\cap I_{k+1}}2^{n_{k+1}-n}y_{k+2}-\sum _{n\in G\cap I_{k+1}}2^{n_{k+1}-n}y_{k+2}\right| \\&\qquad -\left| \sum _{\begin{array}{c} n\in F\\ n>n_{k+2} \end{array}}x_n-\sum _{\begin{array}{c} n\in G\\ n>n_{k+2} \end{array}}x_n\right|>y_{k+1}-2^{-1}y_{k+1}-y_{k+2}-r_{n_{k+2}}\\&\quad =2^{-1}y_{k+1}-y_{k+2}-r_{n_{k+2}}>0, \end{aligned}$$

where the last inequality follows form (1) applied for \(k+1\) inserted in the place of k. If \(|F\cap I_{k+1}|=|G\cap I_{k+1}|\), then

$$\begin{aligned}&\left| \sum _{n\in F}x_n-\sum _{n\in G}x_n\right| =\left| \sum _{n\in F\cap I_k}x_n-\sum _{n\in G\cap I_k}x_n+\sum _{n\in F\cap I_{k+1}}y_{k+1}-\sum _{n\in G\cap I_{k+1}}y_{k+1}\right. \\&\qquad \left. +\sum _{n\in F\cap I_{k+1}}2^{n_{k+1}-n}y_{k+2}-\sum _{n\in G\cap I_{k+1}}2^{n_{k+1}-n}y_{k+2}+\sum _{\begin{array}{c} n\in F\\ n>n_{k+2} \end{array}}x_n-\sum _{\begin{array}{c} n\in G\\ n>n_{k+2} \end{array}}x_n\right| \\&\quad \ge \left| \sum _{n\in F\cap I_k}x_n-\sum _{n\in G\cap I_k}x_n\right| -\left| \sum _{n\in F\cap I_{k+1}}2^{n_{k+1}-n}y_{k+2}-\sum _{n\in G\cap I_{k+1}}2^{n_{k+1}-n}y_{k+2}\right| \\&\qquad -\left| \sum _{\begin{array}{c} n\in F\\ n>n_{k+2} \end{array}}x_n-\sum _{\begin{array}{c} n\in G\\ n>n_{k+2} \end{array}}x_n\right| \\&\quad> 2^{n_k-n_{k+1}}y_{k+1}-y_{k+2}-r_{n_{k+2}}>0, \end{aligned}$$

where, once again, the last inequality follows form (1) applied for \(k+1\) inserted in the place of k. Finally, there must be \(F\cap I_k=G\cap I_k\) for each \(k\in {\mathbb {N}}_0\). As a result, \(F=\bigcup _{k=0}^{\infty }(F\cap I_k)=\bigcup _{k=0}^{\infty }(G\cap I_k)=G\). This means that every element of the set \(A(x_n)\) can be uniquely represented as a subsum of the series \(\sum _{n=1}^{\infty }x_n\). \(\square \)

Corollary 2.2

For each \(0\le \alpha \le \beta \le 1\) there exists a convergent series \(\sum _{n=1}^{\infty }x_n\) with positive terms such that \(A(x_n)=U(x_n)\) and the set \(\{n\in {\mathbb {N}}: x_n>r_n\}\) has lower asymptotic density equal to \(\alpha \) and upper one equal to \(\beta \).

3 Family of Cantorvals

To simplify the notation when we will write [ab] instead of \(\{a,a+1,a+2,\ldots ,b\}\).

Lemma 3.1

The following equality holds for all \(n,k\in {\mathbb {N}}\).

$$\begin{aligned} \Sigma _{n,k}:=A(\{2^p : p\in [1,n+k]\}\cup \{2^n+1\})=B_{n,k}\cup M_{n,k}\cup F_{n,k}, \end{aligned}$$

where \(B_{n,k}:=\{2p : p\in [0,2^{n-1}-1]\}\), \(M_{n,k}:=[2^n,2^{n+k+1}-1]\), \(F_{n,k}:=\{2p+1 :p\in [2^{n+k},2^{n+k}+2^{n-1}-1]\}\).

Proof

We first prove that the equality for \(\Sigma _{n,k}\) holds for any \(n\in {\mathbb {N}}\) and \(k=1\).

$$\begin{aligned}&A(\{2^p : p\in [1,n+1]\}\cup \{2^n+1\})\\&\quad =A(\{2^p : p\in [1,n+1]\})\cup \Big (\{2^n+1\}+A(\{2^p : p\in [1,n+1]\})\Big )\\&\quad = \{2p : p\in [0,2^{n+1}-1]\}\cup (\{2^n+1\}+\{2p : p\in [0,2^{n+1}-1]\}\\&\quad = \{0,2,4,\ldots ,2^n-2,2^n,2^n+2,\ldots ,2^{n+2}-4,2^{n+2}-2\}\\&\quad \cup \{2^n+1,2^n+3,\ldots ,2^{n+2}-3,2^{n+2}-1,2^{n+2}\\&\qquad +1,\ldots ,2^{n+2}+2^n-3,2^{n+2}+2^n-1\}\\&\quad = \{0,2,4,\ldots ,2^n-2,2^n,2^n+1,2^n+2,\ldots ,2^{n+2}-2,2^{n+2}\\&\qquad -1,2^{n+2}+1,\ldots ,2^{n+2}+2^n-3,2^{n+2}+2^n-1\}\\&\quad = \{0,2,4,\ldots ,2^n-2\}\cup \{2^n,2^n+1,2^n+2,\ldots ,2^{n+2}-2,2^{n+2}-1\}\\&\quad \cup \{2^{n+2}+1,\ldots ,2^{n+2}+2^n-3,2^{n+2}+2^n-1\}\\&\quad = B_{n,1}\cup M_{n,1}\cup F_{n,1} \end{aligned}$$

Now we assume that the assertion holds for some natural n and k. We will prove that it holds for n and \(k+1\) which will finish the inductive reasoning.

$$\begin{aligned}&A(\{2^p : p\in [1,n+k+1]\}\cup \{2^n+1\})\\&\quad = A(\{2^p : p\in [1,n+k]\}\cup \{2^n+1\})\cup \Big (\{2^{n+k+1}\}\\&\qquad +A(\{2^p : p\in [1,n+k]\}\cup \{2^n+1\})\Big )\\&\quad = \{0,2,\ldots ,2^n-2,2^n,2^n+1,\ldots ,2^{n+k+1}-2,2^{n+k+1}\\&\qquad -1,2^{n+k+1}+1,\ldots ,2^{n+k+1}+2^n-3,2^{n+k+1}+2^n-1\}\\&\quad \cup \{2^{n+k+1},\ldots ,2^{n+k+1}+2^n-2,2^{n+k+1}+2^n,2^{n+k+1}+2^n+1,\ldots ,\\&\qquad 2^{n+k+2}-2,2^{n+k+2}-1,2^{n+k+2}+1,\ldots ,\\&\qquad 2^{n+k+2}+2^n-3,2^{n+k+2}+2^n-1\}\\&\quad = \{0,2,\ldots ,2^n-2,2^n,2^n+1,\ldots ,2^{n+k+2}-2,2^{n+k+2}\\&\qquad -1,2^{n+k+2}+1,\ldots ,2^{n+k+2}+2^n-3,2^{n+k+2}+2^n-1\}\\&\quad = \{0,2,\ldots ,2^n-2\}\cup \{2^n,2^n+1,\ldots ,2^{n+k+2}-2,2^{n+k+2}-1\}\\&\quad \cup \{2^{n+k+2}+1,\ldots ,2^{n+k+2}+2^n-3,2^{n+k+2}+2^n-1\}\\&\quad = B_{n,k+1}\cup M_{n,k+1}\cup F_{n,k+1} \end{aligned}$$

\(\square \)

Theorem 3.2

For each \(\alpha \in (0,1)\cap {\mathbb {Q}}\) there exists a convergent series \(\sum _{i=1}^{\infty }x_i\) such that \(A(x_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: x_i>r_i\}\) has asymptotic density equal to \(\alpha \).

Proof

Fix \(n,k\in {\mathbb {N}}\). Let us define the sequence \((x_i)\) as the multigeometric sequence \((a_1,a_2,\ldots ,a_{n+k+1};q)\), that is \(x_{(n+k+1)j+p}=a_{p}q^j\) for all \(j\in {\mathbb {N}}_0\) and \(p\in [1,n+k+1]\), where \(\{a_1,a_2,\ldots ,a_{n+k+1}\}=\{2^p : p\in [1,n+k]\}\cup \{2^n+1\}\), that is \(a_j=2^{n+k+1-j}\) for \(j\in [1,k]\), \(a_{k+1}=2^n+1\), \(a_j=2^{n+k+2-j}\) for \(j\in [k+2,n+k+1]\). Then by Lemma 3.1 we have \(\Sigma =A(a_1,a_2,\ldots ,a_{n+k+1})=\Sigma _{n,k}\).

Hence, by Theorem 1.3 the achievement set \(A(a_1,a_2,\ldots ,a_{n+k+1};q)\) is a Cantorval for each \(q\in \left[ \frac{1}{2^{n+k+1}-2^n}, \frac{2}{2^{n+k+1}+2^n+1}\right) \). Clearly \(a_1>a_2>\cdots >a_{n+k+1}\) and \(a_{n+k+1}>a_1q\) for q in given interval. Thanks to that \((x_n)\) is non-increasing. Note that the role of the set \(\{n_0,n_0+1,\ldots ,n_0+r\}\) from Theorem 1.3 is played by the subset \(M_{n,k}\) of \(\Sigma _{n,k}\). A simple calculation shows that the interval \(\left[ \frac{1}{2^{n+k+1}-2^n}, \frac{2}{2^{n+k+1}+2^n+1}\right) \) is nonempty. The condition \(q\in \left[ \frac{1}{2^{n+k+1}-2^n}, \frac{2}{2^{n+k+1}+2^n+1}\right) \) means that

$$\begin{aligned}&\frac{1}{2^{n+k+1}+2^n-1}<\frac{1}{2^{n+k+1}-2^n-1}=\frac{\frac{1}{2^{n+k+1}-2^n}}{ 1-\frac{1}{2^{n+k+1}-2^n}}\le \frac{q}{1-q}\\&\quad < \frac{\frac{2}{2^{n+k+1}+2^n+1}}{ 1-\frac{2}{2^{n+k+1}+2^n+1}}=\frac{2}{2^{n+k+1}+2^n-1}. \end{aligned}$$

Note that

$$\begin{aligned} r_{n+k+1}=\sum _{m>n+k+1}x_m=\sum _{i=1}^{n+k+1}a_i\cdot \frac{q}{1-q} = (2^{n+k+2}+2^n-1)\cdot \frac{q}{1-q}. \end{aligned}$$

Hence we obtain that \(r_{n+k+1}\in (1,2)\). Fix \(p\in [k+2,k+3,\ldots ,n+k+1]\). Then,

$$\begin{aligned} \sum _{i=p}^{n+k+1}a_i=\sum _{i=p}^{n+k+1}2^{n+k+2-i}=2^{n+k+3-p}-2. \end{aligned}$$

Thus if \(p\ne k+2\), then

$$\begin{aligned} a_{p-1}-\sum _{i=p}^{n+k+1}a_i=2^{n+k+3-p}-(2^{n+k+3-p}-2)=2>r_{n+k+1} \end{aligned}$$

and also \(a_{n+k+1}=2>r_{n+k+1}\). Note that

$$\begin{aligned} r_{k+1}=r_{n+k+1}+\sum _{i=k+2}^{n+k+1}a_i>1+(2^{n+1}-2)\ge 2^n+1=a_{k+1} \end{aligned}$$

Moreover \(\sum _{i=k+1}^{n+k+1}a_i=\sum _{i=k+2}^{n+k+1}(2^{n+k+2-i})+2^{n}+1=2^{n+1}+2^n-1\). Now let \(p\in [1,k]\). We have

$$\begin{aligned}&\sum _{i=p}^{n+k+1}a_i=\sum _{i=k+1}^{n+k+1}a_i+\sum _{i=p}^{k}a_i=2^{n+1}+2^n-1+\sum _{i=p}^{k}2^{n+k+1-i}\\&\quad =2^{n+1}+2^n-1+2^{n+k+2-p}-2^{n+1}=2^{n+k+2-p}+2^n-1 \end{aligned}$$

which means that for all \(p\in [1,k]\) we have

$$\begin{aligned} r_{p}=\sum _{i=p+1}^{n+k+1}a_i+r_{n+k+1}>2^{n+k+1-p}+2^n>2^{n+k+1-p}=a_{p} \end{aligned}$$

We proved that \(\{p\in [1,n+k+1] : a_p>r_p\}=[k+2,n+k+1]\). Since we consider the multigeometric sequence \((a_1,a_2,\ldots ,a_{n+k+1};q)\) the following two inequalities are equivalent for all \(w\in {\mathbb {N}}\) and \(p\in [1,n+k+1]\):

$$\begin{aligned} a_{(n+k+1)w+p}>r_{(n+k+1)w+p} \ \Leftrightarrow a_{p}>r_{p} \end{aligned}$$

because \(a_{(n+k+1)w+p}=a_p\cdot q^w\) and \(r_{(n+k+1)w+p}=r_p\cdot q^w\) Then \(\{i\in {\mathbb {N}} : x_i>r_i\}=\{a(n+k+1)+j : a\in {\mathbb {N}}_0, j\in [k+2,n+k+1]\}\), which has asymptotic density \(\frac{n}{n+k+1}\). The equality \(\left\{ \frac{n}{n+k+1} : n,k\in {\mathbb {N}}\right\} =(0,1)\cap {\mathbb {Q}}\) is clear. \(\square \)

In order to prove the generalization of the thesis contained in Theorem 3.2 for irrational densities we construct less regular sequences. The idea stays behind the problem of recovering the sequence \((x_i)\) from its achievement set \(A(x_i)\). More precisely, it may happen that \(A(x_i)=A(y_i)\) for different sequences \((x_i)\) and \((y_i)\) although \(A(x_i)\) is obtained as an achievement set uniquely. This problem was deeply studied in [2]. However, we use only a simple observation that \(A(2^n,2^{n-1},\ldots ,2)=A(\underbrace{2,\ldots ,2}_{2^{n}-1 - \text {times}})\).

Remark 3.3

Fix \(n,k\in {\mathbb {N}}\). Let us define the sequence \((y_i)\) as the multigeometric sequence \((b_1,b_2,\ldots ,b_{2^n+k};q)\), where \(b_j=2^{n+k+1-j}\) for \(j\in [1,k]\), \(b_{k+1}=2^n+1\), \(b_j=2\) for \(j\in [k+2,2^n+k]\). Hence, \(\Sigma =A(b_1,b_2,\ldots ,b_{2^n+k})=\Sigma _{n,k}\), so the achievement set \(A(b_1,b_2,\ldots ,b_{2^n+k};q)\) is equal to its counterpart \(A(a_1,a_2,\ldots ,a_{n+k+1};q)\) constructed in Lemma 3.1. The crucial observation is that for the sequence \((y_i)\) the fast convergence condition is satisfied on much thinner set. Indeed, at first, in a very similar reasoning to that in Theorem 3.2 we obtain that \(r_{2^n+k}\in (1,2)\). Then clearly \(b_{2^n+k}=2>r_{2^n+k}\). Furthermore by dividing the subsequence \(a_{k+2},a_{k+3},\ldots ,a_{n+k+1}\) into constant pieces \(b_{k+2},b_{k+3},\ldots ,b_{2^n+k}\) each equal to 2 we break the quick convergence condition obtained on the considered indices without changing the achievement set, that is

$$\begin{aligned} A(a_{k+2},a_{k+3},\ldots ,a_{n+k+1})=A(b_{k+2},b_{k+3},\ldots ,b_{2^n+k})= \{0,2,\ldots ,2^{n+1}-2\} \end{aligned}$$

By the same idea as in Theorem 3.2 of shifting computations to the latter indices for multigeometric sequence, we finally get \(\{i\in {\mathbb {N}} : y_i>r_i\}=\{a(2^n+k) : a\in {\mathbb {N}}\}\), which has asymptotic density \(\frac{1}{2^n+k}\).

By a segment in a multigeometric sequence \((a_1,a_2,\ldots ,a_{m};q)\) we understand the sequence of all the consequitive terms, which are multiplied by the same power of q, that is \((a_1q,a_2q,\ldots ,a_{m}q)\) is the first segment, \((a_1q^2,a_2q^2,\ldots , a_{m}q^2)\) is the second segment and so on. In the next construction we define the sequence \((z_i)\) segment by segment in the way that each segment is a segment of a multigeometric sequence \((x_i)\) as in the family considered in Theorem 3.2 either its counterpart \((y_i)\) defined in Remark 3.3. Hence, the achievement set \(A(z_i)\) will be equal to both \(A(x_i)\) and \(A(y_i)\). The amounts of both type of segments will depend on the irrational asymptotic density we want to obtain for the set \(\{i\in {\mathbb {N}} : z_i>r_i\}\). We will use the following simple result connected with the mediant of two fractions. We give it without proof, since it is basic.

Lemma 3.4

Let \(c_1,c_2,d_1,d_2\) be natural numbers such that \(\frac{c_1}{d_1}<\frac{c_2}{d_2}\). Then the function \(f : [0,1]\rightarrow {\mathbb {R}}\) defined as \(f(a)=\frac{ac_2+(1-a)c_1}{ad_2+(1-a)d_1}\) is continuous and strictly increasing. In particular the range of f is equal to \(\left[ \frac{c_1}{d_1},\frac{c_2}{d_2}\right] \).

The value \(f\left( \frac{1}{2}\right) \) is also known as the mediant of the fractions \(\frac{c_1}{d_1}\) and \(\frac{c_2}{d_2}\).

Theorem 3.5

For each \(\alpha \in (0,1)\) there exists a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has asymptotic density equal to \(\alpha \).

Proof

Fix \(\alpha \in (0,1)\). Let n be any large enough positive integer such that \(\alpha \in \left( \frac{1}{2^n+1},\frac{n}{n+2}\right) \). Fix any \(q\in \left[ \frac{1}{2^{n+2}-2^n}, \frac{2}{2^{n+2}+2^n+1}\right) \) Define \((x_i)=(a_1,a_2,\ldots , a_{n+2};q)\), where \(a_1=2^{n+1}\), \(a_{2}=2^n+1\), \(a_j=2^{n+3-j}\) for \(j\in [3,n+2]\) and \((y_i)= (b_1,b_2,\ldots ,b_{2^n+1};q)\), where \(b_1=2^{n+1}\), \(b_{2}=2^n+1\) and \(b_j=2\) for \(j\in [3,2^n+1]\).

We construct \((z_i)\) in such a way that the consequitive segments of \((z_i)\) are taken as the segments of \((x_i)\) either \((y_i)\).

Note that if we define first \(c+d\) segments of \((z_i)\) by taking c and d segments of \((x_i)\) and \((y_i)\), respectively, then we define \(c(n+2)+d(2^n+1)\) elements. It also means that \(\vert \{ i\in [1,c(n+2)+d(2^n+1)]: z_i>r_i\}\vert =cn+d\). By Lemma 3.4 there exists a unique \(a\in (0,1)\) such that \(\frac{an+(1-a)}{a(n+2)+(1-a)(2^n+1)}=\alpha \). The value a can be interpreted as the frequency of segments taken from \((x_i)\) in all the segments of the construction of \((z_i)\). If \(a\in {\mathbb {Q}}\), \(a=\frac{u}{w}\), then in the construction of \((z_i)\) we take u segments from \((x_i)\) and then \(w-u\) segments from \((y_i)\) and continue in this way. Let us consider the case when \(a\in (0,1){\setminus }{\mathbb {Q}}\). Then \(a=\sum _{m=1}^{\infty }\frac{\delta _m}{10^m}\) for some \((\delta _m)\in \{0,1,\ldots ,9\}^{{\mathbb {N}}}\), which is a decimal expansion of \(a=0,\delta _1\delta _2\ldots \). We consider \(a_p=\sum _{m=1}^{p}\frac{\delta _m}{10^m}\), which is a lower rational approximation of a to the p-th place after comma, obtained by a simple cut off the expansion in the next places.

We construct \((z_i)\) by taking care about two things. First of them is to cover the proper amounts:

  • In the first 10 segments of \((z_i)\) we take exactly \(\delta _1\) segments from \((x_i)\) and \(10-\delta _1\) segments from \((y_i)\).

  • We add the segments in the way in the first 100 segments of \((z_i)\) there should be exactly \(10\delta _1+\delta _2\) segments from \((x_i)\) and \(100-10\delta _1-\delta _2\) segments from \((y_i)\).

  • We continue inductively and obtain that for each \(t\in {\mathbb {N}}\) the first \(10^t\) segments of \((z_i)\) contain exactly \(\sum _{j=1}^t \delta _j 10^{t-j}\) segments from \((x_i)\) and the remaining ones are from \((y_i)\).

The second condition is the order of segments:

When we define the k-th segment, \(k\in [1,10]\) for \(t=1\) either \(k\in [10^{t-1}+1,10^t]\) for some \(t\in {\mathbb {N}}\), \(t\ge 2\), then we consider the ratio \(\beta _{k-1}\) of number of segments \((x_i)\) contained in the first \(k-1\) segments of \((z_i)\) to \(k-1\). We also put \(\beta _0=0\). If \(\beta _{k-1}\le \sum _{m=1}^{t}\frac{\delta _m}{10^m}\), then as the k-th segment we take (if we can) the k-th segment of \((x_i)\), otherwise we take the k-th segment of \((y_i)\). The ,,if we can” part is connected with the situation, when a is such small that \(\delta _m=0\) for all \(m\le t\). Then, by the first condition of construction, all of first \(10^t\) segments of \((z_i)\) are taken from \((y_i)\).

From the construction we obtain that for each t the cardinality of the set \(\{i\in [1,\sum _{j=1}^t \delta _j 10^{t-j}(n+2) + (10^t-\sum _{j=1}^t \delta _j 10^{t-j})(2^n+1)] : z_i>r_i\}\) equals \(n\sum _{j=1}^t \delta _j 10^{t-j}+10^t-\sum _{j=1}^t \delta _j 10^{t-j}\). Note that \(\frac{n\sum _{j=1}^t \delta _j 10^{t-j}+10^t-\sum _{j=1}^t \delta _j 10^{t-j}}{\sum _{j=1}^t \delta _j 10^{t-j}(n+2) + (10^t-\sum _{j=1}^t \delta _j 10^{t-j})(2^n+1)}\) tends to \(\alpha \) as t tends to \(\infty \). The second condition of the construction guarantees alternating-like convergence of \(\beta _k\) to a. Clearly, \(\beta _{10^t}=\sum _{m=1}^{t}\frac{\delta _m}{10^m}\) for each \(t\in {\mathbb {N}}\). Assume that \(t\ge \min \{t_0 :\delta _{t_0}\ne 0\}\). Since \(\sum _{m=1}^{t}\frac{\delta _m}{10^m}\le \sum _{m=1}^{t+1}\frac{\delta _m}{10^m}\) by the second rule of the construction, as the \(10^t+1\)-th segment we always take \((x_i)\).

We take segments of \((x_i)\) until \((\beta _k)\) exceeds the value of \(\beta _{10^{t+1}}\). Then, we continue with taking \((y_i)\) to the moment we get values of \((\beta _k)\) not greater than \(\beta _{10^{t+1}}\) and so on. Since the number of the defined elements tends to infinity, the affection to the ratio \((\beta _k)\) by the consequitve \(n+2\) either \(2^n+1\) elements is not significant and tends to zero.

For the constructed series \(\sum _{i=1}^{\infty }z_i\) we have that \(A(z_i)=A(x_i)=A(y_i)\), so it is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has asymptotic density equal to \(\alpha \). \(\square \)

Remark 3.6

Note that if \(\delta _m=9\) for \(m\le t+1\), then all of the segments between \(10^t+1\) and \(10^{t+1}\) will be taken from \((x_i)\). However, it does not affect the convergence of \((\beta _k)\), because the sequence is increasing in that indices. Unfortunately, we are not able to use the similar method of construction to obtain a Cantorval for which the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has asymptotic density equal to 1. The proof breaks on the beginning, when we are looking for n such that \(\frac{n}{n+2}\) is greater than the considered density.

Theorem 3.7

For each \(0<\alpha \le \beta <1\) there exists a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has lower asymptotic density equal to \(\alpha \) and upper asymptotic density equal to \(\beta \).

Proof

The case \(\alpha =\beta \) has been already proved in Theorem 3.5. Let n be any large enough positive integer such that \(\frac{1}{2^n+1}<\alpha<\beta <\frac{n}{n+2}\). The sequences \((x_i)\), \((y_i)\) and the value of q are defined in the same way as in Theorem 3.5. We define \((z_i)\) by using the segments of \((x_i)\) either \((y_i)\) in the following way:

  • The first segment is a segment of \((x_i)\).

  • Then, we add the least number of segments \((y_i)\) as is needed to obtain the fast convergence condition on less than \(\alpha \) of the defined terms since the beginning of the construction. The sequence of all the defined terms in this step will be also called as a block of segments of \((y_i)\).

  • After that we take the least number of segments \((x_i)\) that we need to get the fast convergence condition on more then \(\beta \) of the defined terms since the beginning of the construction, that is a block of segments of \((x_i)\).

  • We continue inductively.

Let \(u_j\) be the number of all defined terms of \((z_i)\) after taking j first blocks of segments of \((y_i)\) and \(j-1\) first blocks of segments of and \((x_i)\), respectively. Similarly, let \(w_j\) be the number of all defined terms of \((z_i)\) after taking j first blocks of segments of \((y_i)\) and j first blocks of segments of and \((x_i)\), respectively. Clearly, \(\lim \nolimits _{j\rightarrow \infty }\frac{\vert \{i\in [1,u_j]: z_i>r_i\}\vert }{u_j}=\alpha \) and \(\lim \nolimits _{j\rightarrow \infty }\frac{\vert \{i\in [1,w_j]: z_i>r_i\}\vert }{w_j}=\beta \). From the construction we see that \(\alpha \) and \(\beta \) are lower and upper asymptotic density of the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\), respectively. \(\square \)

Remark 3.8

The proof of Theorem 3.5 can be rewritten to use the more similar method to the way of construction in Theorem 3.7. Namely, instead of comparing the sequence \((\beta _k)\) with consequtive \(a_p\)’s, we may immediately use the value of a. It causes many advantages like simplifying the proof, since the notion of \((\delta _m)\) is not needed. Hence, we never change the value with which we compare the terms of \((\beta _k)\) with. The convergence of \((\beta _k)\) to a is also faster then. Another change is in a slight increase of the chosen segments from \((x_i)\) in the beginning of the construction. However, comparing to the irrational value of a may lose the intuition in the sense we only know that the frequency \((\beta _k)\) of taking segments from \((x_i)\) oscilates close to a. It is impossible to predict the terms of \((\beta _k)\) accurately without calculating the previous terms. In the original proof of Theorem 3.5 we know what we obtain for \(\beta _{10^t}\) for each \(t\in {\mathbb {N}}\) on the spot what determines the amount of taken segments from each type.

Theorem 3.9

There exists a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has asymptotic density equal to 0.

Proof

Let \(GN=A(x_i)=A(3,2;\frac{1}{4})\) be the Guthrie and Nymann’s Cantorval. We consider its superset \(A(y_i)=A(1,1,1,1,1;\frac{1}{4})=[0,\frac{5}{3}]\). We construct a sequence \((z_i)\) again by taking segments from \((x_i)\) either \((y_i)\). In the first step we take 5 segments from \((x_i)\) and after that 18 segments from \((y_i)\). For each \(k\ge 2\), \(k\in {\mathbb {N}}\), in the k-th step we define 5 segments from \((x_i)\) and then \(18\cdot 10^{k-1}-2\) segments from \((y_i)\). It means that in the first step we define 100 terms and in the k-th step for \(k\ge 2\) we define exactly \(9\cdot 10^{k}\) consequitive elements of \((z_i)\). Hence for any \(k\in {\mathbb {N}}\) in all of the first k-th steps we define \(10^{k+1}\) terms of \((z_i)\). Note that by the construction we obtain that \(\{i\in {\mathbb {N}}: z_i>r_i\}=\{2,4,6,8,10\}\cup \{10^{k+1}+j : k\in {\mathbb {N}}, j\in \{2,4,6,8,10\}\}\). Clearly

$$\begin{aligned}&\!\!\!\limsup \limits _{n\rightarrow \infty }\frac{\vert \{i\in \{1,\ldots ,n\}: z_i>r_i\}\vert }{n}=\lim \limits _{n\rightarrow \infty }\frac{\vert \{i\in \{1,\ldots ,10^{n+1}+10\}: z_i>r_i\}\vert }{10^{n+1}+10}\\&\quad =\lim \limits _{n\rightarrow \infty }\frac{5n+5}{10^{n+1}+10}=0 \end{aligned}$$

Thus the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has asymptotic density equal to 0. Since the fast convergence condition is satisfied on infinite set of indices, by Theorem 1.1(1) we know that \(A(z_i)\) is not a finite union of closed intervals. However \(A(z_i)\supset GN\), which means that \(A(z_i)\) is a Cantorval. \(\square \)

By combining the method used in Theorem 3.7 and construction similar to that one in Theorem 3.9 we obtain the following.

Theorem 3.10

For each \(0\le \beta <1\) there exists a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i(\mathbf{z })\}\) has lower asymptotic density equal to 0 and upper asymptotic density equal to \(\beta \).

Proof

It is enough to combine \((z_i)\) from the segments belonging to the sequences \((x_i)\) and \((y_i)\) for which fast convergence condition is satisfied on the set with asymptotic density 0 and \(\beta \), respectively. To be more precise, we take any sequence \((y_i)\) such that the series \(\sum _{i=1}^{\infty }y_i\) is convergent, the set \(A(y_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: y_i>r_i(\mathbf{y })\}\) has asymptotic density equal to \(\beta \) (such a sequence exists by virtue of Theorem 3.5). Then, we define \((x_i)=(\underset{k\text { times}}{\underbrace{1,\ldots ,1}};q)\), where q is as in the construction of \((y_i)\) and \(k\ge \frac{1}{q}\) is so large that \(A(x_i)=\left[ 0,\frac{kq}{1-q}\right] \) is a superset of \(A(y_i)\). Of course, the fast convergence condition is never satisfied in the case of the sequence \((x_i)\).

In the \(2k-1\)-st step, \(k\in {\mathbb {N}}\), we define the least number of segments from \((y_i)\) to obtain the fast convergence condition on more than \(\beta -\frac{1}{k}\) of all defined indices.

In the 2k-th step, \(k\in {\mathbb {N}}\), we define the least number of segments from \((x_i)\) to obtain the fast convergence condition on less than \(\frac{1}{k}\) of all defined indices.

\(\square \)

In the end of this section we gather our results in the following corollary.

Corollary 3.11

For each \(0\le \alpha \le \beta <1\) there exists a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has lower asymptotic density equal to \(\alpha \) and upper asymptotic density equal to \(\beta \).

4 Examples

In this chapter we present numerical examples of Theorems 3.23.53.7. We start with the simplest consequences of Theorem 3.2.

Example 4.1

The set A(4, 3, 2; q) is a Cantorval for each \(q\in \left[ \frac{1}{6},\frac{2}{11}\right) \). The fast convergence condition is satisfied on \(3{\mathbb {N}}\) with density \(\frac{1}{3}\).

Example 4.2

The set A(32, 17, 16, 8, 4, 2; q) is a Cantorval for each \(q\in \left[ \frac{1}{48},\frac{2}{81}\right) \). The fast convergence condition is satisfied on \((6{\mathbb {N}}-3)\cup (6{\mathbb {N}}-2)\cup (6{\mathbb {N}}-1)\cup (6{\mathbb {N}})\) with density \(\frac{2}{3}\).

Now we present the calculations for the first segments of the series for which the fast convergence condition is satisfied on the set with irrational density, see Theorem 3.5.

Example 4.3

We show how to define the beginning segments of a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has an asymptotic density equal to \(\alpha =\frac{\pi }{10}=0.314159\ldots \).

For \(n=2\) we have \(\frac{1}{2^n+1}=0.2<\alpha <0.5=\frac{n}{n+2}\). Thus we will take the segments to construct \((z_i)\) from the multigeometric sequence \((x_i)=(8,5,4,2;q)\) either \((y_i)=(8,5,2,2,2;q)\). We also fix q as any number from the interval \(\left[ \frac{1}{12},\frac{2}{21}\right) \).

The equality \(\frac{an+(1-a)}{a(n+2)+(1-a)(2^n+1)}=\alpha \) has a solution \(a=0.434\ldots \). Hence for the first group of segments the choice between \((x_i)\) and \((y_i)\) is determined by \(\beta _{10}=0.4\).

No. of segment k

Defined type

Defined terms

\(\beta _{k}\)

\(\frac{\text {Number of terms with fast conv. cond.}}{\text {Number of all defined terms}}\)

1

\((x_i)\)

8q, 5q , 4q, 2q

1

\(\frac{2}{4}=0.5\)

2

\((y_i)\)

\(8q^2\), \(5q^2\), \(2q^2\), \(2q^2\), \(2q^2\)

\(\frac{1}{2}=0.5\)

\(\frac{3}{9}\approx 0.33\)

3

\((y_i)\)

\(8q^3\), \(5q^3\), \(2q^3\), \(2q^3\), \(2q^3\)

\(\frac{1}{3}\approx 0.33\)

\(\frac{4}{14}\approx 0.29\)

4

\((x_i)\)

\(8q^4\), \(5q^4\), \(4q^4\), \(2q^4\)

\(\frac{2}{4}=0.5\)

\(\frac{6}{18}\approx 0.33\)

5

\((y_i)\)

\(8q^5\), \(5q^5\), \(2q^5\), \(2q^5\), \(2q^5\)

\(\frac{2}{5}=0.4\)

\(\frac{7}{23}\approx 0.304\)

6

\((x_i)\)

\(8q^6\), \(5q^6\), \(4q^6\), \(2q^6\)

\(\frac{3}{6}=0.5\)

\(\frac{9}{27}\approx 0.33\)

7

\((y_i)\)

\(8q^7\), \(5q^7\), \(2q^7\), \(2q^7\), \(2q^7\)

\(\frac{3}{7}\approx 0.428\)

\(\frac{10}{32}\approx 0.3125\)

8

\((y_i)\)

\(8q^8\), \(5q^8\), \(2q^8\), \(2q^8\), \(2q^8\)

\(\frac{3}{8}=0.375\)

\(\frac{11}{37}\approx 0.297\)

9

\((x_i)\)

\(8q^9\), \(5q^9\), \(4q^9\), \(2q^9\)

\(\frac{4}{9}\approx 0.44\)

\(\frac{13}{41}\approx 0.317\)

10

\((y_i)\)

\(8q^{10}\), \(5q^{10}\), \(2q^{10}\), \(2q^{10}\), \(2q^{10}\)

\(\frac{4}{10}=0.4\)

\(\frac{14}{46}\approx 0.304\)

Now we define the second group of segments. Here we compare the terms \(\beta _{k-1}\) with the value \(\beta _{100}=0.43\).

No. of segment k

Defined type

Defined terms

\(\beta _{k}\)

\(\frac{\text {Number of terms with fast conv. cond.}}{\text {Number of all defined terms}}\)

11

\((x_i)\)

\(8q^{11}\), \(5q^{11}\) , \(4q^{11}\), \(2q^{11}\)

\(\frac{5}{11}\approx 0.45\)

\(\frac{16}{50}=0.32\)

12

\((y_i)\)

\(8q^{12}\), \(5q^{12}\), \(2q^{12}\), \(2q^{12}\), \(2q^{12}\)

\(\frac{5}{12}\approx 0.42\)

\(\frac{17}{55}\approx 0.309\)

13

\((x_i)\)

\(8q^{13}\), \(5q^{13}\), \(4q^{13}\), \(2q^{13}\)

\(\frac{6}{13}\approx 0.46\)

\(\frac{19}{59}\approx 0.322\)

14

\((y_i)\)

\(8q^{14}\), \(5q^{14}\), \(2q^{14}\), \(2q^{14}\), \(2q^{14}\)

\(\frac{6}{14}\approx 0.429\)

\(\frac{20}{64}\approx 0.3125\)

15

\((x_i)\)

\(8q^{15}\), \(5q^{15}\), \(4q^{15}\), \(2q^{15}\)

\(\frac{7}{15}\approx 0.47\)

\(\frac{22}{68}\approx 0.324\)

16

\((y_i)\)

\(8q^{16}\), \(5q^{16}\), \(2q^{16}\), \(2q^{16}\), \(2q^{16}\)

\(\frac{7}{16}\approx 0.438\)

\(\frac{23}{73}\approx 0.315\)

17

\((y_i)\)

\(8q^{17}\), \(5q^{17}\), \(2q^{17}\), \(2q^{17}\), \(2q^{17}\)

\(\frac{7}{17}\approx 0.41\)

\(\frac{24}{78}\approx 0.308\)

18

\((x_i)\)

\(8q^{18}\), \(5q^{18}\), \(4q^{18}\), \(2q^{18}\)

\(\frac{8}{18}\approx 0.44\)

\(\frac{26}{82}\approx 0.317\)

\(\vdots \)

\(\vdots \)

\(\vdots \)

\(\vdots \)

\(\vdots \)

100

\(\ldots \)

\(\ldots \)

\(\frac{43}{100}=0.43\)

\(\frac{143}{457}\approx 0.31291\)

In the third group we consider \(\beta _{1000}=0.434\).

No. of segment k

Defined type

Defined terms

\(\beta _{k}\)

\(\frac{\text {Number of terms with fast conv. cond.}}{\text {Number of all defined terms}}\)

\(\vdots \)

\(\vdots \)

\(\vdots \)

\(\vdots \)

\(\vdots \)

1000

\(\ldots \)

\(\ldots \)

\(\frac{434}{1000}=0.434\)

\(\frac{1434}{4566}\approx 0.31406\)

and so on. By the construction \(A(z_i)=A(x_i)=A(y_i)\) is a Cantorval.

Remark 4.4

Let us consider again Example 4.3. Due to Remark 3.8 in the modified method the first change appears in the eight segment. Since \(\beta _7<a\) the segment in the eight step is taken from \((x_i)\). It may also affect the segments defined in the next steps.

In the next Example we show how to construct a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has a given lower and upper assymptotic densities as in the Theorem 3.7.

Example 4.5

We define a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has a lower asymptotic density equal to \(\alpha =0.15\) and upper asymptotic density equal to \(\beta =0.55\).

For \(n=3\) we have \(\frac{1}{2^n+1}<\alpha<\beta <\frac{n}{n+2}\). Thus we will take the segments to construct \((z_i)\) from the multigeometric sequence \((x_i)=(16,9,8,4,2;q)\) either \((y_i)=(16,9,2,2,2,2,2,2,2;q)\). We also fix q as any number from the interval \(\left[ \frac{1}{24},\frac{2}{41}\right) \).

No. of segment k

Defined type

Defined terms

\(\frac{\text {Number of terms with fast conv. cond.}}{\text {Number of all defined terms}}\)

1

\((x_i)\)

16q 9q, 8q , 4q, 2q

\(\frac{3}{5}=0.6\)

2

\((y_i)\)

\(16q^2\), \(9q^2\), \(2q^2\), ..., \(2q^2\)

\(\frac{4}{14}\approx 0.29\)

3

\((y_i)\)

\(16q^3\), \(9q^3\), \(2q^3\), ..., \(2q^3\)

\(\frac{5}{23}\approx 0.22\)

4

\((y_i)\)

\(16q^4\), \(9q^4\), \(2q^4\), ..., \(2q^4\)

\(\frac{6}{32}\approx 0.19\)

5

\((y_i)\)

\(16q^5\), \(9q^5\), \(2q^5\), ..., \(2q^5\)

\(\frac{7}{41}\approx 0.17\)

6

\((y_i)\)

\(16q^6\), \(9q^6\), \(2q^6\), ..., \(2q^6\)

\(\frac{8}{50}= 0.16\)

7

\((y_i)\)

\(16q^7\), \(9q^7\), \(2q^7\), ..., \(2q^7\)

\(\frac{9}{59}\approx 0.153\)

8

\((y_i)\)

\(16q^8\), \(9q^8\), \(2q^8\), ..., \(2q^8\)

\(\frac{10}{68}\approx 0.147\)

9

\((x_i)\)

\(16q^9\), \(9q^9\), \(8q^9\), \(4q^9\), \(2q^9\)

\(\frac{13}{73}\approx 0.178\)

\(\vdots \)

\(\vdots \)

\(\vdots \)

\(\vdots \)

117

\((x_i)\)

\(16q^{117}\), \(9q^{117}\), \(8q^{117}\), \(4q^{117}\), \(2q^{117}\)

\(\frac{337}{613}\approx 0.5498\)

118

\((x_i)\)

\(16q^{118}\), \(9q^{118}\), \(8q^{118}\), \(4q^{118}\), \(2q^{118}\)

\(\frac{340}{618}\approx 0.5502\)

119

\((y_i)\)

\(16q^{119}\), \(9q^{119}\), \(2q^{119}\), ..., \(2q^{119}\)

\(\frac{341}{627}\approx 0.544\)

\(\vdots \)

\(\vdots \)

\(\vdots \)

\(\vdots \)

824

\((y_i)\)

\(16q^{824}\), \(9q^{824}\), \(2q^{824}\), ..., \(2q^{824}\)

\(\frac{1046}{6972}\approx 0.15003\)

825

\((y_i)\)

\(16q^{825}\), \(9q^{825}\), \(2q^{825}\), ..., \(2q^{825}\)

\(\frac{1047}{6981}\approx 0.14998\)

826

\((x_i)\)

\(16q^{826}\), \(9q^{826}\), \(8q^{826}\), \(4q^{826}\), \(2q^{826}\)

\(\frac{1050}{6986}\approx 0.1503\)

\(\vdots \)

\(\vdots \)

\(\vdots \)

\(\vdots \)

5 Open Problems

In the last chapter we show some of the possible ways of continuation for the study of connections between Kakeya conditions and topology of achievment sets. We start with the most general question that we suppose that its answer is affirmative.

Problem 5.1

Is it possible for each infinite subset C of \({\mathbb {N}}\) with infinite complement to construct a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and \(\{i\in {\mathbb {N}}: z_i>r_i\}=C\)?

We expect that the above problem can be very difficult to attack. This is why we propose to start with a particular case.

Problem 5.2

Is it possible to construct a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has asymptotic density equal to 1?

Note that in the paper we have shown that such Examples exist for all densities \(\alpha \in [0,1)\). However, if the answer is true the construction may need completely different methods than used in the paper. On the other hand, if the answer for the above question is negative we may also ask the following.

Problem 5.3

Is it possible to construct a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a Cantorval and the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) has upper asymptotic density equal to 1?

In the paper we measure the size of the set \(\{i\in {\mathbb {N}}: z_i>r_i\}\) by the notion of asymptotic density. However, one can study its structure much deeper. Namely, we say that the set \(E\subset {\mathbb {N}}\) belongs to the interval class \({\mathcal {I}}\) (Cantor class \({\mathcal {C}}\) or Cantorval class \(\mathcal {CV}\)) if there exists a convergent series \(\sum _{i=1}^{\infty }z_i\) such that \(A(z_i)\) is a finite union of closed intervals (homemorphic to a Cantor set or Cantorval, respectively) and \(E=\{i\in {\mathbb {N}}: z_i>r_i\}\). By Theorem 1.1(1) it is obvious that \({\mathcal {I}}\) is equal to the family of all finite subsets of \({\mathbb {N}}\), that is \({\mathcal {I}}=\text {Fin}\) and \({\mathcal {I}}\cap ({\mathcal {C}}\cup \mathcal {CV})=\emptyset \). Furthermore, by Theorem 2.1 we know that \({\mathcal {C}}=P({\mathbb {N}}){{\setminus }}\text {Fin}\). Hence, we may state the following problem.

Problem 5.4

Characterize the family \(\mathcal {CV}\).

Clearly, \(({\mathcal {C}}\cap \mathcal {CV})\ne \emptyset \). Another simple observation is that removing or adding finitely many terms to the sequence \((z_i)\) does not change the form of its achievement set, so if some \(A\in \mathcal {CV}\), then each set of the form \(A\Delta F\) for some \(F\in \text {Fin}\) is an element of \(\mathcal {CV}\) as well. In particular, by Theorem 3.2 we obtain that \(a{\mathbb {N}}+B\in \mathcal {CV}\) for each \(a\in {\mathbb {N}}\) and B, which is any subset of \(\{1,\ldots ,a\}\) containing consecutive numbers. Also, by Theorem 1.1(2) we know that if \(C\subset {\mathbb {N}}\) has finite complement, then \(C\in {\mathcal {C}}\backslash \mathcal {CV}\).