1 Introduction

Difference equations and systems of difference equations have been of a great interest in the last several decades. For some classical results in the research area, see, for example, [18], whereas some recent results can be found, for example, in [922] (see also the references therein). Book [23] contains a lot of results obtained up to 2,000.

It is a frequent situation that during some investigations in various areas of mathematics and science naturally appeared special cases of the following nonhomogeneous linear second-order difference equation:

$$\begin{aligned} x_{n+2}-q_{n}x_{n}=f_{n},\quad n\in\mathbb {N}_{0}, \end{aligned}$$
(1)

where \((q_{n})_{n\in\mathbb{N}_{0}}\) and \((f_{n})_{n\in\mathbb {N}_{0}}\) are sequences of real or complex numbers. Recall that equations of type (1) with \(f_{n}=0\), \(n\in\mathbb{N}_{0}\), appeared in many problem books on classical analysis ([7, 24]), especially in those dealing with sequences and integrals (by using the integration in parts an integral \(I_{n}\) is frequently presented in terms of a linear function of \(I_{n-2}\)). However, this case is very simple, so the case \(f_{n}\not\equiv0\), is more interesting.

Although equation (1) is of second order and resembles the following differential equation:

$$\begin{aligned} x''(t)-q(t)x(t)=f(t),\quad t\ge0, \end{aligned}$$
(2)

it is not the one that corresponds quite well to it. The following second-order difference equation:

$$\Delta^{2} x_{n}-q_{n}x_{n}=f_{n}, \quad n\in\mathbb{N}_{0}, $$

where \(\Delta x_{n}=x_{n+1}-x_{n}\) is the forward difference, is one of the discrete cousins of equation (2), and is much more interesting for investigation than equation (1). Nevertheless, equation (1) has some nice properties which seem are not so known and will be presented here.

As a further motivation, recall that if q is a positive number, then the difference equation

$$\begin{aligned} x_{n+2}-qx_{n}=0,\quad n\in\mathbb{N}_{0}, \end{aligned}$$
(3)

where \(x_{0}\), \(x_{1}\) are given numbers, is easily solved and it has the following general solution:

$$\begin{aligned} x_{n}=\hat{c}_{1}(\sqrt{q})^{n}+ \hat{c}_{2}(-\sqrt {q})^{n},\quad n\in\mathbb{N}_{0}, \end{aligned}$$
(4)

where \(\hat{c}_{1}\) and \(\hat{c}_{2}\) are arbitrary constants ([3, 6, 8, 23]).

By using equation (4) it is immediately seen that the following three statements hold.

  1. (a)

    If \(q\in(0,1)\), then all the solutions to equation (3) converge to zero.

  2. (b)

    If \(q=1\) then all the solutions to equation (3) are bounded.

  3. (c)

    If \(q>1\), then all the solutions to equation (3) are unbounded, except the trivial solution

    $$x_{n}=0,\quad n\in\mathbb{N}_{0}, $$

    which is obtained for the initial conditions \(x_{0}=x_{1}=0\).

In terms of the boundedness these statements claim that all the solutions to equation (3) are bounded if and only if \(q\in(0,1]\), while for the case \(q>1\) there is only one bounded solution to the equation.

It is a classical problem to see how bounded perturbations of the right-hand side of equation (3), as well as of coefficient q influence on the boundedness character of the solutions of such obtained equations. We will present two interesting ways how the problem of the existence of a unique bounded solution can be solved for the case of the difference equation (1), where \((q_{n})_{n\in\mathbb{N}_{0}}\) and \((f_{n})_{n\in\mathbb{N}_{0}}\) are two given bounded sequences.

By \(l^{\infty}\) we will denote the space consisting of all bounded sequences \(u=(u_{n})_{n\in\mathbb{N}_{0}}\) with the supremum norm

$$\begin{aligned} \Vert u\Vert _{ \infty}=\sup_{n\in\mathbb{N}_{0}}\vert u_{n}\vert . \end{aligned}$$
(5)

It is well known that \(l^{\infty}\) with norm (5) is a Banach space.

The paper is partially based on several comments and ideas presented by the author at several international conferences and invited talks during the last several years, which has not been published so far. Some of the results could be known, but we could not find specific references for them.

