1 Introduction

Let \(\mathbb {N}\), \(\mathbb {R}\) denote the set of positive integers and all real numbers, respectively. In this paper, we assume \(a,b:\mathbb {N}\rightarrow \mathbb {R}\), \(r:\mathbb {N}\rightarrow \mathbb {R}\setminus \{0\}\), \(f:\mathbb {R}\rightarrow \mathbb {R}\), \(\sigma :\mathbb {N}\rightarrow \mathbb {N}\), \(\lim \limits _{n\rightarrow \infty }\sigma (n)=\infty \), and consider the second-order discrete equation with quasidifferences of the form

$$\begin{aligned} \varDelta (r_n\varDelta x_n)=a_nf(x_{\sigma (n)})+b_n. \end{aligned}$$
(E)

By a solution of Eq. (E), we mean a sequence x which satisfies the equality (E) for all large n.

Let us note that a particular case of Eq. (E) is the well-known Sturm–Liouville difference equation

$$\begin{aligned} \varDelta (r_n \varDelta x_{n})=a_nx_{n+1}, \end{aligned}$$
(1)

which has many applications in mathematical physics, matrix theory, control theory or discrete variational theory. Equation (1) has been extensively studied by many authors, especially with regard to the oscillation, disconjugacy and boundary value problems, see, for example, [1,2,3, 5, 6, 8,9,10,11, 20]. Several results devoted to asymptotic properties of (1) and for slightly more general equations can be found in [2, 7, 12, 17,18,19, 23,24,25,26]. In the presented paper, using the Schauder’s-type fixed point theorem, we establish conditions under which for a given sequence y, which solves \(\varDelta (r_n\varDelta y_n)=b_n\), Eq. (E) possesses a solution x such that

$$\begin{aligned} x_n=y_n+\mathrm {o}(u_n), \end{aligned}$$
(2)

where u is a positive, nonincreasing sequence. If Eq. (2) is satisfied, then x is called a solution with prescribed asymptotic behavior, and y is called an approximative solution of (E). Taking different sequences u, we may control the degree of approximation. In particular, if \(u_n=n^s\) for some fixed \(s\in (-\infty ,0]\), then we have harmonic approximation. If \(u_n=\alpha ^n\) for some fixed \(\alpha \in (0,1)\), then we get geometric approximation. We believe that very strong geometric approximation is important from a numerical point of view. It is worth noticing that our results are new even in the case when \(u_n=1\).

We present also an application of the obtained results to the study of asymptotic periodicity of solutions to Eq. (E). The study of the existence of periodic or asymptotically periodic solutions is a very important topic in the qualitative theory of difference equations because of its many applications in mathematical biology, chemistry, physics, economics and other fields, see, e.g., [1, 13]. The existence of asymptotically periodic solutions of Eq. (E) was considered, for example, in [4, 16, 21, 22] or [25].

We also apply our results to the study of asymptotic properties of bounded solutions to discrete Sturm–Liouville Eq. (1). Moreover, using the Sturm separation theorem and our results we obtain some nonoscillation criteria for Eq. (1).

The paper is organized as follows. In Sect. 2, we introduce some preliminary lemmas. In Sect. 3, we study the problem of the existence of solutions with prescribed asymptotic behavior. In Sect. 4, we apply our results to the study of asymptotically periodic solutions. Section 5 is devoted to the study of solutions to discrete Sturm–Liouville Eq. (1). In Sect. 6, the proof of Theorem 1 and some additional remarks are presented.

2 Preliminaries

The space of all sequences \(x:\mathbb {N}\rightarrow \mathbb {R}\) we denote by \(\mathbb {R}^\mathbb {N}\). If \(x\in \mathbb {R}^\mathbb {N}\), then |x| denotes the sequence defined by \(|x|(n)=|x_n|\) and

$$\begin{aligned} \Vert x\Vert =\sup \{|x_n|: n\in \mathbb {N}\}. \end{aligned}$$

We will use the convention \(\sum _{i=k}^nd_i=0\) whenever \(n<k\); moreover, we will use the following notation:

$$\begin{aligned} r^*,\widehat{r}:\mathbb {N}\rightarrow \mathbb {R}, \quad r^*_n=\sum _{i=1}^{n-1}\frac{1}{r_i}, \quad \widehat{r}_n=\max \{|r^*_1|,|r^*_2|,\dots ,|r^*_{n+1}|\}. \end{aligned}$$

The sequence \(\widehat{r}\) we introduce for technical reasons. One of them is the following important property of \(\widehat{r}\)

$$\begin{aligned} \left| \sum _{i=n}^k\frac{1}{r_i}\right| = \left| \sum _{i=1}^k\frac{1}{r_i}-\sum _{i=1}^{n-1}\frac{1}{r_i}\right| \le 2\widehat{r}_k \quad \text {for}\quad k\ge n. \end{aligned}$$
(3)

Note that if \(r>0\), then \(\widehat{r}_n=r^*_{n+1}\) for any n.

In the proofs of the main results, we will need some lemmas which are presented below. The straightforward proof of these lemmas we leave to the reader.

Lemma 1

A sequence y is a solution of the equation \(\varDelta (r_n\varDelta y_n)=b_n\) if and only if there exist real constants \(c_1,c_2\) such that

$$\begin{aligned} y_n=\sum _{j=1}^{n-1}\frac{1}{r_j}\sum _{i=1}^{j-1}b_i+c_1\sum _{j=1}^{n-1}\frac{1}{r_j}+c_2 \end{aligned}$$

