1 Introduction

Let \(E(z_n)\) denote the set of all possible sums of elements of the sequence \(\{z_n\}\), or equivalently, all possible subsums of the series \(\sum _{n\ge 1} z_n\). That is,

$$\begin{aligned} E(z_n)=\left\{ \sum _{n=1}^\infty c_{n}z_{n},\,c_{n}\in \{0,1\}\right\} =\left\{ \sum _{n\in A}z_{n},\,A\in {\mathbb {N}}\right\} . \end{aligned}$$

Also known as the achievement set of the sequence \(\{z_n\}\) [7, 9, 11], it was first considered by Kakeya [8] who conjectured that, for a convergent positive series, this set is either a finite union of compact intervals or a Cantor set. This conjecture was refuted in [5] by means of the following result whose proof was completed in [13].

Theorem 1.1

The achievement set of a summable positive sequence is either:

  1. (i)

    a finite union of closed bounded intervals,

  2. (ii)

    homeomorphic to the Cantor set, or

  3. (iii)

    homeomorphic to a Cantorval.

Recall that a (symmetric) Cantorval can be formally defined as a nonempty compact real subspace which is the closure of its interior and the endpoints of any nontrivial component of this set are accumulation points of trivial components. All Cantorvals are homeomorphic to \([0,1]\backslash \cup _{n\ge 1}B_{2n}\) in which \(B_n\) is the union of the \(2^{n-1}\) open intervals which are eliminated at the nth stage of the construction of the Cantor set, which can be seen as \(E(\frac{2}{3^n})\). In particular, any Cantorval is homeomorphic to the Guthrie-Nymann Cantorval given by \(E(z_n)\), with \(z_{2n}=2/4^n\) and \(z_{2n-1}=3/4^n\), the one originally considered in (iii) of the above Theorem. Cantorvals also appear as attractors associated to some iterated function systems [2], and an analogous result to Theorem 1.1 holds to describe the topology of the algebraic difference of certain Cantor sets [1, 10, 12].

In this paper we consider a class of positive functions f defined on the interval (see next section) and study the topological behavior, depending on x, of the set all possible subsums of the series

$$\begin{aligned}{} & {} k_1f(x)+\dots +k_mf(x)+k_1f(x^2)+ \dots + k_mf(x^2)+\dots \nonumber \\{} & {} \quad + k_1f(x^n)+\dots +k_mf(x^n)+\dots , \end{aligned}$$
(1.2)

where \(k_1,\dots , k_m \) are fixed positive scalars. Following the nomenclature in [4] we call this a generalized multigeometric series. We show that, whenever x varies along some particular regions, the achievement set of the associated sequence is a compact interval (Theorem 2.8 and Corollary 2.9), a Cantor set (Theorem 2.14), or a Cantorval (Corollary 2.12).

This extends the main results of [14] where \(f(x)=\sin (x)\), and those in [3] and [4] where \(f(x)=x\), i.e., the considered series is the multigeometric,

$$\begin{aligned} \displaystyle k_1+ \dots +k_m+k_1q + \dots +k_mq+\dots +k_1q^{n-1} +\dots +k_mq^{n-1} + \dots ,\nonumber \\ \end{aligned}$$
(1.3)

where \(k_1, k_2, \dots k_m\) are fixed positive integers and \(q \in \left( 0, 1\right) \).

Finally, notice that the achievement set for the sequence associated to the multigeometric series (1.2) equals the arithmetic sum of the achievement sets associated to the different multigeometric series given by any partition of the scalars \(k_1,\dots , k_m \). Therefore the results here can also be seen as criteria to determine the topological nature of the arithmetic sum of the achievement sets of the multigeometric sequences.

2 The Achievement Set of Some Generalized Multigeometric Sequences

Observe that the generalized multigeometric series given in (1.2), associated to a given function f and to positive real numbers \(k_1,\dots ,k_m\), can be written as

$$\begin{aligned} \sum _{n\ge 1} w_n(x) \quad \text {with}\quad w_n(x)=k_{g(n)}f(x^{\lfloor \frac{m+n-1}{m}\rfloor }), \end{aligned}$$
(2.1)