The paper is organized as follows. First, we consider the case when \(q_{n}=q\ne0\) for every \(n\in\mathbb{N}_{0}\) and \((f_{n})_{n\in \mathbb{N}_{0}}\) is a bounded sequence. Then we consider the case when the sequences \((q_{n})_{n\in\mathbb{N}_{0}}\) and \((f_{n})_{n\in\mathbb{N}_{0}}\) are bounded. By a nice combination of the theory of linear difference equations and the Banach fixed point theorem we present some sufficient conditions for the existence of a unique bounded solution to equation (1). In the third section we will present another way for dealing with the unique existence problem by using only the theory of linear difference equations. We finish the paper by giving some comments on the form of general solution to an abstract version of the linear first-order difference equation.

2 Fixed point approach in dealing with equation (1)

In this section we deal with the problem of the existence of a unique bounded solution to the difference equation (1). To do this we use fixed point theory. First we deal with the case when \(q_{n}=q \ne0\) for every \(n\in\mathbb{N}_{0}\) and \((f_{n})_{n\in\mathbb {N}_{0}}\) is a bounded sequence.

Before we formulate and prove the main result in the section we need an auxiliary result which is incorporated into the following lemma. The lemma is essentially folklore, but we will give a proof of it for completeness, for the benefit of the reader and also as a good motivation and better understanding of some ideas appearing in the proof of the main result.

Lemma 1

Consider the difference equation

$$\begin{aligned} x_{n+2}-qx_{n}=f_{n},\quad n\in\mathbb{N}_{0}, \end{aligned}$$
(6)

where \(q\in\mathbb{C}\setminus\{0\}\), \(x_{0}\) and \(x_{1}\) are given complex numbers, and \((f_{n})_{n\in\mathbb{N}_{0}}\) is a given sequence of complex numbers. Then the general solution to equation (6) is given by the following formula:

$$\begin{aligned} x_{n}=(\sqrt{q})^{n} \Biggl(c_{0}+\sum _{k=0}^{n-1}\frac{f_{k}}{2(\sqrt{q})^{k+2}} \Biggr)+(-\sqrt {q})^{n} \Biggl(d_{0}+\sum_{k=0}^{n-1} \frac{(-1)^{k}f_{k}}{2(\sqrt {q})^{k+2}} \Biggr),\quad n\in\mathbb{N}_{0}, \end{aligned}$$
(7)

where \(c_{0}\) and \(d_{0}\) are arbitrary numbers, and \(\sqrt{q}\) is one of two possible roots of q.

Proof

The difference equation (6) can be solved. We will demonstrate it by using the method of variation of constants ([8, 23]). Namely, based on the form of the general solution to the homogeneous equation (3) given in (4), we seek the general solution to equation (6) in the form

$$\begin{aligned} x_{n}=c_{n}(\sqrt{q})^{n}+d_{n}(- \sqrt{q})^{n},\quad n\in\mathbb{N}_{0}, \end{aligned}$$
(8)

where \((c_{n})_{n\in\mathbb{N}_{0}}\) and \((d_{n})_{n\in\mathbb {N}_{0}}\) are two (undetermined) sequences.

Further, we pose the following condition:

$$\begin{aligned} x_{n+1}=c_{n+1}(\sqrt{q})^{n+1}+d_{n+1}(-\sqrt {q})^{n+1}=c_{n}(\sqrt{q})^{n+1}+d_{n}(- \sqrt{q})^{n+1}, \end{aligned}$$
(9)

for \(n\in\mathbb{N}_{0}\), that is,

$$\begin{aligned} (c_{n+1}-c_{n}) (\sqrt {q})^{n+1}+(d_{n+1}-d_{n}) (-\sqrt{q})^{n+1}=0, \end{aligned}$$
(10)

for \(n\in\mathbb{N}_{0}\).

Using (9) with \(n\to n+1\) along with (8) into equation (6) is obtained

$$c_{n+1}(\sqrt{q})^{n+2}+d_{n+1}(-\sqrt{q})^{n+2}-q \bigl(c_{n}( \sqrt{q})^{n}+d_{n}(- \sqrt{q})^{n} \bigr)=f_{n}, $$

that is,

$$\begin{aligned} (c_{n+1}-c_{n}) (\sqrt {q})^{n+2}+(d_{n+1}-d_{n}) (-\sqrt{q})^{n+2}=f_{n}, \end{aligned}$$
(11)

for \(n\in\mathbb{N}_{0}\).

For each fixed \(n\in\mathbb{N}_{0}\), equalities (10) and (11) can be regarded as a two-dimensional linear system in the variables \(c_{n+1}-c_{n}\) and \(d_{n+1}-d_{n}\).