for any n.

Lemma 2

If \(\sum _{k=1}^\infty \widehat{r}_k|x_k|<\infty \), then for any \(n\in \mathbb {N}\) we have

$$\begin{aligned} \varDelta \left( r_n\varDelta \left( \sum _{k=n}^\infty x_k\sum _{i=n}^k\frac{1}{r_i}\right) \right) = x_n. \end{aligned}$$

Lemma 3

If \(n\in \mathbb {N}\) and

$$\begin{aligned} \sum _{k=1}^\infty \frac{1}{|r_k|}\sum _{i=k}^\infty |x_i|<\infty , \quad \text {then}\quad \varDelta \left( r_n\varDelta \left( \sum _{k=n}^\infty \frac{1}{r_k}\sum _{i=k}^\infty x_i\right) \right) =x_n. \end{aligned}$$

Lemma 4

If \(x:\mathbb {N}\rightarrow \mathbb {R}\), \(u:\mathbb {N}\rightarrow (0,\infty )\), \(\varDelta u\le 0\), and

$$\begin{aligned} \sum _{k=1}^\infty \frac{\widehat{r}_k|x_k|}{u_k}<\infty , \quad \text {then}\quad \sum _{k=n}^\infty x_k\sum _{i=n}^k\frac{1}{r_i}=\mathrm {o}(u_n). \end{aligned}$$

Lemma 5

If \(x:\mathbb {N}\rightarrow \mathbb {R}\), \(u:\mathbb {N}\rightarrow (0,\infty )\), \(\varDelta u\le 0\), and

$$\begin{aligned} \sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{i=k}^\infty |x_i|<\infty , \quad \text {then}\quad \sum _{k=n}^\infty \frac{1}{r_k}\sum _{i=k}^\infty x_i=\mathrm {o}(u_n). \end{aligned}$$

Lemma 6

If \(g,w:\mathbb {N}\rightarrow [0,\infty )\), \(\sum _{j=1}^\infty g_j<\infty \), and \(n\in \mathbb {N}\), then

$$\begin{aligned} \sum _{k=n}^\infty w_k\sum _{j=k}^\infty g_j=\sum _{k=n}^\infty g_k\sum _{j=n}^k w_j. \end{aligned}$$

3 Solutions with Prescribed Asymptotic Behavior

In this section, in Theorem 1, we present our main result. We establish conditions under which for a given solution y of the equation \(\varDelta (r_n\varDelta y_n)=b_n\) and a given positive, nonincreasing sequence u there exists a solution x of (E) such that \(x_n=y_n+\mathrm {o}(u_n)\). Next, we present various consequences of Theorem 1. The proof of Theorem 1 is presented in Sect. 6.

Theorem 1

Assume y is a solution of the equation \(\varDelta (r_n\varDelta y_n)=b_n\),

$$\begin{aligned}&u:\mathbb {N}\rightarrow (0,\infty ), \quad \varDelta u\le 0, \end{aligned}$$
(4)
$$\begin{aligned}&\quad q\in \mathbb {N}, \quad \alpha \in (0,\infty ), \quad U=\bigcup _{n=q}^\infty [y_n-\alpha ,y_n+\alpha ], \end{aligned}$$
(5)
$$\begin{aligned}&(a) \ \ \sum _{k=1}^\infty \frac{\widehat{r}_k|a_k|}{u_k}<\infty \quad \text {or}\quad (b) \ \ \sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{i=k}^\infty |a_i|<\infty , \end{aligned}$$
(6)

and f is continuous and bounded on U. Then, there exists a solution x of (E) such that \(x_n=y_n+\mathrm {o}(u_n)\).

We say that a sequence \(y\in \mathbb {R}^\mathbb {N}\) is f-regular if there exist an index q and a positive number \(\alpha \) such that f is continuous and bounded on the set

$$\begin{aligned} \bigcup _{n=q}^\infty [y_n-\alpha ,y_n+\alpha ]. \end{aligned}$$

It is clear that if f is continuous on \(\mathbb {R}\), then any bounded sequence is f-regular. Hence, the following corollary is an immediate consequence of Theorem 1.

Corollary 1

Assume (4), (6), f is continuous and y is a bounded solution of the equation \(\varDelta (r_n\varDelta y_n)=b_n\). Then, there exists a solution x of (E) such that \(x_n=y_n+\mathrm {o}(u_n)\).

In the next corollary, we present a result concerning harmonic approximation.

Corollary 2

Assume y is an f-regular solution of the equation \(\varDelta (r_n\varDelta y_n)=b_n\),

$$\begin{aligned} s\in (-\infty ,0], \ \tau \in [s,\infty ), \ r_n^{-1}=\mathrm {O}(n^\tau ), \ \text {and} \ \sum _{n=1}^\infty n^{1+\tau -s}|a_n|<\infty . \end{aligned}$$
(7)

Then, there exists a solution x of (E) such that \(x_n=y_n+\mathrm {o}(n^s)\).

Proof

Let \(u_n=n^s\) for any n. Choose a positive constant M such that \(|r^{-1}_k|\le Mk^\tau \) for any k. Using Lemma 6, we get

