#### Abstract

We study the behavior of the well-defined solutions of the max type difference equation , , where the initial conditions are arbitrary nonzero real numbers and is a period-two sequence of real numbers with .

#### 1. Introduction and Preliminaries

Recently, the study of max-type difference equations attracted a considerable attention. Although max-type difference equations are relatively simple in form, it is, unfortunately, extremely difficult to understand thoroughly the behavior of their solutions; see, for example  and the relevant references cited therein. Max-type difference equations stem from certain models in automatic control theory (see [1, 24]). For some papers on periodicity of difference equation, see, for example, [15, 16, 19, 22] and the relevant references cited therein.

In , Simsek et al. studied the behavior of the solutions of the following max-type difference equation: where the initial conditions are nonzero real numbers.

In , Simsek studied the behavior of the solutions of the following max-type difference equation: where the initial conditions are negative real numbers.

In , Elabbasy and Elsayed studied the behavior of the solutions of (1.2) where the initial conditions are nonzero real numbers.

In , Elsayed and Stević showed that every well-defined solution of the difference equation where , is eventually periodic with period three.

In , Elsayed and Iričanin showed that every positive solution to the following third-order nonautonomous max-type difference equation: where is a three-periodic sequence of positive numbers and is periodic with period three.

In , Yalçinkaya et al. studied the behavior of the solutions of the following max-type difference equation: where and initial conditions are nonzero real numbers.

In this paper, we study the behavior of the well-defined solutions of the max type difference equation where the initial conditions are arbitrary nonzero real numbers and is a period-two sequence of real numbers with .

We need the following definitions and lemmas.

Definition 1.1. A sequence is said to be eventually periodic with period if there is such that for all . If , then we say that the sequence periodic with period .

We make two definitions regarding (1.6).

Definition 1.2. A right semicycle is a string of terms with , such that for all . Furthermore, if , and if .

Definition 1.3. A left semicycle is a string of terms with , such that for all . Furthermore, if , , and if ,.

We give the following lemmas which show us the periodic behavior of the solutions of (1.6).

Lemma 1.4. Assume that is a well-defined solution of (1.6). If and such that , then the solution is eventually periodic with period two.

Proof. We prove that by induction. For , this is, assumption. Assume that (1.7) holds for all . We may assume that is odd. Then, by the inductive hypothesis, we have from this and the inductive hypothesis, we have which completes the proof (the case is even similar, so it will be omitted).

We omit the proof of the following lemma, since it can easily be obtained by induction.

Lemma 1.5. Assume that is a well-defined solution of (1.6). If such that , then for all .

Lemma 1.6. Assume that is a well-defined solution of (1.6) and . If this solution is eventually positive, then it is eventually periodic with period two.

Proof. Assume that is the smallest index such that for all . Then, we have Using this, we have then we get Observe that there exists a positive integer such that From this directly follows that is eventually periodic with period two.

Lemma 1.7. Equation (1.6) has no right semicycle with an infinite terms for the positive initial conditions and .

Proof. Conversely, assume that (1.6) has a right semicycle with an infinite terms. And, let be periodic sequence of natural numbers with period two such that . Without loss of generality, we denote by the first term of right semicycle with an infinite terms. There is at least . For all , we can write which implies But this is a contradiction which completes the proof.

We omit the proof of the following lemma, since it can easily be obtained similarly.

Lemma 1.8. Equation (1.6) has no right semicycle with an infinite terms for the negative initial conditions and .

#### 2. Main Results

Since is a two periodic, it has the form . If , then (1.6) becomes , from which it follows that every well-defined solution is periodic with period two. Hence, in the sequel, we will consider the case when at least one of and is not zero.

##### 2.1. The Case

Theorem 2.1. If and at least one of the initial conditions is arbitrary positive real number, then every well-defined solution of (1.6) is eventually periodic with period two.

Proof. Firstly, assume that . Then, we have . There are two cases to be considered.(a)If , then . Hence, From Lemma 1.4, the result follows.(b)If , then . We have There are two subcases to be considered.(b1)If , then . Hence, From Lemma 1.4, the result follows in this case.(b2)If , then . We have There are two subcases to be considered.(b21)If , then . We have From Lemma 1.4, the result follows in this case.(b22)If , then . The result follows Lemma 1.7. Secondly, assume that , then we have From Lemmas 1.5 and 1.6, the result follows (the case is similar, so it will be omitted) which completes the proof.

Remark 2.2. If and , then every well-defined solution of (1.6) is not periodic.

##### 2.2. The Case or

Theorem 2.3. If or , then every well-defined solution of (1.6) is eventually periodic with period two.

Proof. First assume that . Then, we have From Lemmas 1.5 and 1.6, the result follows. The case is similar, so it will be omitted.

##### 2.3. The Other Cases

If at least one of and greater than one, then we have the well-defined solutions of (1.6), where the positive initial conditions are not periodic. So, there are many cases in which solutions of (1.6) are not periodic. If the solutions of (1.6) are not periodic, then general solution of (1.6) can be obtained for many subcases.

Theorem 2.4. Assume that is a well-defined solution of (1.6) for and .(a)If and or , then (b)If and or , then

Proof. (a) It can be proved by induction. Let and . For , (2.8) holds. Assume that (2.8) holds for all . We may assume that is even (the case is odd is similar, so it will be omitted). Then, by the inductive hypothesis, we have which completes the proof.
(b) Also, this case can be proved similarly.

Now, we describe the behavior of solutions of (1.6) for some other cases. We omit the proof of the following theorem, since it can easily be obtained by induction.

Theorem 2.5. Assume that is a well-defined solution of (1.6).(a)If and , then(b)If and , then (c)If and ,,, then

There are many different cases. The different cases can be obtained similarly.

Theorem 2.6. If and initial conditions are negative, then every well-defined solution of (1.6) is eventually periodic with period two.

Proof. Assume that . Then, There are two cases to be considered.(a)If , then ,, . Then, the result follows Lemma 1.4.(b)If , then . There are two subcases.(b1)If , then , . Then the result follows Lemma 1.4.(b2)If , then there will be subcases and from Lemmas 1.4 and 1.8 which completes the proof.

#### Acknowledgment

I am grateful to the anonymous referees for their valuable suggestions that improved the quality of this study.