By solving the system the following is easily obtained:

$$c_{n+1}-c_{n}=\frac{f_{n}}{2(\sqrt{q})^{n+2}} \quad \mbox{and}\quad d_{n+1}-d_{n}=\frac{(-1)^{n}f _{n}}{2(\sqrt{q})^{n+2}},\quad n\in\mathbb{N}_{0}, $$

from which it follows that

$$\begin{aligned} c_{n}=c_{0}+\sum_{k=0}^{n-1} \frac{f_{k}}{2(\sqrt {q})^{k+2}} \end{aligned}$$
(12)

and

$$\begin{aligned} d_{n}=d_{0}+\sum_{k=0}^{n-1} \frac {(-1)^{k}f_{k}}{2(\sqrt{q})^{k+2}}, \end{aligned}$$
(13)

for \(n\in\mathbb{N}_{0}\).

Using (12) and (13) into (8) we get equation (7). That (7) represents the general solution to (6) follows from the facts that the sequence

$$x_{n}^{p}:=(\sqrt{q})^{n}\sum _{k=0}^{n-1} \frac{f_{k}}{2(\sqrt{q})^{k+2}}+(-\sqrt{q})^{n} \sum_{k=0}^{n-1}\frac{(-1)^{k}f _{k}}{2(\sqrt{q})^{k+2}} $$

is a particular solution to equation (6), which is easily verified, while

$$x_{n}^{h}=c_{0}(\sqrt{q})^{n}+d_{0}(- \sqrt{q})^{n}, $$

is the general solution to the corresponding homogeneous equation ([8, 23]). □

The following result solves the problem of existence of a unique bounded solution to equation (1) for the case \(q_{n}=q\), \(n\in\mathbb{N} _{0}\), when \(\vert q\vert >1\).

Theorem 1

Consider the difference equation (6), where q is a complex number such that \(\vert q\vert >1\) and \(f:=(f_{n})_{n\in\mathbb{N} _{0}}\) is a given bounded sequence of complex numbers. Then there is a unique bounded solution to the difference equation.

Proof

By Lemma 1 we know that the general solution to the difference equation (6) is given by equation (7). By using equation (7) for even and odd indices it follows that

$$\begin{aligned} x_{2n}=q^{n} \Biggl(c_{0}+d_{0}+\sum _{k=0}^{2n-1}\frac {(1+(-1)^{k})f_{k}}{2(\sqrt{q})^{k+2}} \Biggr) \end{aligned}$$
(14)

and

$$\begin{aligned} x_{2n+1}=(\sqrt{q})^{2n+1} \Biggl(c_{0}-d_{0}+ \sum_{k=0}^{2n}\frac{(1-(-1)^{k})f_{k}}{2(\sqrt{q})^{k+2}} \Biggr), \end{aligned}$$
(15)

for every \(n\in\mathbb{N}_{0}\).

Now note that from the assumptions of the theorem we have

$$\Biggl\vert \sum_{k=0}^{\infty} \frac{(1+(-1)^{k})f_{k}}{2(\sqrt{q})^{k+2}} \Biggr\vert \le\sum_{k=0}^{ \infty} \frac{\Vert f\Vert _{\infty}}{(\sqrt{\vert q\vert })^{k+2}}=\frac{\Vert f\Vert _{ \infty}}{\sqrt{\vert q\vert }(\sqrt{\vert q\vert }-1)} $$

and

$$\Biggl\vert \sum_{k=0}^{\infty} \frac{(1-(-1)^{k})f_{k}}{2(\sqrt{q})^{k+2}} \Biggr\vert \le\sum_{k=0}^{ \infty} \frac{\Vert f\Vert _{\infty}}{(\sqrt{\vert q\vert })^{k+2}}=\frac{\Vert f\Vert _{ \infty}}{\sqrt{\vert q\vert }(\sqrt{\vert q\vert }-1)} $$

so that these two series are absolutely convergent.

Using this fact, (14), (15) and the assumption \(\vert q\vert >1\) we see that for a bounded solution \((x_{n})_{n\in\mathbb {N}_{0}}\) to equation (6) we must have

$$\begin{aligned} c_{0}+d_{0}=-\sum_{k=0}^{ \infty} \frac{(1+(-1)^{k})f_{k}}{2(\sqrt{q})^{k+2}}=-\sum_{j=0}^{ \infty} \frac{f_{2j}}{(\sqrt{q})^{2j+2}} \end{aligned}$$
(16)