$$\begin{aligned} \sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{i=k}^\infty |a_i|\le & {} M\sum _{k=1}^\infty \sum _{i=k}^\infty k^{\tau -s}|a_i| \le M\sum _{k=1}^\infty \sum _{i=k}^\infty i^{\tau -s}|a_i|\\= & {} M\sum _{k=1}^\infty k^{1+\tau -s}|a_k|<\infty . \end{aligned}$$

Now, using Theorem 1, we obtain the result. \(\square \)

Remark 1

If \(\tau \in [s,\infty )\), \(\gamma =2+\tau -s\), then, by [15, Section 6], any of the following conditions

$$\begin{aligned} \liminf _{n\rightarrow \infty }n\left( \frac{|a_n|}{|a_{n+1}|}-1\right)>\gamma , \quad \limsup _{n\rightarrow \infty }\frac{\ln |a_n|}{\ln n}<-\gamma , \quad \liminf _{n\rightarrow \infty }n\ln \frac{|a_n|}{|a_{n+1}|}>\gamma \end{aligned}$$

imply

$$\begin{aligned} \sum _{n=1}^\infty n^{1+\tau -s}|a_n|<\infty . \end{aligned}$$

The following result is devoted to geometric approximation.

Corollary 3

Assume y is an f-regular solution of the equation \(\varDelta (r_n\varDelta y_n)=b_n\),

$$\begin{aligned} \tau \in \mathbb {R}, \ r_n^{-1}=\mathrm {O}(n^\tau ), \ \text {and} \ \limsup _{n\rightarrow \infty }\root n \of {|a_n|}<\beta <1. \end{aligned}$$
(8)

Then, there exists a solution x of (E) such that \(x_n=y_n+\mathrm {o}(\beta ^n)\).

Proof

Let u be a sequence defined by \(u_n=\beta ^n\). It is easy to see that \(\widehat{r}_n=\mathrm {O}(n^{\tau +1})\). Hence,

$$\begin{aligned} \limsup _{n\rightarrow \infty }\root n \of {\frac{\widehat{r}_n|a_n|}{u_n}}<1. \end{aligned}$$

Therefore, the assertion is a consequence of Theorem 1. \(\square \)

So far, we did not impose any conditions on the sequence b. Now, we assume that b is “small.” That allows us to obtain simpler asymptotic behavior of solutions of Eq. (E). Namely, we may replace solutions y of the equation \(\varDelta (r_n\varDelta y_n)=b_n\) by solutions of the equation \(\varDelta (r_n\varDelta y_n)=0\).

Theorem 2

Assume (4),

$$\begin{aligned} (a') \ \ \sum _{k=1}^\infty \frac{\widehat{r}_k(|a_k|+|b_k|)}{u_k}<\infty , \quad \text {or}\quad (b') \ \ \sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{i=k}^\infty (|a_i|+|b_i|)<\infty . \end{aligned}$$
(9)

and y is an f-regular solution of the equation \(\varDelta (r_n\varDelta y_n)=0\). Then, there exists a solution x of (E) such that \(x_n=y_n+\mathrm {o}(u_n)\).

Proof

Choose an index q and a positive number \(\alpha \) such that f is continuous and bounded on

$$\begin{aligned} U=\bigcup _{n=q}^\infty [y_n-\alpha ,y_n+\alpha ]. \end{aligned}$$