where, as usual, \(\lfloor \,\cdot \,\rfloor \) denotes the integer part function and

$$\begin{aligned} g(n)=1+\big ((n-1)\mod m\big ). \end{aligned}$$

Observe also that the achievement set for this sequence at a given x is

$$\begin{aligned} E\bigl (w_n(x)\bigr )=\left\{ \sum _{n=1}^{\infty } \alpha _n f(x^n),\, \alpha _n \in A\right\} \quad \text {where}\quad A=\left\{ \sum _{i=1}^{m} c_i k_i,\, c_i \in \{ 0, 1 \} \right\} . \end{aligned}$$

We will study the topology of this set for a particular class of functions:

Definition 2.2

A function f is locally increasing and power bounded (at 0) if there exist \(\varepsilon \in (0,1)\), and \(a,b,r\in \mathbb {R}^+\) such that f is monotone increasing in \([0,\varepsilon ]\) and

$$\begin{aligned} a\cdot x^r\le f(x)\le b\cdot x^r \end{aligned}$$

for every \(x\in [0,\varepsilon ].\) We denote by \(\mathcal {M}\) the class of locally increasing at 0 and power bounded functions.

The following shows that differentiable functions abound in \(\mathcal {M}\):

Proposition 2.3

Let \(f \in \mathcal {C}^{r+1}\big ([0,1)\big )\) such that \(f^{i)}(0)=0\) for \(0\le i<r\) and \(f^{r)}(0)>0\). Then \(f\in \mathcal {M}\).

Proof

With f as in the statement there exists \(\varepsilon \in (0,1)\) such that \(f^{r)}([0,\varepsilon ])\subset \mathbb {R}^+\), and therefore f(x) is monotone increasing in \([0,\varepsilon ]\).

On the other hand, define

$$\begin{aligned} a=\frac{1}{r!}\min \big \{f^{r)}(\zeta ),\,\zeta \in [0,\varepsilon ]\big \}\quad \text { and }\quad b=\frac{1}{r!}\max \big \{f^{r)}(\zeta ),\,\zeta \in [0,\varepsilon ]\big \}, \end{aligned}$$

and consider, for any \(\lambda \in \mathbb {R}\), the function \(h_\lambda (x)=f(x)-\lambda x^r\). We then use the Taylor \((r-1)\)th-approximation together with the error formula of \(h_\lambda \) at 0 to conclude that

$$\begin{aligned} h_\lambda (x)=\left( \frac{f^{r)}(\zeta )}{r!}-\lambda \right) x^{r}\quad \text {for some}\quad \zeta \in [0,x). \end{aligned}$$
(2.4)

In particular, for any \(x\in [0,\varepsilon ]\), \(h_a(x)=f(x)-ax^r\ge 0\) while \(h_b(x)=f(x)-bx^r\le 0\).\(\square \)

Example 2.5

(1) Note that the identity \(f(x)=x\) is trivially in \(\mathcal {M}\) by choosing \(a=b=r=1\) and any \(\varepsilon \). (2) By the well known Jordan inequality,

$$\begin{aligned} \frac{2x}{\pi } \le \sin {x} \le x,\quad |x|\le \frac{\pi }{2}, \end{aligned}$$