and

$$\begin{aligned} c_{0}-d_{0}=\sum_{k=0}^{\infty} \frac {((-1)^{k}-1)f_{k}}{2(\sqrt{q})^{k+2}}=-\sum_{j=0}^{ \infty} \frac{f_{2j+1}}{(\sqrt{q})^{2j+3}} \end{aligned}$$
(17)

(at the moment we do not know if a bounded solution to (6) exists, but if it does, then its subsequences \((x_{2n})\) and \((x_{2n+1})\) will be bounded, which will imply that (16) and (17) must hold).

From (16) and (17) it follows that

$$\begin{aligned} c_{0}=-\frac{1}{2}\sum_{k=0}^{ \infty} \frac{f_{k}}{(\sqrt{q})^{k+2}} \end{aligned}$$
(18)

and

$$\begin{aligned} d_{0}=\frac{1}{2}\sum_{k=0}^{\infty} \frac {(-1)^{k+1}f_{k}}{(\sqrt{q})^{k+2}}. \end{aligned}$$
(19)

If we use (18) and (19) in (7), we get

$$\begin{aligned} x_{n}&= -(\sqrt{q})^{n}\frac{1}{2}\sum _{k=n}^{\infty}\frac{f_{k}}{( \sqrt{q})^{k+2}} +(-\sqrt{q})^{n} \frac{1}{2}\sum_{k=n}^{\infty} \frac{(-1)^{k+1}f _{k}}{(\sqrt{q})^{k+2}} \\ &= (\sqrt{q})^{n}\frac{1}{2}\sum_{k=n}^{\infty} \frac{((-1)^{n+k+1}-1)f _{k}}{(\sqrt{q})^{k+2}}, \end{aligned}$$
(20)

for \(n\in\mathbb{N}_{0}\).

A direct calculation shows that sequence \((x_{n})_{n\in\mathbb{N}_{0}}\) defined by (20) is a solution to equation (6). On the other hand, by using the assumptions of the theorem we easily get

$$\vert x_{n}\vert \le\frac{\Vert f\Vert _{\infty}}{\sqrt{\vert q\vert } (\sqrt{\vert q\vert }-1)}< \infty, \quad n\in \mathbb{N}_{0}, $$

from which the boundedness of \((x_{n})_{n\in\mathbb{N}_{0}}\), follows. From this and since \((c_{0}, d_{0})\) is a unique solution to the linear system (16)-(17), \((x_{n})_{n\in\mathbb{N}_{0}}\) defined by (20) is a unique bounded solution to equation (6). □

Now we are in a position to formulate and prove the main result in the section in an elegant way.

Theorem 2

Consider the difference equation (1), where

$$\begin{aligned} 1< a\le q_{n}\le b,\quad n\in\mathbb{N}_{0}, \end{aligned}$$
(21)

or

$$\begin{aligned} -b\le q_{n}\le-a< -1,\quad n\in\mathbb{N}_{0}, \end{aligned}$$
(22)

for some positive numbers a and b, and \((f_{n})_{n\in\mathbb {N}_{0}}\) is a bounded sequence of complex numbers. Then equation (1) has a unique bounded solution.

Proof

We will prove the theorem under condition (21). The proof when (22) holds is similar/dual so is omitted.

Let q be a positive number such that

$$\begin{aligned} q\in \bigl(\max \bigl\{ a,(b+1)/2 \bigr\} , b \bigr). \end{aligned}$$
(23)

Write equation (1) in the following form:

$$\begin{aligned} x_{n+2}-qx_{n}=(q_{n}-q)x_{n}+f_{n}, \end{aligned}$$
(24)

for \(n\in\mathbb{N}_{0}\).

Let A be the following operator defined on the class of all sequences:

$$\begin{aligned} A(u)= \Biggl((\sqrt{q})^{n}\frac{1}{2}\sum _{k=n}^{\infty}\frac{((-1)^{n+k+1}-1)((q_{k}-q)u_{k}+f_{k})}{(\sqrt {q})^{k+2}} \Biggr)_{n\in\mathbb{N}_{0}}. \end{aligned}$$
(25)

If \(u\in l^{\infty}\), then from (25) it follows that