Choose a number \(\alpha '\in (0,\alpha )\), and let \(\beta =\alpha -\alpha '\). Define sequences \(v,y'\) by

$$\begin{aligned} v_n= {\left\{ \begin{array}{ll} \sum _{k=n}^\infty b_k\sum _{i=n}^k\frac{1}{r_i} &{} \text {in case }(a')\\ \sum _{k=n}^\infty \frac{1}{r_k}\sum _{i=k}^\infty b_i &{} \text {in case }(b') \end{array}\right. }, \qquad y'_n=y_n+v_n. \end{aligned}$$

Using Lemma 4 or Lemma 5, we get \(v_n=\mathrm {o}(u_n)\). Hence, there exists an index \(q'\ge q\) such that \(|v_n|\le \beta \) for any \(n\ge q'\). Let

$$\begin{aligned} U'=\bigcup _{n=q'}^\infty [y'_n-\alpha ',y'_n+\alpha ']. \end{aligned}$$

If \(t\in U'\), then there exists an index \(k\ge q'\) such that \(|t-y'_k|\le \alpha '\). Then,

$$\begin{aligned} |t-y_k|=|t-y'_k+y'_k-y_k|\le |t-y'_k|+|y'_k-y_k|\le \alpha '+|v_k|\le \alpha '+\beta =\alpha . \end{aligned}$$

Hence, \(U'\subset U\). Therefore, f is continuous and bounded on \(U'\). Using Lemma 2 or Lemma 3, we get \(\varDelta (r_n\varDelta v_n)=b_n\). Thus,

$$\begin{aligned} \varDelta (r_n\varDelta y'_n)=\varDelta (r_n\varDelta y_n)+\varDelta (r_n\varDelta v_n)=0+b_n=b_n. \end{aligned}$$

By Theorem 1, there exists a solution x of (E) such that \(x_n=y'_n+\mathrm {o}(u_n)\). Then,

$$\begin{aligned} x_n=y_n+v_n+\mathrm {o}(u_n)=y_n+\mathrm {o}(u_n). \end{aligned}$$

\(\square \)

The following harmonic approximation case of Theorem 2 generalizes [17, Theorem 1].

Corollary 4

Assume (7), y is an f-regular solution of the equation \(\varDelta (r_n\varDelta y_n)=0\), and

$$\begin{aligned} \sum _{n=1}^\infty n^{1+\tau -s}|b_n|<\infty . \end{aligned}$$

Then, there exists a solution x of (E) such that \(x_n=y_n+\mathrm {o}(n^s)\).

Proof

Let \(u_n=n^s\) for any n. Similarly, as in the proof of Corollary 2 we get

$$\begin{aligned} \sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{i=k}^\infty (|a_i|+|b_i|)<\infty . \end{aligned}$$

Hence, the assertion is a consequence of Theorem 2. \(\square \)

Below we get the geometric approximation case of Theorem 2.

Corollary 5

Assume y is an f-regular solution of the equation \(\varDelta (r_n\varDelta y_n)=0\),

$$\begin{aligned} \tau \in \mathbb {R}, \ r_n^{-1}=\mathrm {O}(n^\tau ), \ \text {and} \ \limsup _{n\rightarrow \infty }\root n \of {|a_n|+|b_n|}<\beta <1. \end{aligned}$$

Then, there exists a solution x of (E) such that \(x_n=y_n+\mathrm {o}(\beta ^n)\).

Proof

As in the proof of Corollary 3, we have \(\limsup \limits _{n\rightarrow \infty }\root n \of {\widehat{r}_n\beta ^{-n}(|a_n|+|b_n|)}<1\). Using Theorem 2, with \(u_n=\beta ^n\), we get the result. \(\square \)

If the function f is continuous on \(\mathbb {R}\) and the sequence \(r^*\) is bounded, we obtain an especially simple case of Theorem 2. The presented result generalizes [16, Theorem 2.1].

Corollary 6

Assume (4), f is continuous, the sequence \(r^*\) is bounded, and

$$\begin{aligned} \sum _{k=1}^\infty \frac{|a_k|+|b_k|}{u_k}<\infty . \end{aligned}$$

Then, for any real constants cd there exists a solution x of (E) such that

$$\begin{aligned} x_n=cr^*_n+d+\mathrm {o}(u_n). \end{aligned}$$

Proof

The boundedness of \(r^*\) implies the boundedness of \(\widehat{r}\). Hence,

$$\begin{aligned} \sum _{k=1}^\infty \frac{\widehat{r}_k(|a_k|+|b_k|)}{u_k}<\infty . \end{aligned}$$

Assume \(c,d\in \mathbb {R}\). By Lemma 1, the sequence \(y_n=cr^*_n+d\) is a solution of the equation \(\varDelta (r_n\varDelta y_n)=0\). Moreover, y is bounded. Hence, using Theorem 2, we obtain the result. \(\square \)

As we mentioned before, Theorem 1 generalizes [17, Theorem 1], [16, Theorem 2.1], and [16, Theorem 2.2]. Below we present an example illustrating Theorem 1. None of these theorems can be applied to the equation given in this example.

Example 1

Assume \(s\in (-1,0]\),

$$\begin{aligned} r_n=(-1)^nn, \quad a_n=\frac{(-1)^{n}}{(n+1)^2} \left( \sum ^{n-1}_{j=1}\frac{(-1)^{j}}{j}+\frac{1}{n^2}\right) \quad b_n=(-1)^n\frac{3n+4}{n(n+2)^2}, \end{aligned}$$

and

$$\begin{aligned} \sigma (n)=n, \quad u_n=n^s, \quad y_n=\sum _{k=1}^{n-1}\frac{(-1)^{k}}{k}, \quad f(t)={\left\{ \begin{array}{ll}\frac{1}{t}, \ \text{ for }\ t\ne 0,\\ 1,\ \text{ for }\ t=0 \end{array}\right. }. \end{aligned}$$

Then, Eq. (E) takes the form

$$\begin{aligned} \varDelta ((-1)^nn\varDelta x_n)=a_nf(x_n)+(-1)^n\frac{3n+4}{n(n+2)^2}. \end{aligned}$$
(10)

By Lemma 1, the sequence y is a solution of \(\varDelta ((-1)^nn\varDelta y_n)=0\). Obviously, y is convergent and f-regular. There exists a positive constant M such that

$$\begin{aligned} |a_n|\le \frac{M}{(n+1)^2} \end{aligned}$$

for any \(n\in \mathbb {N}\). Using the formula \(\sum _{j=k}^\infty \frac{1}{j(j+1)}=\frac{1}{k}\), we obtain

$$\begin{aligned}&\sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{j=k}^\infty (|a_j|+|b_j|) \le \sum _{k=1}^\infty \frac{1}{k^{1+s}}\sum _{j=k}^\infty \left( \frac{M}{(j+1)^2} +\frac{3j+4}{j(j+2)^2}\right) \\&\quad \le \sum _{k=1}^\infty \frac{1}{k^{1+s}}\sum _{j=k}^\infty \frac{M+7}{j(j+1)} =(M+7)\sum _{k=1}^\infty \frac{1}{k^{2+s}}<\infty , \end{aligned}$$

Hence, by Corollary 2, there exists a solution x of (10) such that \(x_n=y_n+\mathrm {o}(u_n)\). The sequence \(x_n=y_n+n^{-2}\) is such a solution. Note that theorem [17, Theorem 1] cannot be applied to Eq. (10) because the condition \(r>0\) is not satisfied. Moreover, since the sequences \(r^*\) and b are not periodic, theorems [16, Theorem 2.1] and [16, Theorem 2.2] also cannot be applied to Eq. (10).

4 Asymptotically Periodic Solutions

In this section, we present the application of the previously obtained results to the study of asymptotic periodicity of solutions to Eq. (E). The presented results generalize the main results of [16]. In the first two corollaries, we establish sufficient conditions for the existence of asymptotically periodic solutions. The following result is a consequence of Corollary 6.

Corollary 7

Assume f is continuous,

$$\begin{aligned} u:\mathbb {N}\rightarrow (0,\infty ), \quad \varDelta u\le 0, \quad \omega \in \mathbb {N}, \end{aligned}$$
(11)

the sequence \(r^*\) is \(\omega \)-periodic, and

$$\begin{aligned} \sum _{k=1}^\infty \frac{|a_k|+|b_k|}{u_k}<\infty . \end{aligned}$$
(12)

Then, for any real constants cd there exists an asymptotically \(\omega \)-periodic solution x of (E) such that \(x_n=cr^*_n+d+\mathrm {o}(u_n)\).

Corollary 8

Assume (11), f is continuous, the sequence \(r^*\) is bounded, y is an \(\omega \)-periodic solution of the equation \(\varDelta (r_n\varDelta y_n)=b_n\), and

$$\begin{aligned} \sum _{k=1}^\infty \frac{|a_k|}{u_k}<\infty . \end{aligned}$$
(13)

Then, for any real constant d there exists an asymptotically \(\omega \)-periodic solution x of (E) such that \(x_n=y_n+d+\mathrm {o}(u_n)\).

Proof

For any \(d\in \mathbb {R}\), the sequence \(d+y_n\) is a bounded solution of the equation \(\varDelta (r_n\varDelta y_n)=b_n\). Using Corollary 1, we obtain the result. \(\square \)

The following example illustrates Corollary 8.

Example 2

Let \(r_n=n^2\), \(f(t)=t\), \(\sigma (n)=n\),

$$\begin{aligned} a_n=\frac{-1}{(n+1)(n+2)(3+2(-1)^n+n^{-1})}, \quad b_n=4(-1)^n(2n^2+2n+1). \end{aligned}$$

Then, Eq. (E) takes the form

$$\begin{aligned} \varDelta (n^2\varDelta x_n)=\frac{-x_n}{(n+1)(n+2)(3+2(-1)^n+n^{-1})}+4(-1)^n(2n^2+2n+1). \end{aligned}$$
(14)

Let

$$\begin{aligned} y_n=3+2(-1)^n, \quad u_n=\frac{1}{\sqrt{n}}. \end{aligned}$$

Then, y is a 2-periodic solution of the equation \(\varDelta (n^2\varDelta x_n)=b_n\). Obviously, the sequence \(r^*\) is bounded and the condition (13) is satisfied. Hence, by Corollary 8, there exists an asymptotically 2-periodic solution x of Eq. (14) such that \(x_n=y_n+\mathrm {o}(u_n)\). Indeed, the sequence \(x_n=3+2(-1)^n+n^{-1}\) is such a solution.

5 Sturm–Liouville Discrete Equations

Now, we apply our results to discrete Sturm–Liouville equation

$$\begin{aligned} \varDelta (r_n\varDelta x_n)=a_nx_{n+1}. \end{aligned}$$
(15)

First, we present some results concerning asymptotic properties of bounded solutions. Next, we give some nonoscillation criteria.

Theorem 3

Assume

$$\begin{aligned} u:\mathbb {N}\rightarrow (0,\infty ), \quad \varDelta u\le 0, \end{aligned}$$
(16)

and

$$\begin{aligned} \sum _{k=1}^\infty \frac{\widehat{r}_k|a_k|}{u_k}<\infty \quad \text {or}\quad \sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{i=k}^\infty |a_i|<\infty . \end{aligned}$$
(17)

Then, for any bounded solution y of the equation

$$\begin{aligned} \varDelta (r_n\varDelta y_n)=0 \end{aligned}$$
(18)

there exists a solution x of (15) such that \(x_n=y_n+\mathrm {o}(u_n)\).

Proof

Taking \(b_n=0\), \(\sigma (n)=n+1\) for any \(n\in \mathbb {N}\), and \(f(t)=t\) for any \(t\in \mathbb {R}\) and using Corollary 1, we get the result. \(\square \)

Note that, by Lemma 1, a sequence y is a solution of the Eq. (18) if and only if there exist real constants cd such that

$$\begin{aligned} y_n=cr^*_n+d, \quad \text {where}\quad r^*_n=\sum _{i=1}^{n-1}\frac{1}{r_i}. \end{aligned}$$

In particular, any constant sequence is a solution of (18). If the sequence \(r^*\) is bounded, then any solution of (18) is bounded. On the other hand, if \(r^*\) is unbounded, then the only bounded solutions of (18) are constant.

Corollary 9

Assume (16), the sequence \(r^*\) is bounded, and

$$\begin{aligned} \sum _{k=1}^\infty \frac{|a_k|}{u_k}<\infty . \end{aligned}$$

Then, for any real constants cd there exists a solution x of (15) such that

$$\begin{aligned} x_n=cr^*_n+d+\mathrm {o}(u_n). \end{aligned}$$

Proof

Since the sequence \(r^*\) is bounded, the sequence \(\widehat{r}_n=\max \{|r^*_1|,|r^*_2|,\dots ,|r^*_{n+1}|\}\) is bounded, too. Hence,

$$\begin{aligned} \sum _{k=1}^\infty \frac{\widehat{r}_k|a_k|}{u_k}<\infty . \end{aligned}$$

Let \(c,d\in \mathbb {R}\). Since the sequence \(r^*\) is bounded, the sequence \(cr^*_n+d\) is a bounded solution of (18). Using Theorem 3, we obtain the result. \(\square \)

From Corollary 2, we get the result on harmonic approximation.

Corollary 10

If \(s\in (-\infty ,0]\), \(\tau \in [s,\infty )\), \(r_n^{-1}=\mathrm {O}(n^\tau )\), and \(\sum _{n=1}^\infty n^{1+\tau -s}|a_n|<\infty \), then for any bounded solution y of (18) there exists a solution x of (15) such that \(x_n=y_n+\mathrm {o}(n^s)\).

Analogously, from Corollary 3 we get the geometric approximation.

Corollary 11

Assume \(\tau \in \mathbb {R}\), \(r_n^{-1}=\mathrm {O}(n^\tau )\), and \(\limsup _{n\rightarrow \infty }\root n \of {|a_n|}<\beta <1\). Then, for any bounded solution y of (18) there exists a solution x of (15) such that \(x_n=y_n+\mathrm {o}(\beta ^n)\).

If \(c,d\in \mathbb {R}\) and the sequence \(r^*\) is bounded, then the sequence \(cr^*+d\) is a bounded solution of (18). Hence, from Corollary 10, we obtain

Corollary 12

If \(s\in (-\infty ,0]\), \(\tau \in [s,\infty )\), \(r_n^{-1}=\mathrm {O}(n^\tau )\), \(\sum _{n=1}^\infty n^{1+\tau -s}|a_n|<\infty \), and the sequence \(r^*\) is bounded, then for any real constants cd there exists a solution x of (15) such that

$$\begin{aligned} x_n=cr^*_n+d+\mathrm {o}(n^s). \end{aligned}$$

A sequence \(y\in \mathbb {R}^\mathbb {N}\) is said to be nonoscillatory if \(y_ny_{n+1}>0\) for any large n. In the other case, the sequence y is said to be oscillatory. We say that Eq. (15) is nonoscillatory if all its nontrivial solutions are nonoscillatory. By the Sturm separation theorem, see, for example, [13, Theorem 6.5], either all solutions of (15) are oscillatory or Eq. (15) is nonoscillatory. In particular, if there exists a convergent solution of (15) with nonzero limit, then Eq. (15) is nonoscillatory. From our results, we can get some sufficient conditions for the existence of convergent solutions. Combining these conditions and the Sturm separation theorem, we obtain some nonoscillation criteria for Eq. (15).

Corollary 13

Assume \(\tau \in [0,\infty )\), \(r_n^{-1}=\mathrm {O}(n^\tau )\), and \(\sum _{n=1}^\infty n^{1+\tau }|a_n|<\infty \). Then, Eq. (15) is nonoscillatory.

Corollary 14

Assume \(\tau \in [0,\infty )\), \(r_n^{-1}=\mathrm {O}(n^\tau )\), \(\alpha \in (-\infty , -2-\tau )\), and \(a_n=\mathrm {O}(n^\alpha )\). Then, Eq. (15) is nonoscillatory.

Corollary 15

If \(\tau \in \mathbb {R}\), \(r_n^{-1}=\mathrm {O}(n^\tau )\), and \(\limsup _{n\rightarrow \infty }\root n \of {|a_n|}<1\), then Eq. (15) is nonoscillatory.

6 The proof of Theorem 1 and additional remarks

The proof of Theorem 1 is based on the following Schauder-type fixed point lemma. This lemma is a consequence of the proof of [14, Theorem 1].

Lemma 7

Let y be a real sequence, and let \(\rho \) be a positive sequence which is convergent to zero. Define a metric space (Xd) by

$$\begin{aligned} X=\{x\in \mathbb {R}^\mathbb {N}:\ |x_n-y_n|\le \rho _n \quad \text {for any }n\in \mathbb {N}\}, \quad d(x,z)=\sup _{n\in \mathbb {N}}|x_n-z_n|. \end{aligned}$$

Then, for any continuous map \(H: X\rightarrow X\) there exists a point x in X such that \(Hx=x\).

Now, we provide the proof of Theorem 1.

Proof

For \(n\in \mathbb {N}\) and \(x\in \mathbb {R}^\mathbb {N}\), let

$$\begin{aligned} F(x)(n)=a_nf(x_{\sigma (n)}). \end{aligned}$$
(19)

Let

$$\begin{aligned} Y=\{x\in \mathbb {R}^\mathbb {N}: |y-x|\le \alpha \}. \end{aligned}$$

Choose a positive constant L, such that

$$\begin{aligned} |f(t)|\le L \end{aligned}$$
(20)

for any \(t\in U\). For \(n\in \mathbb {N}\), let

$$\begin{aligned} \rho _n= {\left\{ \begin{array}{ll} 2L\sum _{k=n}^\infty \widehat{r}_k|a_k| &{} \text {in case }(a)\\ L\sum _{k=n}^\infty \frac{1}{|r_k|}\sum _{i=k}^\infty |a_i| &{} \text {in case }(b). \end{array}\right. } \end{aligned}$$

In case (a), it is easy to see that

$$\begin{aligned} \rho _n=\mathrm {o}(u_n)=\mathrm {o}(1). \end{aligned}$$
(21)

In case (b), using Lemma 5 we get (21). Therefore, there exists an index p such that

$$\begin{aligned} \rho _n\le \alpha \quad \text {and}\quad \sigma (n)\ge q \end{aligned}$$

for \(n\ge p\). Let

$$\begin{aligned} X=\{x\in \mathbb {R}^\mathbb {N}: |x-y|\le \rho \text { and } x_n=y_n \text { for } n<p\}. \end{aligned}$$

Note that \(X\subset Y\). If \(x\in Y\) and \(n\ge p\), then \(|f(x_{\sigma (n)})|\le L\).

Assume condition (a) is satisfied. Define an operator \(H: Y\rightarrow \mathbb {R}^\mathbb {N}\) by

$$\begin{aligned} H(x)(n)= {\left\{ \begin{array}{ll} y_n &{}\text {for }n<p\\ y_n+\sum _{k=n}^\infty F(x)(k)\sum _{i=n}^k\frac{1}{r_i} &{}\text {for }n\ge p. \end{array}\right. } \end{aligned}$$

If \(x\in X\), then, by (3), for \(n\ge p\) we have

$$\begin{aligned} |H(x)(n)-y_n|\le \sum _{k=n}^\infty |F(x)(k)|\left| \sum _{i=n}^k\frac{1}{r_i}\right| \le 2L\sum _{k=n}^\infty |a_k|\widehat{r}_k=\rho _n. \end{aligned}$$

Therefore, \(HX\subset X\). Let \(x\in X\), and \(\varepsilon >0\). There exist an index \(m\ge p\) and a positive constant \(\gamma \) such that

$$\begin{aligned} 4L\sum _{k=m}^\infty |a_k|\widehat{r}_k<\varepsilon \quad \text {and}\quad 2\gamma \sum _{k=1}^m|a_k|\widehat{r}_k<\varepsilon . \end{aligned}$$

Let

$$\begin{aligned} C=\bigcup _{n=1}^m[y_{\sigma (n)}-\alpha ,y_{\sigma (n)}+\alpha ]. \end{aligned}$$
(22)

Since C is a compact subset of \(\mathbb {R}\), f is uniformly continuous on C. Choose a positive \(\delta \) such that if \(t_1,t_2\in C\) and \(|t_1-t_2|<\delta \), then

$$\begin{aligned} |f(t_1)-f(t_2)|<\gamma . \end{aligned}$$

Choose \(z\in X\) such that \(\Vert x-z\Vert <\delta \). Then,

$$\begin{aligned} \Vert Hx-Hz\Vert= & {} \sup _{n\ge p} \left| \sum _{k=n}^\infty (F(x)(k)-F(z)(k))\sum _{i=n}^k\frac{1}{r_i}\right| \\\le & {} \sum _{k=p}^\infty |F(x)(k)-F(z)(k)|\left| \sum _{i=n}^k\frac{1}{r_i}\right| \\\le & {} 2\sum _{k=p}^\infty |a_k||f(x_{\sigma (k)})-f(z_{\sigma (k)})|\widehat{r}_k\\\le & {} 2\gamma \sum _{k=1}^m|a_k|\widehat{r}_k+4L\sum _{k=m}^\infty |a_k|\widehat{r}_k<2\varepsilon . \end{aligned}$$

Hence, the map \(H: X\rightarrow X\) is continuous with respect to the metric defined in Lemma 7. By Lemma 7, there exists a point \(x\in X\) such that \(x=Hx\). Then, for \(n\ge p\) we have

$$\begin{aligned} x_n=y_n+\sum _{k=n}^\infty F(x)(k)\sum _{i=n}^k\frac{1}{r_i}. \end{aligned}$$

Using Lemma 2, we obtain

$$\begin{aligned} \varDelta (r_n\varDelta x_n)=\varDelta (r_n\varDelta y_n)+F(x)(n)=b_n+a_nf(x_{\sigma (n)}) \end{aligned}$$

for \(n\ge p\). Hence, x is a solution of (E). Since \(x\in X\) and \(\rho _n=\mathrm {o}(u_n)\), we have

$$\begin{aligned} x_n=y_n+\mathrm {o}(u_n). \end{aligned}$$

Now, assume condition (b) is satisfied. Define an operator \(G: Y\rightarrow \mathbb {R}^\mathbb {N}\) by

$$\begin{aligned} G(x)(n)= {\left\{ \begin{array}{ll} y_n &{}\text {for }n<p\\ y_n+\sum _{k=n}^\infty \frac{1}{r_k}\sum _{i=k}^\infty F(x)(i) &{} \text {for }n\ge p. \end{array}\right. } \end{aligned}$$

If \(x\in X\), then for \(n\ge p\) we have

$$\begin{aligned} |G(x)(n)-y_n|\le \sum _{k=n}^\infty \frac{1}{|r_k|}\sum _{i=k}^\infty |F(x)(i)| \le L\sum _{k=n}^\infty \frac{1}{|r_k|}\sum _{i=k}^\infty |a_i|=\rho _n. \end{aligned}$$

Therefore, \(GX\subset X\). Let \(x\in X\), and \(\varepsilon >0\). There exist an index \(m\ge p\) and a positive constant \(\gamma \) such that

$$\begin{aligned} L\sum _{k=m}^\infty \frac{1}{|r_k|}\sum _{i=k}^\infty |a_i|<\varepsilon \quad \text {and}\quad \gamma \sum _{k=1}^m\frac{1}{|r_k|}\sum _{i=k}^\infty |a_i|<\varepsilon . \end{aligned}$$

Define a subset C of \(\mathbb {R}\) by (22). Choose a positive \(\delta \) such that if \(t_1,t_2\in C\) and \(|t_1-t_2|<\delta \), then \(|f(t_1)-f(t_2)|<\gamma \). Choose \(z\in X\) such that \(\Vert x-z\Vert <\delta \). Then,

$$\begin{aligned}&\Vert Gx-Gz\Vert =\sup _{n\ge p} \left| \sum _{k=n}^\infty \frac{1}{r_k}\sum _{i=k}^\infty (F(x)(i)-F(z)(i))\right| \\&\le \sum _{k=p}^\infty \frac{1}{|r_k|}\sum _{i=k}^\infty |F(x)(i)-F(z)(i)|= \sum _{k=p}^\infty \frac{1}{|r_k|} \sum _{i=k}^\infty |a_i||f(x_{\sigma (k)})-f(z_{\sigma (k)})|\\&\le \gamma \sum _{k=1}^m\frac{1}{|r_k|}\sum _{i=k}^\infty |a_i|+ 2L\sum _{k=m}^\infty \frac{1}{|r_k|}\sum _{i=k}^\infty |a_i|<3\varepsilon . \end{aligned}$$

Hence, the map \(H: X\rightarrow X\) is continuous. By Lemma 7, there exists a point \( x\in X\) such that \(x=Hx\). Then, for \(n\ge p\) we have

$$\begin{aligned} x_n=y_n+\sum _{k=n}^\infty \frac{1}{r_k}\sum _{i=k}^\infty F(x)(i). \end{aligned}$$

By Lemma 3, x is a solution of (E). Since \(x\in X\) and \(\rho _n=\mathrm {o}(u_n)\), we have

$$\begin{aligned} x_n=y_n+\mathrm {o}(u_n). \end{aligned}$$

\(\square \)

In our theory, two conditions

$$\begin{aligned} (a) \ \ \sum _{k=1}^\infty \frac{\widehat{r}_k|a_k|}{u_k}<\infty , \quad (b) \ \ \sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{i=k}^\infty |a_i|<\infty \end{aligned}$$

play a key role. Below we present a comparison of assumptions (a) and (b).

Remark 2

Assume \(a\in \mathbb {R}^\mathbb {N}\), \(r,u:\mathbb {N}\rightarrow (0,\infty )\), \(\varDelta u\le 0\), and \(\sum _{k=1}^\infty \frac{\widehat{r}_k|a_k|}{u_k}<\infty \). Then, \(\sum _{k=1}^\infty |a_k|<\infty \) and using Lemma 6, we obtain

$$\begin{aligned} \sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{j=k}^\infty |a_j|= \sum _{k=1}^\infty \frac{1}{r_ku_k}\sum _{j=k}^\infty |a_j|= \sum _{k=1}^\infty |a_k|\sum _{i=1}^k\frac{1}{r_iu_i}\le \sum _{k=1}^\infty \frac{|a_k|}{u_k}\sum _{i=1}^k\frac{1}{r_i}<\infty . \end{aligned}$$

Hence, in the case \(r>0\) condition (b) is a consequence of condition (a).

The following two examples show that, in general, conditions (a) and (b) are independent.

Example 3

Assume \(\lambda \in (1,\infty )\), \(r_n=\lambda ^n\), \(u_n=\lambda ^{-n}\), and \(a_n=n^{-3}\). Then,

$$\begin{aligned} r>0, \quad \widehat{r}_k=\frac{1-\lambda ^{-k}}{\lambda -1}, \quad \frac{\widehat{r}_k}{u_k}=\frac{\lambda ^k-1}{\lambda -1}, \quad \frac{1}{|r_k|u_k}=1. \end{aligned}$$

Hence,

$$\begin{aligned}&\sum _{k=1}^\infty \frac{\widehat{r}_k|a_k|}{u_k}=\frac{1}{\lambda -1} \sum _{k=1}^\infty \frac{\lambda ^k-1}{k^3}=\infty ,\\&\sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{i=k}^\infty |a_i|= \sum _{k=1}^\infty \sum _{i=k}^\infty |a_i|=\sum _{k=1}^\infty k|a_k|= \sum _{k=1}^\infty k^{-2}<\infty . \end{aligned}$$

Therefore, in this case, condition (a) is not a consequence of (b).

Example 4

Let \(u_k=1\), \(r_k=(-1)^k\), \(a_k=\frac{1}{\sqrt{k^3}}\) for any \(k\in \mathbb {N}\). Then,

$$\begin{aligned} \sum _{k=1}^\infty \frac{\widehat{r}_k|a_k|}{u_k} \le \sum _{k=1}^\infty \frac{1}{\sqrt{k^3}}<\infty , \quad \sum _{k=1}^\infty \frac{1}{|r_k|u_k}\sum _{j=k}^\infty |a_j|= \sum _{k=1}^\infty \sum _{j=k}^\infty \frac{1}{\sqrt{j^3}}= \sum _{k=1}^\infty \frac{k}{\sqrt{k^3}}=\infty . \end{aligned}$$

Hence, in the case \(r_k=(-1)^k\), condition (b) is not a consequence of (a).