we see that the function \(f(x)=\sin x\) is in \(\mathcal {M}\) by choosing \(a=\frac{2}{\pi }\), \(b=1\) and \(\varepsilon =\frac{\pi }{2}\). Nevertheless, as \(f'(x)=\cos x\), Proposition 2.3 provides \(a=\cos 1\), \(b=r=\varepsilon =1\). The same applies, for instance, to the function \(f(x)=\tan x\) choosing \(r=\varepsilon =1\):

$$\begin{aligned} x \le \tan x \le \frac{x}{\cos ^{2}(1)},\quad x\in [0,1]. \end{aligned}$$

(3) Consider the function \(f(x)=x \cdot \ln (x+1)\) in which \(f(0)=f'(0)=0\) and \(f''(x)=\frac{x+2}{(x+1)^2}>0\) for \(x \in [0, 1]\). Then \(f\in \mathcal {M}\) choosing \(r=2\), \(\varepsilon =1\), \(a=\frac{3}{8}\) and \(b=1\). Another example covered by Proposition 2.3 and providing \(r=2\) is, for instance, \(f(x)=e^x-x-1\). Here \(\varepsilon =1\), \(a=\frac{1}{2}\) and \(b=\frac{e}{2}\).

We also need:

Lemma 2.6

Let \(f\in \mathcal {M}\) and let \(k_1\ge k_2\ge \dots \ge k_m>0\) be positive scalars. Define

$$\begin{aligned} \epsilon =\min \left\{ \root r \of {\frac{ak_m}{bk_1}},\,\varepsilon \right\} . \end{aligned}$$

Then, the associated generalized multigeometric series \(\sum _{n\ge 1}w_n(x)\) is convergent for any \(x\in [0,\epsilon ]\). Moreover, \(w_n(x)\ge w_{n+1}(x)\) for any \(n\in {\mathbb {N}}\) and any \(x\in [0,\epsilon ]\).

Proof

If we write \(K=\sum _{i=1}^mk_i\), we deduce that

$$\begin{aligned} \sum _{n=1}^{\infty }w_n(x) \le b \cdot \sum _{n=1}^{\infty } K x^{nr}=\frac{bKx^r}{1-x^r},\quad x\in [0,\epsilon ],\end{aligned}$$

and therefore, this series converges since \(0\le \epsilon \le \varepsilon <1\).

On the other hand, as \(k_1\ge k_2\ge \dots \ge k_m\), it follows that \(k_i f(x^n)\ge k_{i+1} f(x^n)\) for \(i=1,\ldots ,m-1.\) Moreover, if \(x>0\),

$$\begin{aligned} k_mf(x^n)&\ge ak_m (x^n)^r \,\,\text {(since }f\in \mathcal {M}\text { and }0<x\le \epsilon \le \varepsilon ) \\&\ge \frac{ak_m (x^{n+1})^r}{x^r}\\&\ge \frac{ak_m (x^{n+1})^r}{\left( \root r \of {\frac{ak_m}{bk_1}}\right) ^r}\,\,\left( \text {since }0<x\le \epsilon \le \root r \of {\frac{ak_m}{bk_1}}\right) \\&\ge bk_1(x^{n+1})^r\\&\ge k_1f(x^{n+1})\,\,\left( \text {since }f\in \mathcal {M}\text { and }0<x\le \epsilon \le \varepsilon \right) . \end{aligned}$$

Hence \(w_n(x)\ge w_{n+1}(x)\) for any \(n\in {\mathbb {N}}\) and any \(x\in [0,\epsilon ]\).\(\square \)

In what follows we fix an arbitrary function \(f\in \mathcal {M}\), thus constants \(\varepsilon \in (0,1]\), and \(a,b,r\in \mathbb {R}^+\) are those given in Definition 2.2. We choose positive real numbers \(k_1\ge k_2\ge \dots \ge k_m>0\), let \(\epsilon \in (0,1]\) be defined as in Lemma 2.6, and consider the associated generalized multigeometric series \(\sum _{n\ge 1}w_n(x)\) for \(x\in [0,\epsilon )\). We also fix the following notation:

$$\begin{aligned} K=\sum _{i=1}^{m} k_i,\quad U_j=\sum _{i=j+1}^{m} k_i,\quad L_j=\sum _{i=1}^{j} k_i=K-U_j, \end{aligned}$$

Also, for any series \(\sum _{n\ge 1} z_n\) and any \(\ell \ge 1\) we denote by \(Z_\ell =\sum _{n>\ell }z_n\) the \(\ell \)th tail of the series. In particular, we write \(W_\ell (x)=\sum _{n> \ell } w_n(x)\).

On the other hand, we will strongly use the following foundational result of Kakeya, rediscovered and extended by Hornich:

Theorem 2.7

[6, 8]. Let \(\sum _{n\ge 1} z_n\) be a convergent positive series with non-increasing terms, i.e., \(z_{n} \ge z_{n+1}\) for any \(n \in {\mathbb {N}}\). Then, the achievement set \(E(z_n)\) is:

  1. (i)

    a finite union of bounded closed intervals if and only if \(z_{n} \le Z_{n}\) for all but finitely many \(n\in {\mathbb {N}}\);

  2. (ii)

    a compact interval if and only if \(z_n\le Z_n\) for every \(n \in {\mathbb {N}}\);

  3. (iii)

    homeomorphic to the Cantor set if \(z_{n} > Z_{n}\) for all but finitely many \(n\in {\mathbb {N}}\).

With the notation above define

$$\begin{aligned} d_I=\root r \of {\max _{1\le j\le m}\left\{ \frac{bk_j-aU_j}{bk_j+aL_j}\right\} }. \end{aligned}$$

Our first result extends and refines [14, Theorem 3.1]:

Theorem 2.8

Whenever \(d_I\le \epsilon \), the achievement set \(E\bigl (w_n(x)\bigr )\) is a compact interval for any \(x\in [ d_I,\epsilon ]\).

Proof

According to the Theorem 2.7.(ii), it is enough to show that \(w_n(x)\le W_n(x)\) for every \(n \in {\mathbb {N}}\) and any \(x\in [ d_I,\epsilon )\). Since \(f\in \mathcal {M}\),

$$\begin{aligned} w_n(x) =k_{g(n)}f(x^{\lfloor \frac{m+n-1}{m}\rfloor }) \le b \cdot k_{g(n)} x^{\lfloor \frac{m+n-1}{m}\rfloor r}, \end{aligned}$$

while

$$\begin{aligned} W_n(x) =\sum _{\ell>n} w_\ell (x) \ge a\cdot \sum _{\ell >n} k_{g(\ell )} x^{\lfloor \frac{m+\ell -1}{m}\rfloor r}=a\cdot x^{\lfloor \frac{m+n-1}{m}\rfloor r}\left( U_{g(n)} + K\frac{x^r}{1-x^r}\right) , \end{aligned}$$

for \(n\in {\mathbb {N}}\) and \(x\in [0,\epsilon ]\). Therefore \(w_n(x)\le W_n(x)\) whenever

$$\begin{aligned} b\cdot k_{g(n)}x^{\lfloor \frac{m+n-1}{m}\rfloor r}\le a\cdot x^{\lfloor \frac{m+n-1}{m}\rfloor r}\Big ( U_{g(n)} + K\frac{x^r}{1-x^r}\Big ). \end{aligned}$$

For \(x=0\) this trivially holds and, for \(x>0\) this is the case when

$$\begin{aligned} b\cdot k_{g(n)}\le a\cdot \left( U_{g(n)} + K\frac{x^r}{1-x^r}\right) , \end{aligned}$$

that is, whenever

$$\begin{aligned} x\ge \root r \of {\frac{bk_{g(n)}-aU_{g(n)}}{bk_{g(n)}+aL_{g(n)}}} \end{aligned}$$

for all n. As the function g(n) takes the values \(1, 2, \dots , m\), this happens for all \(x\in [ d_I,\epsilon )\).\(\square \)

As a consequence, denoting

$$\begin{aligned} d_{IM}:= \root r \of {\frac{b}{b+a}}, \end{aligned}$$

we obtain:

Corollary 2.9

Whenever \(d_{IM}\le \epsilon \), the achievement set \(E\bigl (w_n(x)\bigr )\) is a compact interval for any \(x \in [ d_{IM},\epsilon ]\).

Proof

Simply note that

$$\begin{aligned} d_{I}=\root r \of {\max _{1\le j\le m}\left\{ \frac{bk_j-aU_j}{bk_j+aL_j}\right\} } = \root r \of {\max _{1\le j\le m}\left\{ \frac{b-aU_j/k_j}{b+aL_j/k_j}\right\} } \le \root r \of {\frac{b}{a+b}}=d_{IM} \end{aligned}$$

and apply Theorem 2.8.\(\square \)

On the other hand, denoting

$$\begin{aligned} d_{NI} = \root r \of {\frac{ak_m}{bK+ak_m}}, \end{aligned}$$

we prove the following that extends [14, Theorem 3.3], which in turn is inspired by [3, Theorem 2.1] generalized in [4, Theorem 2.2(ii)]:

Theorem 2.10

The achievement set \(E\bigl (w_n(x)\bigr )\) is not a finite union of closed bounded intervals for \(0< x< \min \{\epsilon , d_{NI}\}\).

Proof

According to Theorem 2.7.(i) it is sufficient to show that \(w_{\ell m}(x)>W_{\ell m}(x)\) for any \(\ell \in {\mathbb {N}}\) and \(0< x< \min \{\epsilon , d_{NI}\}\). Observe that, for any \(x\in (0,\epsilon )\),

$$\begin{aligned} w_{\ell m}(x)=k_m f(x^\ell ) \ge a \cdot k_m x^{\ell r}, \end{aligned}$$

while

$$\begin{aligned} W_{\ell m}(x)=K \cdot \sum _{j>\ell } f(x^j) \le b \cdot \frac{Kx^{(\ell +1)r}}{1-x^r}. \end{aligned}$$

Therefore \(w_{\ell m}(x) > W_{\ell m}(x)\) as long as

$$\begin{aligned} W_{{\ell }m}\le b \cdot \frac{Kx^{({\ell }+1)r}}{1-x^r} < a \cdot k_m x^{{\ell }r} \le w_{{\ell }m}. \end{aligned}$$

That is, whenever

$$\begin{aligned} x<\root r \of {\frac{a k_m}{bK+ak_m}}=d_{NI}. \end{aligned}$$

\(\square \)

The next result extends [3, Theorem 2.1], [4, Theorem 2.2(i)] and [14, Theorem 3.4]. We follow a strategy similar to the proofs of these references.

Theorem 2.11

Choose \(\lambda ,\mu \in \mathbb {R}^+\) and \(s\in {\mathbb {N}}\) such that every number \({\mu }, {\mu }+\lambda , {\mu }+2\lambda , \dots , {\mu }+s\lambda \), is a subsum of the (finite) series \(\sum _{i=1}^m k_i\), and write

$$\begin{aligned} d_{CI} = \root r \of {\frac{b}{s \cdot a + b}}. \end{aligned}$$

Then, whenever \(d_{CI} < \epsilon \), \(E\bigl (w_n(x)\bigr )\) contains a compact interval for any \(x\in [ d_{CI},\epsilon )\).

Proof

Let define \(\overline{k}_1=\overline{k}_2=\cdots =\overline{k}_{s}=\lambda >0\), and consider the convergent positive series \(\sum _{n\ge 1} \overline{w}_n(x)\) where

$$\begin{aligned} \overline{w}_n(x)=\overline{k}_{\overline{g}(n)}f(x^{\lfloor \frac{n+s-1}{s}\rfloor }), \end{aligned}$$

with \(\overline{g}(n)=1+\big ((n-1)\mod s\big ).\) Then, according to Theorem 2.8, \(E\bigl (\overline{w}_n\bigr )\) is a compact interval for all \(x\in [d_I,\epsilon )\) where now

$$\begin{aligned} d_I&=\root r \of { \max _{1\le j\le s}\left\{ \frac{b\overline{k}_j-aU_j}{b\overline{k}_j+aL_j}\right\} }\\&=\root r \of { \max _{1\le j\le s}\Big \{\frac{b\lambda -a\lambda (s-j)}{b\lambda +a\lambda j}\Big \}}\\&=\root r \of {\max _{1\le j\le s}\Big \{1-\frac{as}{aj+b}\Big \}}\\&=\root r \of {1-\frac{as}{as+b}}\\&=\root r \of {\frac{b}{b+sa}}\,. \end{aligned}$$

We finish the proof by showing that the interval

$$\begin{aligned} \left\{ \sum _{n=1}^\infty {\mu }f(x^n)\right\} +E\bigl (\overline{w}_n(x)\bigr ) \end{aligned}$$

is contained in \(E\bigl (w_n(x)\bigr )\).

Indeed, if \(z\in \{\sum _{n=1}^\infty {\mu }f(x^n)\}+E\bigl (\overline{w}_n(x)\bigr )\), write

$$\begin{aligned} z=\sum _{n=1}^\infty \big ({\mu }+ s_n\lambda )f(x^n), \end{aligned}$$

where \(s_n\in \{0,1,\ldots ,s\}\). Therefore, there exist \(c_{n,i}\in \{0,1\}\) such that \({\mu }+s_n\lambda =\sum _{i=1}^{m}c_{n,i}k_i\), and thus

$$\begin{aligned} z=\sum _{n=1}^\infty \left( \sum _{i=1}^{m}c_{n,i}k_i\right) f(x^n)\in E(w_n). \end{aligned}$$

\(\square \)

The following recovers [4, Theorem 2.2(iii)] and generalizes [14, Corollary 3.5]. Under the hypothesis of the previous theorem we have:

Corollary 2.12

Whenever \(d_{CI}<d_{NI}\), the achievement set \(E\bigl (w_n(x)\bigr )\) is a Cantorval for any \(x\in [ d_{CI},d_{NI})\).

Proof

Let \(x \in [ d_{CI}, d_{NI})\). Then

  1. (i)

    According to the Theorem 2.11, if \(x \ge \root r \of {\frac{b}{sa+b}}\), then \(E\bigl (w_n(x)\bigr )\) contains an interval.

  2. (ii)

    An analogous argument to the one in the proof of Theorem 2.10 shows that if \(x < \root r \of {\frac{ak_{m}}{ak_{m}+bK}}\), then \(w_{mi}(x)> W_{mi}(x)\) for every \(i \in {\mathbb {N}}\) and \(E(w_n)\) cannot be a finite union of closed and bounded intervals.

Therefore, \(E\bigl (w_n(x)\bigr )\) must be a Cantorval. \(\square \)

Remark 2.13

Observe that \(d_{CI}< d_{NI}\) only if

$$\begin{aligned} b<a \sqrt{\frac{s k_m}{K}}. \end{aligned}$$

Therefore, as \(a\le b\),

$$\begin{aligned} 1<\frac{s k_m}{K} \end{aligned}$$

is a necessary condition for Corollary 2.12.

Finally, let

$$\begin{aligned} d_C=\root r \of {\min _{1\le j\le m}\Big \{\frac{ak_j-bU_j}{ak_j+bL_j}\Big \}.} \end{aligned}$$

Our last result extends and refines [14, Theorem 3.7]:

Theorem 2.14

Whenever \(d_{C}>0\), the achievement set \(E\bigl (w_n(x)\bigr )\) is homeomorphic to the Cantor set for \(0< x< \min \{\epsilon , d_{C}\}\).

Proof

According to Theorem 2.7.(iii), it is enough to show that \(w_n(x)> W_n(x)\) for all but finitely many \(n\in {\mathbb {N}}\) and \(x\in [0,d_C]\). Observe that, for any \(x\in (0,\epsilon )\),

$$\begin{aligned} w_n(x) =k_{g(n)}f(x^{\lfloor \frac{m+n-1}{m}\rfloor }) \ge a\cdot k_{g(n)}\big ( x^{\lfloor \frac{m+n-1}{m} \rfloor r} \big ) \end{aligned}$$

while

$$\begin{aligned} W_n(x)&=\sum _{\ell>n} w_\ell \le b\cdot \sum _{\ell >n} k_{g(\ell )}\big (x^{\lfloor \frac{m+\ell -1}{m}\rfloor r}\big ) =b\cdot x^{\lfloor \frac{m+n-1}{m}\rfloor r}\Big ( U_{g(n)} + \frac{Kx^r}{1-x^r}\Big ). \end{aligned}$$

Therefore, \(w_n(x)> W_n(x)\) as long as

$$\begin{aligned} a\cdot k_{g(n)}x^{\lfloor \frac{m+n-1}{m}\rfloor r}>b\cdot x^{\lfloor \frac{m+n-1}{m}\rfloor r}\Big ( U_{g(n)} + \frac{Kx^r}{1-x^r}\Big ), \end{aligned}$$

and since \(x>0\), whenever

$$\begin{aligned} \cdot k_{g(n)}>b\cdot \Big ( U_{g(n)} + \frac{Kx^r}{1-x^r}\Big ). \end{aligned}$$

That is, when

$$\begin{aligned} x<\root r \of {\frac{ak_{g(n)}-bU_{g(n)}}{ak_{g(n)}+bL_{g(n)}}} \end{aligned}$$

for all n and the theorem follows.\(\square \)