$$\begin{aligned} \bigl\Vert A(u) \bigr\Vert _{\infty}&= \sup_{n\in\mathbb{N}_{0}} \Biggl\vert (\sqrt{q})^{n}\frac{1}{2}\sum _{k=n}^{\infty}\frac{((-1)^{n+k+1}-1)((q_{k}-q)u_{k}+f_{k})}{(\sqrt{q})^{k+2}} \Biggr\vert \\ &\le \sup_{n\in\mathbb{N}_{0}}\sum_{k=n}^{\infty} \frac{(q_{k}+q)\vert u_{k}\vert +\vert f_{k}\vert }{\vert \sqrt{q} \vert ^{k+2-n}} \\ &\le \frac{(b+q)\Vert u\Vert _{\infty}+\Vert f\Vert _{\infty}}{\sqrt{q}( \sqrt{q}-1)}< \infty, \end{aligned}$$

which means that the operator A maps the Banach space \(l^{\infty}\) into itself.

On the other hand, for every \(u,v\in l^{\infty}\) we have

$$\begin{aligned} \bigl\Vert A(u)-A(v) \bigr\Vert _{\infty}&= \sup_{n\in\mathbb{N}_{0}} \Biggl\vert (\sqrt{q})^{n}\frac{1}{2}\sum _{k=n}^{\infty}\frac{((-1)^{n+k+1}-1)(q_{k}-q)(u_{k}-v_{k})}{(\sqrt{q})^{k+2}} \Biggr\vert \\ &= \sup_{n\in\mathbb{N}_{0}} \Biggl\vert (\sqrt{q})^{n}\sum _{j=0}^{\infty}\frac{(q_{n+2j}-q)(u_{n+2j}-v_{n+2j})}{(\sqrt{q})^{n+2j+2}} \Biggr\vert \\ &\le \sup_{n\in\mathbb{N}_{0}}\sum_{j=0}^{\infty} \frac{\vert q_{n+2j}-q\vert \vert u_{n+2j}-v_{n+2j}\vert }{q^{j+1}} \\ &\le \frac{\max\{q-a,b-q\}}{q-1}\Vert u-v\Vert _{\infty}. \end{aligned}$$
(26)

Since \(a>1\) we have \(q-a< q-1\). On the other hand, from (23) we see that \(0< b-q< q-1\). From this and (26), we have

$$\begin{aligned} \bigl\Vert A(u)-A(v) \bigr\Vert _{ \infty}\le\hat{q}\Vert u-v\Vert _{\infty}, \end{aligned}$$
(27)

for every \(u,v\in l^{\infty}\), and for

$$\hat{q}:=\frac{\max\{q-a,b-q\}}{q-1}\in(0,1), $$

that is, \(A:l^{\infty}\to l^{\infty}\) is a contraction.

By the Banach fixed point theorem we see that the operator has a unique fixed point, say \(x^{*}=(x_{n}^{*})_{n\in\mathbb{N}_{0}}\in l^{\infty}\), that is, \(A(x^{*})=x^{*}\) or equivalently

$$\begin{aligned} x_{n}^{*}=(\sqrt{q})^{n}\frac{1}{2}\sum _{k=n}^{ \infty}\frac{((-1)^{n+k+1}-1)((q_{k}-q)x_{k}^{*}+f_{k})}{(\sqrt {q})^{k+2}}, \end{aligned}$$
(28)

for \(n\in\mathbb{N}_{0}\).

A direct calculation shows that this bounded sequence satisfies the difference equation (1) for every \(n\in\mathbb{N}_{0}\), from which the theorem follows. □

Remark 1

Beside the choice of operator (25), which is naturally imposed, a crucial point in the proof of Theorem 2 is the choice of constant q in (23) to get the contractivity of the operator. It is also expected that a modification of the above arguments can be applied to some other related difference equations.

3 Equation (1) versus the linear first-order difference equation

Another approach in dealing with equation (1) is to note that it is obtained from a linear first-order difference equation by scaling the indices. The linear first-order difference equation is of the form

$$\begin{aligned} x_{n+1}=q_{n}x_{n}+f_{n},\quad n\in \mathbb{N}_{0}, \end{aligned}$$
(29)

where \((q_{n})_{n\in\mathbb{N}_{0}}\) and \((f_{n})_{n\in\mathbb {N}_{0}}\) are arbitrary real (or complex) sequences and \(x_{0}\in\mathbb{R}\) (or \(x_{0}\in\mathbb{C}\)). The main feature of the equation is that it is solvable. How equation (29) is solved can be found, for example, in [2, 8, 23]. On periodic solutions to equation (29) see [9]. If \(q_{n}\ne0\) for every \(n\in\mathbb{N} _{0}\), then general solution to equation (29) can be obtained, for example, as follows. Dividing both sides of (29) by \(\prod_{j=0}^{n}q_{j}\), we obtain

$$\begin{aligned} \frac{x_{n+1}}{\prod_{j=0}^{n}q_{j}}=\frac {x_{n}}{\prod_{j=0}^{n-1}q_{j}}+\frac{f_{n}}{\prod_{j=0}^{n}q_{j}},\quad n\in \mathbb{N}_{0}. \end{aligned}$$
(30)

Summing the equalities in (30) from 0 to \(n-1\), we easily get the following formula for a general solution to equation (29):

$$\begin{aligned} x_{n}=\prod_{j=0}^{n-1}q_{j} \Biggl(x_{0}+\sum_{i=0}^{n-1} \frac {f_{i}}{\prod_{j=0}^{i}q_{j}} \Biggr). \end{aligned}$$
(31)

It is important to note that many nonlinear difference equations and systems can be reduced to some special cases of equation (29), which means that they are solvable too. Some interest in the area has been renewed recently. For some recent classes of solvable difference equations see, for example, [11, 13, 14, 16, 17, 19, 25], while some related systems of difference equations can be found in [10, 12, 16, 18]. For some recent results on solvable product-type systems of difference equations, see [15, 2022] and the references therein. For some classical equations and systems which can be reduced to (29) or solved by some other methods; see, for example, [3, 5, 6, 8, 23].

How useful and powerful equation (31) is shows the following small but nice result, which is an old result by the author which has never been published so far but has been presented at several talks.

Theorem 3

Consider equation (29). Assume that \(0< q_{n}\le p<1\), for \(n\in\mathbb{N}_{0}\), \((f_{n})_{n\in\mathbb {N}_{0}}\) is a sequence of real numbers, and that there is a finite

$$\begin{aligned} \lim_{n\to\infty}\frac{f_{n}}{1-q_{n}} . \end{aligned}$$
(32)

Then every real solution \((x_{n})_{n\in\mathbb{N}_{0}}\) to the equation is convergent.

Proof

Let the limit in (32) be equal to l. Since \(q_{n}\ne0\) for every \(n\in\mathbb{N}_{0}\) we see that every solution to equation (29) can be written in the form as in (31). Since

$$\frac{1}{p^{n}}\le\frac{1}{\prod_{j=0}^{n-1}q_{j}}< \frac{1}{\prod_{j=0}^{n}q_{j}} ,\quad n\in \mathbb{N}_{0}, $$

it follows that the sequence

$$Q_{n}=\frac{1}{\prod_{j=0}^{n-1}q_{j}}, \quad n\in\mathbb{N}, $$

increasingly tends to +∞ as \(n\to\infty\).

Using the Stoltz theorem ([7, 24]) and condition (32) we have

$$\lim_{n\to\infty}x_{n}=\lim_{n\to\infty} \frac{x_{0}+\sum_{i=0} ^{n-1}\frac{f_{i}}{\prod_{j=0}^{i}q_{j}}}{\frac{1}{\prod_{j=0}^{n-1}q _{j}}} =\lim_{n\to\infty}\frac{\frac{f_{n-1}}{\prod_{j=0}^{n-1}q _{j}}}{\frac{1-q_{n-1}}{\prod_{j=0}^{n-1}q_{j}}}=l, $$

which implies that \(\lim_{n\to\infty}x_{n}=l\), for every solution to equation (29), from which the theorem follows. □

Remark 2

Special cases of Theorem 3 frequently appear at problem books or students’ competitions (see, for example, [24]), but in all the cases that we have met so far the existence of the limit \(\lim_{n\to\infty}f_{n}\) is assumed. However, if (32) holds, then the limit need not exist. For example, if we assume that sequences \((q_{n})_{n\in\mathbb{N}_{0}}\) and \((f_{n})_{n\in\mathbb{N}_{0}}\) are defined as follows:

$$\begin{aligned} q_{2n} &=q_{0},\qquad q_{2n+1}=q_{1}, \\ f_{2n} &=f_{0},\qquad f_{2n+1}=f_{1}, \quad n\in \mathbb{N}_{0}, \end{aligned}$$

where the following conditions are satisfied:

$$\frac{f_{0}}{1-q_{0}}=\frac{f_{1}}{1-q_{1}}, $$

\(f_{1}\ne0\ne f_{0}\ne f_{1}\) and \(q_{1},q_{2}\in(0,1)\), then it is clear that

$$\lim_{n\to\infty}\frac{f_{n}}{1-q_{n}}=\frac{f_{0}}{1-q_{0}}, $$

but there is no \(\lim_{n\to\infty}f_{n}\).

If we assume that

$$\begin{aligned} \inf_{n\in\mathbb{N}_{0}}\vert q_{n}\vert =:q>1, \end{aligned}$$
(33)

then

$$\Biggl\vert \prod_{j=0}^{n-1}q_{j} \Biggr\vert \to+\infty,\quad \mbox{as } n \to\infty $$

(we can assume here also \(\liminf_{n\to\infty} \vert q_{n}\vert >1\)). Hence, in this case a solution to equation (29) will be bounded, only if

$$\begin{aligned} x_{0}=-\sum_{i=0}^{\infty} \frac{f_{i}}{\prod_{j=0}^{i}q_{j}}, \end{aligned}$$
(34)

and using (34) in (31), we see that it will be given by the following formula:

$$\begin{aligned} x_{n}=-\prod_{j=0}^{n-1}q_{j} \sum_{i=n}^{ \infty}\frac{f_{i}}{\prod_{j=0}^{i}q_{j}},\quad n\in \mathbb {N}_{0}. \end{aligned}$$
(35)

In order that (35) holds the convergence of the series in (34) is necessary, which will be so, for example, if \((f_{n})_{n\in\mathbb{N}_{0}}\) is a bounded sequence.

Now note that if \((x_{n})_{n\in\mathbb{N}_{0}}\) is a solution to equation (1), then its subsequences \((x_{2n})_{n\in\mathbb{N}_{0}}\) and \((x_{2n+1})_{n\in\mathbb{N}_{0}}\) are solutions to the equations

$$\begin{aligned} y_{n+1}=q_{2n}y_{n}+f_{2n},\quad n\in \mathbb{N}_{0}, \end{aligned}$$
(36)

and

$$\begin{aligned} y_{n+1}=q_{2n+1}y_{n}+f_{2n+1},\quad n\in \mathbb{N}_{0}, \end{aligned}$$
(37)

respectively, which are nothing but two difference equations of the form in (29), and consequently they are solvable.

By applying the arguments from (33) to (35), it is easy to see that the following result holds.

Theorem 4

Consider equation (1), where condition (33) holds and \((f_{n})_{n\in\mathbb{N}_{0}}\) is a bounded sequence. Then the equation has a unique bounded solution given by the formulas

$$\begin{aligned} x_{2n} &=-\prod_{j=0}^{n-1}q_{2j} \sum_{i=n}^{\infty}\frac{f_{2i}}{ \prod_{j=0}^{i}q_{2j}}, \\ x_{2n+1} &=-\prod_{j=0}^{n-1}q_{2j+1} \sum_{i=n}^{\infty}\frac{f_{2i+1}}{ \prod_{j=0}^{i}q_{2j+1}}, \end{aligned}$$

for every \(n\in\mathbb{N}_{0}\).

Remark 3

Theorem 4 also shows that equation (1) has a unique bounded solution if (33) holds and \((f_{n})_{n\in\mathbb{N} _{0}}\) is a bounded sequence, and gives it explicitly, although in not so nice way. Moreover, the conditions in Theorem 4 are somewhat weaker so that its result is somewhat stronger than the one in Theorem 2, which again shows the importance and usefulness of equation (31). Nevertheless, both approaches in dealing with equation (1) are interesting, each of them in its own way.

3.1 An abstract form of equation (29)

Equation (29) is not only ‘solvable’ for the case of real or complex initial values and coefficients. Namely, let S be a set equipped with two binary operations ⊙ and ⊕ (two maps which send elements of the Cartesian product \(S\times S\) to S), or in terminology of abstract algebra, let \((S,\odot)\) and \((S,\oplus)\) be two groupoids/magmas, such that operation ⊙ is left-distributive over ⊕, that is,

$$\begin{aligned} x\odot(y\oplus z)=(x\odot y)\oplus(x\odot z), \end{aligned}$$
(38)

for every \(x, y, z\in S\). Then the ‘difference’ equation

$$\begin{aligned} x_{n}=(a_{n-1}\odot x_{n-1})\oplus b_{n-1}, \quad n \in \mathbb{N}, \end{aligned}$$
(39)

where \(x_{0}\in S\), \(a_{n},b_{n}\in S\), \(n\in\mathbb{N}_{0}\), is solvable.

Indeed, for \(n=1\), we get \(x_{1}=(a_{0}\odot x_{0})\oplus b_{0}\). From equality (39) with \(n=2\) along with (38), is obtained

$$x_{2}= \bigl(a_{1}\odot \bigl((a_{0}\odot x_{0})\oplus b_{0} \bigr) \bigr)\oplus b_{1}= \bigl(a _{1}\odot(a_{0}\odot x_{0}) \bigr) \oplus(a_{1}\odot b_{0})\oplus b_{1}. $$

An inductive argument shows that

$$\begin{aligned} x_{n}= {}& \bigl(a_{n-1}\odot \bigl(a_{n-2}\odot \cdots\odot(a_{0}\odot x_{0}) \cdots \bigr) \bigr) \\ &{}\oplus \bigl(a_{n-1}\odot \bigl(a_{n-2}\odot\cdots \odot(a_{1}\odot b_{0}) \cdots \bigr) \bigr)\oplus\cdots \oplus(a_{n-1}\odot b_{n-2})\oplus b_{n-1}, \end{aligned}$$
(40)

for every \(n\in\mathbb{N}\), which means that (40) is a formula for general solution to equation (39) under the posed conditions.

If operation ⊙ has precedence over ⊕, that is, if

$$x\odot y\oplus z=(x\odot y)\oplus z, $$

for every \(x, y, z\in S\), then equation (40) can be written in the following form:

$$\begin{aligned} x_{n}={} &a_{n-1}\odot \bigl(a_{n-2}\odot\cdots \odot(a_{0}\odot x_{0}) \cdots \bigr) \\ &{}\oplus a_{n-1}\odot \bigl(a_{n-2}\odot\cdots \odot(a_{1}\odot b_{0}) \cdots \bigr)\oplus\cdots\oplus a_{n-1}\odot b_{n-2}\oplus b_{n-1},\quad n\in\mathbb{N}. \end{aligned}$$

If further \((S,\odot)\) is a semigroup; a groupoid where operation ⊙ is associative, that is,

$$(x\odot y)\odot z=x\odot(y\odot z), $$

for every \(x, y, z\in S\), then from the well known fact that in this case for every set \(d_{1},d_{2},\ldots, d_{k}\) of elements from S the product

$$\begin{aligned} \bigodot_{j=1}^{k}d_{j}:=d_{1}\odot d_{2}\odot\cdots \odot d_{k} \end{aligned}$$
(41)

is unambiguous, that is, the same element is obtained regardless of how parentheses are inserted in product (41), equation (40) can be written in the following form:

$$\begin{aligned} x_{n}= {}&a_{n-1}\odot a_{n-2}\odot\cdots\odot a_{0}\odot x_{0} \\ &{}\oplus a_{n-1}\odot a_{n-2}\odot\cdots\odot a_{1} \odot b_{0} \oplus\cdots\oplus a_{n-1}\odot b_{n-2} \oplus b_{n-1} \\ ={} & \Biggl(\bigodot_{j=0}^{n-1}a_{n-1-j} \Biggr)\odot x_{0}\oplus \bigoplus_{j=0}^{n-1} \Biggl(\bigodot_{i=0}^{n-2-j}a_{n-1-i} \Biggr) \odot b_{j},\quad n\in\mathbb{N}, \end{aligned}$$

where if \(d_{1},d_{2},\ldots, d_{k}\in S\), then

$$\begin{aligned} \bigoplus_{j=1}^{k}d_{j}:=d_{1} \oplus d_{2}\oplus \cdots\oplus d_{k}. \end{aligned}$$
(42)

Note that in (41) and (42) the order of elements is important, since we do not assume commutativity of these operations on S.

If further the operation ⊙ is commutative, that is,

$$x\odot y=y\odot x, $$

for every \(x,y\in S\), then equation (40) can be written in the following form:

$$\begin{aligned} x_{n} = & \Biggl(\bigodot_{j=0}^{n-1}a_{j} \Biggr)\odot x_{0}\oplus \bigoplus_{j=0}^{n-1} \Biggl(\bigodot_{i=j+1}^{n-1}a_{i} \Biggr)\odot b _{j},\quad n\in\mathbb{N}, \end{aligned}$$

from which if \(S=\mathbb{R}\) or \(S=\mathbb{C}\) and ⊙ and ⊕ are multiplication and addition in \(\mathbb{R}\) or \(\mathbb{C}\), respectively, is obtained equation (30).