1 Introduction

1.1 The Stability Problem

The computation and the quantitative location of the roots of a given polynomial are ubiquitous in the applications and it has been produced a vast literature in mathematics and in applied mathematics in recent years. It is well-known that a linear discrete dynamical system, for instance linear recurrence equations which are widely used in applied mathematics and computer science for modeling the future of a process that depends linearly on a finite string, is asymptotically stable if and only if its corresponding characteristic polynomial has all its roots with complex modulus strictly smaller than one. When a polynomial has all its roots with complex modulus strictly less than one, the polynomial is called a Schur stable polynomial. The notion of Schur stable polynomials is originated in the study of stability of dynamical systems, in particular, in the so-called control theory.

Recall that a general linear recurrence equation with constant coefficients and two delays is defined as follows. For a given initial string of complex numbers \(\varphi _0,\varphi _1,\ldots ,\varphi _{n-1}\), let \((\varphi (t))_{t\ge n}\) be the unique solution of the discrete-time initial value problem

(1.1)

where b and c are non-zero complex numbers and \(n,m\in \mathbb {N}\) with \(n>m\). The time-shifts \(n-m\) and n in (1.1) are called delays. It is well-known that the characteristic polynomial associated to (1.1) is given by \(T(\zeta ):= \zeta ^n + b\zeta ^m +c\), \(\zeta \in \mathbb {C}\), and then the dynamical system (1.1) is asymptotically stable if and only if T is a Schur stable polynomial. For more details about the theory of linear recurrence equations, we refer to the monographs [29, 39, 52].

Discrete-time stable dynamical systems of the form (1.1) with real coefficients have been broadly used in modeling, for instance, they have been used in Numerical Analysis for the numerical discretization of the so-called linear delay differential equation, in Mathematical Biology for the linearization process of various discrete population growth models, in Financial Mathematics to determine the interest rate, the amortization of a loan and price fluctuations, in Probability for the so-called first step analysis of Markov chains, in Statistics for the autoregressive linear model, see [9, 20, 23, 29, 47, 60]. While systems of the form (1.1) with complex coefficients naturally appear in the study of systems of linear recurrence equations such as in the linearized model for the discrete-time Hopfield network with a single delay, or in local stability analysis of some discrete-time population dynamics models, see [33, 41, 44, 50].

Since the stability for linear recurrence equations with constant coefficients and two delays is equivalent to the Schur stability of trinomials, in this paper we parametrize the stability region for trinomials of the form

$$\begin{aligned} f(\zeta ):=a\zeta ^n + b\zeta ^m +c, \quad \zeta \in \mathbb {C}, \end{aligned}$$
(1.2)

where a, b and c are complex numbers and \(n,m\in \mathbb {N}\) with \(n>m\). In other words, we provide necessary and sufficient conditions on the complex coefficients a, b and c in order that all the roots of f belongs to the open unit disc in the complex plane. In that case, we say that (1.2) is a Schur stable trinomial. The latter is straightforward when some of the coefficients a, b or c are zero. Indeed, we observe that

$$\begin{aligned} f\text { is a Schur stable trinomial if and only if } {\left\{ \begin{array}{ll} |c|/|b|<1 &{} \text { for }a=0\text { and }b\ne 0,\\ |c|<1 &{} \text { for }a=0\text { and }b=0, \\ |c|/|a|<1 &{} \text { for }a\ne 0\text { and }b=0,\\ |b|/|a|<1 &{} \text { for }a\ne 0,\,b\ne 0\text { and }c=0, \end{array}\right. } \end{aligned}$$

where \(|\cdot |\) denotes the complex modulus. Therefore, without loss of generality, we always assume that a, b and c are non-zero complex numbers.

The celebrated works of P. Ruffini, N. H. Abel and É. Galois yield that for \(n\ge 5\) generically there is no formula for the roots of (1.2) in terms of radicals. We recommend [8, 48, 59] for treatises on polynomials and [57] for a brief history of solving polynomials. Trinomials of the form (1.2) with real coefficients have been the subject of numerous qualitative and quantitative studies because of their theoretical importance as well as their applications, see [6] and the list of references therein. There is a vast literature reporting the study of location of the roots of trinomials when its coefficients are real numbers including series representations of the roots and the shape of the stability region, [2, 3, 9,10,11,12,13,14,15, 18, 19, 22, 24, 26,27,28, 32, 34,35,38, 43, 45, 46, 49, 50, 54, 55, 58, 61, 62, 65, 67]. In the case of trinomials with complex coefficients, lower and uppers bounds for the moduli of their roots have been also obtained in [18, 25, 43, 50, 56, 66]. Trinomials have been also studied from the geometrical, topological and dynamical perspectives, see for instance [1, 4, 5, 7, 30, 31, 40, 42, 51, 53, 63, 64] and the references therein. Using the Cohn reduction degree method (see [21] or Lemma 42.1 in [48]), the stability region for trinomials with real coefficients is given in [15]. Recently, the authors in [14] apply Bohl’s Theorem (see Theorem 1.1 below) for trinomials with real coefficients and obtain the results in [15]. Nevertheless, to the best of our knowledge, using Bohl’s Theorem for the case with complex coefficients has not been fully characterized and it does not follow straightforwardly from the real case, see Sect. 1.2 for an explanation of the difficulties on the counting argument in the complex case.

1.2 Preliminaries

Along this manuscript, \(n>m>0\) are fixed. Our main tool is Bohl’s Theorem given in [7]. Bohl’s Theorem gives the number of roots of (1.2) in an open ball of radius r centered at the origin according to whether the non-negative numbers \(|a|r^n\), \(|b|r^m\) and |c| are the lengths of the sides of some triangle (including degenerate triangles), or not. Bohl’s Theorem reads as follows:

Theorem 1.1

(Bohl’s Theorem for trinomials [7, 14]) Assume that n and m are coprime numbers. Let \(r>0\) and assume that \(|a|r^n\), \(|b|r^m\) and |c| are the side lengths of some triangle (it may be degenerate except for the case below). Let \(\omega _1\) and \(\omega _2\) be the opposite angles to the sides with lengths \(|a|r^n\) and \(|b|r^m\), respectively. Then the number of roots of (1.2) in the open disc of radius r, \(D_r:=\{z\in \mathbb {C}:|z|<r\}\), is equal to the number of integers in the open interval \((P-\omega (r),P+\omega (r))\), where

$$\begin{aligned} P:=\frac{n(\beta -\gamma +\pi )-m(\alpha -\gamma +\pi )}{2\pi },\quad \quad \omega (r):=\frac{n\omega _1+m\omega _2}{2\pi }, \end{aligned}$$
(1.3)

and \(\alpha \), \(\beta \), \(\gamma \) are the arguments of a, b, c, respectively. However, when \(|b|r^m=|a|r^n+|c|\), \(r^{n-m}>\frac{m |b|}{n|a|}\) and \(P+\omega (r)\) is an integer, the number of roots of (1.2) in \(D_r\) is equal to m.

Moreover, when \(|a|r^n\), \(|b|r^m\) and |c| are not the side lengths of any triangle, then

$$\begin{aligned} \text {The number of roots of }f\text { given in }(1.1)\text { in }D_r= {\left\{ \begin{array}{ll} 0 &{} \text { if }\quad |c|>|a|r^n+|b|r^m,\\ m &{} \text { if }\quad |b|r^m>|a|r^n+|c|,\\ n &{} \text { if }\quad |a|r^n>|b|r^m+|c|. \end{array}\right. } \end{aligned}$$
(1.4)

Remark 1.2

(Exceptional cases) The original statement of Bohl’s Theorem given in [7] includes two additional exceptions, see Item (a) and Item (b) in Theorem B.1 in Appendix B. Nevertheless, when n and m are coprime numbers, such exceptions have been already included in Theorem 1.1 in the case when the triangle is degenerate. We discuss it in fully detail in the Appendix B.

From now on to the end of this manuscript, we assume that \(a=1\) and in conscious abuse of notation we write

$$\begin{aligned} f(\zeta ):=\zeta ^n + b\zeta ^m +c, \quad \zeta \in \mathbb {C}. \end{aligned}$$
(1.5)

We start with the following observation. If \(\textsf {gcd}(n,m)=\ell \in \{2,3,\ldots ,m\}\), where \(\textsf {gcd}\) denotes the greatest common divisor function, we set \(\widetilde{n}:=n/\ell \) and \(\widetilde{m}:=m/\ell \), which satisfy \(\textsf {gcd}(\widetilde{n},\widetilde{m})=1\). Then the change of variable \(\zeta \mapsto \zeta ^\ell \) yields that f is a Schur stable trinomial if and only if

$$\begin{aligned} \widetilde{f}(\zeta ):=\zeta ^{\widetilde{n}} + b\zeta ^{\widetilde{m}} +c, \quad \zeta \in \mathbb {C}\quad \text { is a Schur stable trinomial.} \end{aligned}$$

Therefore, without loss of generality, from here to the end of the manuscript, we assume that \(\textsf {gcd}(n,m)=1\). In addition, if (1.5) is a Schur stable trinomial, then the celebrated Viète’s formulas yield that \(|c|<1\).

For any \(s\in \mathbb {R}\) we define the angular flow \(g_s:\mathbb {C}\rightarrow \mathbb {C}\) by

$$\begin{aligned} \begin{aligned} g_s(\zeta ):&=e^{-\textsf{i}ns}f(e^{\textsf{i}s}\zeta )\\&=e^{-\textsf{i}ns}(e^{\textsf{i}ns}\zeta ^n+be^{\textsf{i}ms}\zeta ^m+c)\\&=\zeta ^n+be^{-\textsf{i}(n-m)s}\zeta ^m+e^{-\textsf{i}ns}c, \end{aligned} \end{aligned}$$
(1.6)

where \(\textsf{i}\) denotes the unit imaginary number. We point out that the set of roots of \(g_s\) are exactly the set of roots of f up to a rotation \(e^{-\textsf{i}s}\). In other words, for any \(s\in \mathbb {R}\), f is a Schur stable trinomial if and only if \(g_s\) is a Schur stable trinomial.

The Fundamental Theorem of Algebra yields that two trinomials f and g have the same roots if and only if \(f=\lambda g\) for some \(\lambda \in \mathbb {C}^*:=\mathbb {C}\setminus \{0\}\). The preceding equivalence is in fact an equivalence relation. Then it is natural to identify the subspace of trinomials (modulo the preceding equivalence relation) with the complex projective plane \(\mathbb {P}^2_{\mathbb {C}}\). We recall that

$$\begin{aligned} \mathbb {P}^2_{\mathbb {K}}:=\{[a:b:c]:\quad \text { where }\quad [a:b:c]:=\{\lambda (a,b,c):\lambda \in \mathbb {K}^*\} \} \end{aligned}$$

for \(\mathbb {K}\) being the field \(\mathbb {R}\) or \(\mathbb {C}\) and \(\mathbb {K}^*:=\mathbb {K}\setminus \{0\}\). Let

$$\begin{aligned} \begin{aligned} \Omega _n:&=\{[a:b:c]\in \mathbb {P}^2_{\mathbb {C}}:\, a\zeta ^n+b\zeta ^m+c\,\,\text { is a Schur stable trinomial}\}\\&=\{[1:b:c]\in \mathbb {P}^2_{\mathbb {C}}:\, \zeta ^n+b\zeta ^m+c\,\,\text { is a Schur stable trinomial}\} \end{aligned} \end{aligned}$$
(1.7)

and define the continuous projection \(\Pi _n: \Omega _n \rightarrow \mathbb {P}^2 _{\mathbb {R}}\) by

$$\begin{aligned} \Pi _n([1:b:c])=[1:|b|:(-1)^n|c|]. \end{aligned}$$
(1.8)

Then we naturally say that an element \([a:b:c]\in \mathbb {P}^2_{\mathbb {K}}\) is Schur stable over \(\mathbb {K}\) if and only if \([a:b:c]\in \Omega _n\cap \mathbb {P}^2 _{\mathbb {K}}\). In addition, the set \(\Omega _n\) is called the stability region. By Proposition 7.9 in [5] we have that \(\Pi _n(\Omega _n)\subset \Omega _n\cap \mathbb {P}^2 _{\mathbb {R}}\), that is to say, the function \(\Pi _n\) maps Schur stable trinomials with complex coefficients to Schur stable trinomials with real coefficients. In addition, we remark that the image of \(\Pi _n\), i.e., \(\Pi _n(\Omega _n)\), can be decomposed into two disjoint sets \(``\Delta "\) and \(``\Gamma "\) according to whether the numbers 1, |b| and |c| are the lengths of the sides of some triangle (it may be degenerate) or not, see Lemma A.3 in Appendix A.

In the recent paper [14], it is applied Theorem 1.1 to obtain a characterization of Schur stability of (1.2) when its coefficients are real numbers. Nevertheless, when the coefficients are complex numbers such characterization is not straightforward. In fact, when the coefficients are complex numbers we note that the pivot P takes continuous values while when the coefficients are real numbers the pivot \(P\in \{\ell /2: \ell \in \mathbb {Z}\}\), see (1.10) below. For a fixed \(\omega >0\) and P taking continuous values, one can note that the number of integers in the open interval \((P-\omega ,P+\omega )\) may take three different values.

In what follows we explain the main idea in order to apply Theorem 1.1 for the case of complex coefficients. By Theorem 1.1, the pivot P associated to (1.5) is given by

$$\begin{aligned} P=\frac{n(\pi +\arg (b)-\arg (c))-m(\pi -\arg (c))}{2\pi }. \end{aligned}$$
(1.9)

In particular, for the trinomial associated to a point of the form

$$\begin{aligned} {[}1:x:y] \quad \text { with }\quad x\in \mathbb {R}\setminus \{0\}\quad \text { and }\quad y \in \mathbb {R}\setminus \{0\}, \end{aligned}$$

all the possible pivots P are given by

$$\begin{aligned} P={\left\{ \begin{array}{ll} \frac{n-m}{2} &{} \text { for }\quad x>0\quad \text { and }\quad y>0,\quad \text {i.e., first quadrant},\\ n-\frac{m}{2} &{} \text { for }\quad x<0\quad \text { and }\quad y>0,\quad \text {i.e., second quadrant},\\ \frac{n}{2} &{} \text { for }\quad x<0\quad \text { and }\quad y<0, \quad \text {i.e., third quadrant},\\ 0 &{} \text { for }\quad x>0\quad \text { and }\quad y<0, \quad \text {i.e., fourth quadrant}. \end{array}\right. } \end{aligned}$$
(1.10)

We observe that \(P\in \mathbb {Z}\cup \{\ell +1/2:\ell \in \mathbb {Z}\}\). Consider the trinomial associated to the point \([1:b:c] \in \Omega _n\), where \(b,c \in \mathbb {C}\setminus \{0\}\) with corresponding pivots \(\widetilde{P}\) and \(\widetilde{\omega }\) defined in (1.3) for \(r=1\). We note that the corresponding pivots (defined in (1.3) for \(r=1\)) for the trinomials associated to the points of the form

$$\begin{aligned} {[}1:\pm |b|:\pm |c|], \end{aligned}$$

are P and \(\omega =\widetilde{\omega }\), where P satisfies (1.10). We stress that the intervals \(\widetilde{I}:=(\widetilde{P}-\widetilde{\omega },\widetilde{P}+\widetilde{\omega })\) and \(I:=(P-\omega ,P+\omega )\) have the same length \(2\widetilde{\omega }=2\omega \). However, they may not have the same number of integers in them. The cunning choice \(\Pi _n\) defined in (1.8) implies that \(\widetilde{I}\) and I have the same number of integers, which allows us to reduce the problem to the real case, see Proposition 7.9 in [5].

1.3 Main Results and Its Consequences

In this subsection, we state the main result of this manuscript and its consequences.

The main result of this manuscript is the following characterization of \(\Omega _n\).

Theorem 1.3

(Schur stability for trinomials: projective notation) Assume that \(\textsf {gcd}(n,m)=1\). Let \(\Omega _n\) be the set defined in (1.7) and \(\Pi _n\) be the projection given in (1.8). Then the following is valid. Every element in \(\Omega _n\) can be parametrized in the form

$$\begin{aligned} {[}1: xe^{\textsf{i}t} e^{-\textsf{i}(n-m) s}: ye^{-\textsf{i}ns}], \end{aligned}$$

with \([1:x:y] \in \Pi _n(\Omega _n)\), \(0 \le s\le 2 \pi \) and t is a real number satisfying

  1. (1)

    \(|t| \le \frac{\pi }{n}\) for \([1:x:y] \in \Gamma _{n\mod 2}\),

  2. (2)

    \(|t|<\frac{\pi (2 \omega -n+1)}{n}\) for \([1:x:y] \in \Delta _{n\mod 2}\),

where

$$\begin{aligned} \begin{aligned} \Gamma _{0}&:=\{[1:u:v] \in \mathbb {P}_{\mathbb {R}}^2 \, \, | \, \, 0 \le u,\, \, 0 \le v, \, \, u+v<1\},\\ \Delta _{0}&:=\{[1:u:v] \in \mathbb {P}_{\mathbb {R}}^2 \, \, | \, \, 0< u,\, \, 0< v, \, \, u+v \ge 1 , \, \, 2\omega (u,v)>n-1\},\\ \Gamma _{1}&:=\{[1:u:v] \in \mathbb {P}_{\mathbb {R}}^2 \, \, | \, \, 0 \le u,\, \, v \le 0, \, \, u-v<1\},\\ \Delta _{1}&:=\{[1:u:v] \in \mathbb {P}_{\mathbb {R}}^2 \, \, | \, \, 0< u,\, \, v < 0, \, \, u-v \ge 1 , \, \, 2\omega (u,v) >n-1\}, \end{aligned} \end{aligned}$$
(1.11)

and

$$\begin{aligned} \omega (u,v):= \frac{n\, \arccos \left( \frac{u^2+v^2-1}{2u|v|}\right) +m\, \arccos \left( \frac{1-u^2+v^2}{2|v|}\right) }{2\pi }. \end{aligned}$$
(1.12)

Conversely, every point of this form belongs in \(\Omega _n\).

In the sequel, we reformulate Theorem 1.3 using polynomial notation, which is convenient for the study of (1.1).

Theorem 1.4

(Schur stability for trinomials: polynomial notation) Assume that \(\textsf {gcd}(n,m)=1\). The following is valid. Every Schur stable trinomial of the form (1.5) can be parametrized in the form

$$\begin{aligned} \zeta ^n+xe^{\textsf{i}t} e^{-\textsf{i}(n-m) s}\zeta ^m + ye^{-\textsf{i}ns} \end{aligned}$$
(1.13)

with \(\zeta ^n+x\zeta ^m+(-1)^n y\) being a Schur stable trinomial, \(0 \le s\le 2 \pi \) and t is a real number satisfying

  1. (1)

    \(|t| \le \frac{\pi }{n}\) for \((x,y)\in \Gamma _{n\mod 2}\),

  2. (2)

    \(|t|<\frac{\pi (2 \omega -n+1)}{n}\) for \((x,y)\in \Delta _{n\mod 2}\),

where

$$\begin{aligned} \begin{aligned} \Gamma _{0}&:=\{(u,v) \in \mathbb {R}^2 \, \, | \, \, 0 \le u,\, \, 0 \le v, \, \, u+v<1\},\\ \Delta _{0}&:=\{(u,v) \in \mathbb {R}^2 \, \, | \, \, 0< u,\, \, 0< v, \, \, u+v \ge 1 , \, \, 2\omega (u,v)>n-1\},\\ \Gamma _{1}&:=\{(u,v) \in \mathbb {R}^2 \, \, | \, \, 0 \le u,\, \, v \le 0, \, \, u-v<1\},\\ \Delta _{1}&:=\{(u,v) \in \mathbb {R}^2 \, \, | \, \, 0< u,\, \, v < 0, \, \, u-v \ge 1 , \, \, 2\omega (u,v) >n-1\}, \end{aligned} \end{aligned}$$
(1.14)

and

$$\begin{aligned} \omega (u,v):= \frac{n\, \arccos \left( \frac{u^2+v^2-1}{2u|v|}\right) +m\, \arccos \left( \frac{1-u^2+v^2}{2|v|}\right) }{2\pi }. \end{aligned}$$

Conversely, every trinomial of the form (1.13) is Schur stable.

In a conscious abuse of notation, after a natural identification, we use the same labels in (1.11) and (1.14).

We continue to rely on the notations and assumption of Theorem 1.3.

Remark 1.5

(The splitting of the image) We stress that \(\Delta _{1}=\Delta _{n\mod 2}\) and \(\Gamma _{1}=\Gamma _{n\mod 2}\) for an odd number n, and \(\Delta _{0}=\Delta _{n\mod 2}\) and \(\Gamma _{0}=\Gamma _{n\mod 2}\) for an even number n. Moreover, Lemma A.3 in Appendix A implies

$$\begin{aligned} \Pi _n(\Omega _n)= {\left\{ \begin{array}{ll} \Delta _0\cup \Gamma _0 &{} \text { for }n\text { being an even number},\\ \Delta _1\cup \Gamma _1 &{} \text { for }n\text { being an odd number}. \end{array}\right. } \end{aligned}$$

Remark 1.6

(Existence of a triangle) The Law of Cosines implies that for any \([1:x:y]\in \Delta _{n \mod 2}\) there exists a triangle with length sides 1, \(x=|x|\) and |y|.

Fig. 1
figure 1

Bohl’s triangle for the stability region

By the Law of Cosines we have

$$\begin{aligned} \omega _1=\arccos \left( \frac{x^2+y^2-1}{2|x||y|}\right) ,\quad \omega _2= \arccos \left( \frac{1+y^2-x^2}{2|y|}\right) \end{aligned}$$

and

$$\begin{aligned} \omega _3= \arccos \left( \frac{1+x^2-y^2}{2|x|}\right) . \end{aligned}$$

Recall that \(\omega _1+\omega _2+\omega _3=\pi \) and that \(\arccos (-\theta )=\pi -\arccos (\theta )\) for \(-1\le \theta \le 1\). By (1.12) we have that

$$\begin{aligned} 2\omega (x,y)= \frac{n\omega _1+m\omega _2}{\pi }>n-1 \end{aligned}$$

is equivalent to \(n\omega _3+(n-m)\omega _2<\pi \). We also note that the preceding inequality is equivalent to \(n(\pi -\omega _1)-m\omega _2<\pi \).

Remark 1.7

(Schur stability for trinomials with real coefficients) By Proposition 7.9 in [5] it follows that \([1:x:y]\in \Pi _n(\Omega _n)\subset \Omega _n\cap \mathbb {P}^2_\mathbb {R}\) and hence it means that the associated trinomial \(\zeta \mapsto \zeta ^n+x\zeta ^m+y\) is a Schur stable trinomial with \(x,y\in \mathbb {R}\). We point out that the Schur stability for trinomials with general real coefficients has been established for instance in [13], Sect. 3 in [14], Theorem 2 in [45] and Theorem 1.3 in [15].

Remark 1.8

(Dimension of \(\Omega _n\) and the meaning of the parameters) We point out that the stability region \(\Omega _n\) is an open set in \(\mathbb {C}^2\). Hence, it can be naturally parametrized by four real parameters (xyst). To be more precise,

  1. (i)

    the parameters x and y are given by the condition \([1:x:y]\in \Pi _n(\Omega _n)\) in Theorem 1.3,

  2. (ii)

    the parameter s is obtained by the angular flow defined in (1.6) applied to \([1:x:y]\in \Pi _n(\Omega _n)\), that is,

    $$\begin{aligned} {[}0,2\pi ]\ni s\mapsto e^{\textsf{i}s} \cdot [1:x:y]:=[1: e^{-\textsf{i}(n-m)s}x: e^{-\textsf{i}ns}y], \end{aligned}$$
  3. (iii)

    and finally the parameter t satisfying (1) or (2) in Theorem 1.3 can be interpreted as the permissible variation of the pivot P(t), starting with a trinomial in \(\Pi _n(\Omega _n)\) which pivot \(P(0)=P\) is given explicitly in (1.10), in a way that the open interval given by Bohl’s Theorem (Theorem 1.1) contains exactly n integers. By (1.9) and (1.10) we deduce that \(|t|=\frac{2\pi }{n}|P(t)-P|\).

Moreover, it is an open contractible subspace of \(\mathbb {R}^4\), in particular, it is path-connected, see Theorem 7.18 in [5].

In Fig. 2 below, we plot \(\Pi _n(\Omega _n)\) for the particular cases \((n,m)=(3,1)\); \((n,m)=(3,2)\); and \((n,m)=(4,3)\). We emphasize that the stability region for trinomials with real coefficients, that is \(\Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\), can be reconstructed from the projection \(\Pi _n(\Omega _n)\) yielding the open set limited by the black curves and lines, see Fig. 2. For instance, for \((n,m)=(4,3)\) we have the following:

  1. (a)

    For any \([1:x:y]\in \Delta _0\cup \Gamma _0\) the choice \(t=0\) and \(s=\pi \) yields

    $$\begin{aligned} {[}1:-x:y]=[1:xe^{\textsf{i}t}e^{-\textsf{i}(n-m)s}:ye^{-\textsf{i}ns}]\in \Omega _n \cap \mathbb {P}^2_{\mathbb {R}}. \end{aligned}$$
  2. (b)

    For any \([1:x:y]\in \Gamma _0\) the choice \(t=\pi /4\) and \(s=\pi /4\) implies

    $$\begin{aligned} {[}1:x:-y]=[1:xe^{\textsf{i}t}e^{-\textsf{i}(n-m)s}:ye^{-\textsf{i}ns}]\in \Omega _n \cap \mathbb {P}^2_{\mathbb {R}}. \end{aligned}$$
  3. (c)

    By Item (b) we know that \([1:x:-y]\in \Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\) whenever \([1:x:y]\in \Gamma _0\). We note that the choice \(t=0\) and \(s=\pi \) gives

    $$\begin{aligned} {[}1:-x:-y]=[1:xe^{\textsf{i}t}e^{-\textsf{i}(n-m)s}:-ye^{-\textsf{i}ns}] \in \Omega _n \cap \mathbb {P}^2_{\mathbb {R}} \end{aligned}$$

    when \([1:x:y]\in \Gamma _0\).

  4. (d)

    If \([1:x:y]\in \Delta _0\) then \([1:x:-y]\not \in \Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\). Recall that \(n=4\) and \(m=3\). By contradiction, assume that there exist \(|t|<\frac{\pi (2 \omega -n+1)}{n}\) and \(0\le s\le 2\pi \) such that

    $$\begin{aligned} {[}1:x:-y]=[1:xe^{\textsf{i}t}e^{-\textsf{i}(n-m)s}:ye^{-\textsf{i}ns}]. \end{aligned}$$

    Then we have \(s\in \{\pi /4,(3/4)\pi , (5/4)\pi , (7/4)\pi \}\) and \(t-(n-m)s=2\pi \ell \) for some integer \(\ell \). Since \(\omega \le n/2\), we obtain \(|t|=|s+2\pi \ell |<\frac{\pi (2 \omega -n+1)}{n}\le \frac{\pi }{n}\), that is,

    $$\begin{aligned} |s+2\pi \ell |<\frac{\pi }{4}\quad \text { for }\quad s\in \{\pi /4,(3/4)\pi , (5/4)\pi , (7/4)\pi \}\quad \text { and }\quad \ell \in \mathbb {Z}, \end{aligned}$$

    which is a contradiction. Similar reasoning implies that \([1:-x:-y]\not \in \Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\) whenever \([1:x:y]\in \Delta _0\).

Fig. 2
figure 2

The plot of \(\Pi _n(\Omega _n)\) for the particular cases \((n,m)=(3,1), (3,2)\) and (4, 3), respectively. The set \(\Gamma _j\) is a right triangle that includes the legs sides, however, its hypotenuse (dotted line) belongs to \(\Delta _j\). The solid curve bounding \(\Delta _j\) does not belong to it

Remark 1.9

(Geometric interpretation of \(\Gamma _0\), \(\Gamma _1\), \(\Delta _0\) and \(\Delta _1\)) It is well-known that \(\Gamma _j\) and \(\Delta _j\) belong to \(\Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\), see Theorem 2 in [45] and the Figure in p. 1712 in [45]. In fact, the (projective) Cohn domain \(\mathcal {C}:=\{[1:u:v]\in \mathbb {P}^2_{\mathbb {R}}: |u|+|v|<1\}\) belongs to \(\Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\). It corresponds to the region in \(\mathbb {R}^2\), where the absolute value of the coefficients of the trinomial associated to the point [1 : x : y] are not the lengths of the sides of any triangle including degenerate triangles. For \(\Delta _j\) we obtain a geometric interpretation of it. To be precise, it is the region in \(\mathbb {R}^2\), where the absolute value of the coefficients of the trinomial associated to the point [1 : x : y] are the lengths of the sides of some triangle (it may be degenerate). In addition, the dotted line in Fig. 2 represents when such triangle is degenerate.

In the following corollaries we always assume that \(\textsf {gcd}(n,m)=1\) and the notations of Theorem 1.3.

Corollary 1.10

(Not stable projection) If \([1:x:y]\not \in \Pi _n(\Omega _n)\) then \([1: xe^{\textsf{i}t} e^{-\textsf{i}(n-m) s}: ye^{-\textsf{i}ns}]\not \in \Omega _n\) for all \(t\in \mathbb {R}\) and \(s\in [0,2\pi ]\). In other words, if the projection of [1 : b : c] under \(\Pi _n\) is not Schur stable, then [1 : b : c] is not Schur stable.

Proof

The proof is a direct consequence of Theorem 1.3. \(\square \)

Remark 1.11

(Trinomials with complex coefficients which are not Schur stable) Let u and v be positive numbers. Assume that the trinomial \(\zeta \mapsto \zeta ^n+u\zeta ^m+(-1)^n v\) is not Schur stable. Then Corollary 1.10 yields that the trinomial \(\zeta \mapsto \zeta ^n+a\zeta ^m+b\) is not Schur stable for any complex numbers a and b satisfying \(|a|=u\) and \(|b|=v\). If in addition, we assume that all roots of \(\zeta \mapsto \zeta ^n+u\zeta ^m+(-1)^n v\) have modulus different from one, then the continuity of the roots of polynomials with respect to the coefficients yields that for any complex numbers a and b satisfying \(|a|=u\) and \(|b|=v\) there exists \(\varepsilon :=\varepsilon (a,b,n,m)>0\) such that the trinomials \(\zeta \mapsto \zeta ^n+a_*\zeta ^m+ b_*\) are not Schur stable for any complex numbers \(a_*\) and \(b_*\) satisfying \(|a-a_*|<\varepsilon \) and \(|b-b_*|<\varepsilon \).

Remark 1.12

(Schur Stability of the projection \(\Pi _n\) does not imply Schur stability)We stress that the converse statement of Corollary 1.10 is not true. In other words, in general \(\Pi _n[1:b:c] \in \Pi _n(\Omega _n)\) does not imply \([1:b:c] \in \Omega _n\). For instance, let \(n=4\) and \(m=3\) and assume that \(\zeta \mapsto \zeta ^n+x\zeta ^m+(-1)^n y\) with \(x>0\) and \(y>0\) is a Schur stable trinomial. In addition, assume that \([1:x:(-1)^ny]\in \Delta _0\), see Fig. 2. Then the trinomials of the form \(\zeta \mapsto \zeta ^n\pm x\zeta ^m - y\) are not Schur stable.

Using a math software, one can verify that the trinomial \(\zeta \mapsto \zeta ^{11}-e^{\textsf{i}\cdot 0.6}\zeta ^{10}-0.05e^{\textsf{i}\cdot 0.6}\) is not Schur stable even though its corresponding projection \(\zeta \mapsto \zeta ^{11}+\zeta ^{10}-0.05\) is Schur stable.

Remark 1.13

(Schur stability for real coefficients: characterization) By Theorem 1.3 in [15] it follows that \([1:x:y] \in \Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\) if and only if one of the following conditions is valid:

  • (\(C_1\)) \(|x|+|y|<1\),

  • (\(C_2\)) \(|x|+|y|\ge 1\), \(|x|-1<|y|<1\), \((-1)^{m} x^n y^{n-m}<0\) and

    $$\begin{aligned} \frac{n\, \arccos \left( \frac{1+x^2-y^2}{2|x|}\right) +(n-m)\, \arccos \left( \frac{1-x^2+y^2}{2|y|}\right) }{\pi }<1. \end{aligned}$$
    (1.15)

Moreover, Corollary 2 in [14] gives the following characterization of \(\Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\). A point \([1:x:y] \in \Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\) if and only if one of the following conditions is valid: (\(C_1\)) given above or

  • (\(C^{\prime }_2\)) \(|x|+|y|\ge 1\), \((-1)^{m} x^n y^{n-m}<0\) and

    $$\begin{aligned} \frac{n\, \arccos \left( \frac{1-x^2-y^2}{2|x||y|}\right) -m\, \arccos \left( \frac{1-x^2+y^2}{2|y|}\right) }{\pi }<1. \end{aligned}$$
    (1.16)

We stress that (1.15) and (1.16) are equivalent, and the they are also equivalent to the condition \(2\omega (x,y)>n-1\), where \(\omega (x,y)\) is defined in (1.12), see Remark 1.6.

In the sequel, we show that Theorem 1.3 yields, in particular, a characterization of \(\Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\), i.e., the stability region for trinomials with general real coefficients. We recall that \(\Pi _n([1:a:b])=[1:x: y]\), where \(x=|a|>0\) and \(y=(-1)^n|b|\), see (1.8), and

$$\begin{aligned} \Pi _n(\Omega _n)= {\left\{ \begin{array}{ll} \Delta _0\cup \Gamma _0 &{} \text { for }n\text { being an even number},\\ \Delta _1\cup \Gamma _1 &{} \text { for }n\text { being an odd number}, \end{array}\right. } \end{aligned}$$

see Remark 1.5.

Corollary 1.14

(Schur stability for real coefficients) For any integer \(n\ge 2\) it follows that \([1:x:y]\in \Gamma _{n\mod 2}\) if and only if \([1:x: -y],[1:-x:y], [1:-x:-y]\in \mathcal {C}:=\{[1:u:v]\in \mathbb {P}^2_{\mathbb {R}}: |u|+|v|<1\}\) with \(x>0\) and \((-1)^n y>0\). In addition,

  1. (i)

    for n being an even positive integer it follows that \([1:x:y]\in \Delta _0\) if and only if \([1:-x:y]\in (\Omega _n\cap \mathbb {P}^2_\mathbb {R}){\setminus }\mathcal {C}\) and \(x>0\).

  2. (ii)

    for \(n\ge 3\) being an odd positive number and m is an even positive number. Then \([1:x:y]\in \Delta _1\) if and only if \([1:-x:-y]\in (\Omega _n\cap \mathbb {P}^2_\mathbb {R}){\setminus }\mathcal {C}\), \(x>0\) and \(y<0\).

  3. (iii)

    for \(n\ge 3\) being an odd positive number and m is an odd positive number. Then \([1:x:y]\in \Delta _1\) if and only if \([1:x:-y]\in (\Omega _n\cap \mathbb {P}^2_\mathbb {R}){\setminus } \mathcal {C}\) and \(y<0\).

Proof

The proof is given in Sect. A.1 in Appendix A. \(\square \)

As we have already pointed out in Remark 1.9 or in Corollary 1.14, the Cohn domain \(\mathcal {C}\subset \Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\). However, its boundary \(\partial \mathcal {C}:=\{[1:u:v]\in \mathbb {P}^2_{\mathbb {R}}: |u|+|v|=1\}\) does not belong in \(\Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\). By Remark 1.13 or Corollary 1.14 we have that \(\{[1:u:v]\in \mathbb {P}^2_{\mathbb {R}}: |u|+|v|=1,\,(-1)^{m} u^n v^{n-m}<0\}\) belongs to \(\Omega _n \cap \mathbb {P}^2_{\mathbb {R}}\).

The following corollary yields that the trinomial \(\zeta \mapsto \zeta ^n+b\zeta ^m+c\) with \(1\le m< n-1\), and \(b,c\in \mathbb {C}\) satisfying \(|b|=1\) and \(0<|c|<1\) is never Schur stable.

Corollary 1.15

(Trinomials with two unimodular coefficients) Assume that \(|b|=1\) and \(0<|c| < 1\). If \(1\le m<n-1\), then \(\Pi _n([1:b:c])=[1: 1:(-1)^n|c|]\not \in \Omega _n\). Hence \([1:b:c] \notin \Omega _n\).

Proof

Assume that \(0<|c|<1\). We note that

$$\begin{aligned} \frac{\pi }{3}\le \arccos \left( \frac{|c|}{2}\right) <\frac{\pi }{2}. \end{aligned}$$
(1.17)

We start with the case when n is an even number. The case when n is an odd number is analogous. By (1.8) we have that \(\Pi _n([1:b:c])=[1:1,|c|]\). Now, we verify when \([1:1:|c|]\in \Delta _0\), where \(\Delta _0\) is defined in (1.11). For short, we write \(\omega :=\omega (1,|c|)\). Observe that \(2\omega >n-1\) if and only if

$$\begin{aligned} 2\omega =(n+m)\frac{\arccos \left( \frac{|c|}{2}\right) }{\pi }>n-1. \end{aligned}$$

The preceding inequality together with (1.17) imply

$$\begin{aligned} (n+m)\frac{1}{2}>n-1 \end{aligned}$$

yielding \(m=n-1\). By Corollary 1.10 we conclude the second part of the statement. \(\square \)

Corollary 1.15 implies that the trinomial associated to \([1:\pm 1:c]\) is stable only when \(m=n-1\). In Theorem 2 in [46], the author studies the Schur stability for the trinomial associated to \([1:-1:c]\) with \(c\in \mathbb {R}\) and \(m=n-1\). The following corollary yields the Schur stability for the trinomial associated to [1 : 1 : c].

Corollary 1.16

(Theorem 2 in [46]: real case) Assume that \(b=1\), \(0<c<1\) and \(m=n-1\).

  1. (i)

    If n is an odd number then \([1:1:c]\not \in \Omega _n\). Moreover, \([1:1:-c]\in \Omega _n\) if and only if

    $$\begin{aligned} \frac{(n-1)\pi }{2n-1}< \arccos \left( \frac{c}{2}\right) < \frac{\pi }{2}. \end{aligned}$$
    (1.18)
  2. (ii)

    If n is an even number then \([1: 1:-c]\not \in \Omega _n\). In addition, \([1: 1:c]\in \Omega _n\) if and only if

    $$\begin{aligned} \frac{(n-1)\pi }{2n-1}< \arccos \left( \frac{c}{2}\right) < \frac{\pi }{2}. \end{aligned}$$

As a consequence of Corollary 1.15 we have that \(n=2\) and \(c\in (-1,1)\) are necessary conditions in order that the Lambert trinomial (see [67]) \(L_{n}(\zeta )=\zeta ^n+\zeta +c\), \(\zeta \in \mathbb {C}\) with \(c\in \mathbb {R}\) is Schur stable. However, such conditions are not sufficient. Indeed, by Corollary 1.16 we have that \(L_2\) is a Schur stable trinomial if and only if \(0<c<1\).

Proof of Corollary 1.16

We start with the proof of Item (i). By (1.10) we note that \(P=1/2\). Then Theorem 1.1 with the help of Lemma A.1 in Appendix A implies the first part of the statement.

We continue with the second part of the statement. By Theorem 1.3 it is enough to show that \(\Pi _n([1:1:-c])=[1:1:-c]\in \Delta _1\). For short, we write \(\omega :=\omega (1,|c|)\). Observe that \(2\omega >n-1\) if and only if

$$\begin{aligned} 2\omega =(2n-1)\frac{\arccos \left( \frac{|c|}{2}\right) }{\pi }>n-1 \end{aligned}$$

yields the left-hand side of (1.18). Since \(c\in (0,1)\), the right-hand side of (1.18) follows straightforwardly.

The proof of Item (ii) is similar and we omit it. \(\square \)

The following corollary yields the Schur stability for the trinomial associated to [1 : b : c] for \(m=n-1\) and complex coefficients \(|b|=1\) and \(0<|c|<1\). In particular, it implies Theorem 2 in [46], and Theorem 1 and Theorem 2 in [50].

Corollary 1.17

(Theorem 2 in [46], Theorem 1 and Theorem 2 in [50]: complex case) Assume that \(|b|=1\), \(0<|c|<1\) and \(m=n-1\). The point \([1:b:c] \in \Omega _n\) if and only if

$$\begin{aligned} \left( \frac{n-1}{2n-1} \right) \pi<\arccos \left( \frac{|c|}{2}\right) < \frac{\pi }{2}, \end{aligned}$$

and [1 : b : c] can be represented in the form

$$\begin{aligned} {[}1:e^{\textsf{i}t}e^{-\textsf{i}s}:(-1)^n|c|e^{-\textsf{i}ns}], \quad \text { where }\quad s\in [0,2\pi ] \end{aligned}$$

and

$$\begin{aligned} |t|<\frac{(2n-1)\arccos \left( \frac{|c|}{2}\right) -(n-1)\pi }{n}. \end{aligned}$$

Proof

The proof is a direct consequence of Theorem 1.3. \(\square \)

Remark 1.18

(A discussion about trinomials with complex coefficients)

  1. (i)

    We stress that Theorem 1.3 generalizes the results given in [14] for trinomials with real coefficients to the setting of complex coefficients.

  2. (ii)

    We point out that, in particular, Theorem 1.3 gives the stability region for trinomials with real coefficients, see Remark 1.13 and Corollary 1.14.

  3. (iii)

    Using the so-called Schur–Cohn method, necessary and sufficient analytic conditions for the Schur stability of trinomials with complex coefficients and exponents n general and \(m=n-1\) have been analyzed in Theorem 2 and Theorem 4 of [16], see also Theorem 14 in [12]. More recently, using the so-called discrete D-decomposition method, necessary and sufficient analytic conditions for the Schur stability of trinomials with complex coefficients and general exponents n and m is provided in Theorem 1 of [17]. We point out that our main result Theorem 1.3 is an implicit geometric parametrization of the stability region, see Remark 1.8.

    In what follows, we compare the results of Theorem 1 in [17] with the findings of Theorem 1.3. We verify that Theorem 1 in [17] implies Theorem 1.3. Inspecting the proof below, one can see that the converse also holds true. It is not hard to see that the condition (4) in Theorem 1 of [17] is equivalent to the Item (1) in Theorem 1.3. In the sequel, we assume that condition given in (5)-(6) of Theorem 1 in [17] is valid. They read for the trinomial (1.5) as follows: \(|b|+|c|\ge 1\), \(|b|-1<|c|<1\) and

    $$\begin{aligned} \begin{aligned} n\,\arccos \left( \frac{1+|b|^2-|c|^2}{2|b|}\right)&+(n-m)\,\arccos \left( \frac{1-|b|^2+|c|^2}{2|c|}\right) \\&<\arccos \left( \cos \left( n\arg (-b)-(n-m)\arg (-c)\right) \right) , \end{aligned} \end{aligned}$$
    (1.19)

    where \(\arg (z)\) denotes the argument of a given non-zero complex number z. Let \(x=|b|\) and \(y=|c|\) and recall the definition of the angles \(\omega _1\), \(\omega _2\) and \(\omega _3\) given in Fig. 1 of Remark 1.6. The inequality (1.19) reads as follows

    $$\begin{aligned} n\omega _3+(n-m)\omega _2<\arccos \left( \cos \left( n\arg (b)-(n-m)\arg (c)+m\pi \right) \right) , \end{aligned}$$

    where we have used the fact that \(\arg (-z)=\pi +\arg (z)\), \(z\in \mathbb {C}\), \(z\ne 0\). Since \(\omega _1+\omega _2+\omega _3=\pi \) and \(2\pi \omega =n\omega _1+m\omega _2\) (recalling \(\omega :=\omega (1)\) for \(r=1\) defined in (1.3)), we obtain

    $$\begin{aligned} n\pi -2\pi \omega <\arccos \left( \cos \left( n\arg (b)-(n-m)\arg (c)+m\pi \right) \right) . \end{aligned}$$
    (1.20)

    Since the Cosine function is even, we also have

    $$\begin{aligned} n\pi -2\pi \omega <\arccos \left( \cos \left( -n\arg (b)+(n-m)\arg (c)-m\pi \right) \right) . \end{aligned}$$
    (1.21)

    Now, assume that n is an even number. Since \(\gcd (n,m)=1\), we have that m is an odd number. Recall that \(\arccos (-\mu )=\pi -\arccos (\mu )\) for \(-1\le \mu \le 1\) and \(\cos (\varphi +k\pi )=-\cos (\varphi )\) for \(\varphi \in \mathbb {R}\) and k being an odd integer number. Then (1.20) is equivalent to

    $$\begin{aligned} \begin{aligned} n\pi -2\pi \omega&<\arccos \left( -\cos \left( n\arg (b)-(n-m)\arg (c)\right) \right) \\&=\pi -\arccos \left( \cos \left( n\arg (b)-(n-m)\arg (c)\right) \right) \\&=\pi -n\arg (b)+(n-m)\arg (c), \end{aligned} \end{aligned}$$
    (1.22)

    and (1.21) is equivalent to

    $$\begin{aligned} \begin{aligned} n\pi -2\pi \omega&<\arccos \left( -\cos \left( -n\arg (b)+(n-m)\arg (c)\right) \right) \\&=\pi -\arccos \left( \cos \left( -n\arg (b)+(n-m)\arg (c)\right) \right) \\&=\pi +n\arg (b)-(n-m)\arg (c). \end{aligned} \end{aligned}$$
    (1.23)

    Note that (1.22) is equivalent to

    $$\begin{aligned} \frac{n\arg (b)-(n-m)\arg (c)}{2\pi }<\frac{1}{2}(2\omega -(n-1)) \end{aligned}$$

    and (1.23) is equivalent to

    $$\begin{aligned} -\frac{1}{2}(2 \omega -(n-1))<\frac{n\arg (b)-(n-m)\arg (c)}{2\pi }. \end{aligned}$$

    The preceding two inequalities are equivalent to

    $$\begin{aligned} \frac{1}{2}(2 \omega -(n-1))>\left| \frac{n\arg (b)-(n-m)\arg (c)}{2\pi }\right| . \end{aligned}$$
    (1.24)

    By (1.9) and (1.10) the corresponding pivots for the points [1 : a : b] and [1 : x : y] are given by

    $$\begin{aligned} P=\frac{n(\pi +\arg (b)-\arg (c))-m(\pi -\arg (c))}{2\pi }\quad \text { and }\quad P_*:=\frac{n-m}{2}, \end{aligned}$$

    respectively. Note that

    $$\begin{aligned} \begin{aligned} P-P_*&=\frac{n(\pi +\arg (b)-\arg (c))-m(\pi -\arg (c))}{2\pi }-\frac{(n-m)\pi }{2\pi }\\&=\frac{n(\arg (b)-\arg (c))+m\arg (c)}{2\pi }\\&=\frac{n\arg (b)-(n-m)\arg (c)}{2\pi }. \end{aligned} \end{aligned}$$

    Therefore, (1.24) reads as follows

    $$\begin{aligned} |P-P_*|<\frac{1}{2}(2\omega -(n-1)). \end{aligned}$$

    By Item (iii) in Remark 1.8 we obtain

    $$\begin{aligned} |t|< \frac{2\pi }{n}\cdot \frac{1}{2}(2\omega -(n-1))=\frac{\pi }{n}(2\omega -(n-1)), \end{aligned}$$

    which is the statement of Item (2) in Theorem 1.3.

    The case when n is an odd number is analogous.

The rest of the manuscript is organized as follows. In Sect. 2 we provide the proof of Theorem 1.3. Finally, in Appendix A we state and show auxiliary results that we use throughout the manuscript. In addition, in Sect. A.1 of Appendix A we give the proof of Corollary 1.14. In Appendix B, for completeness of the presentation, we show that the exceptional cases in the original statement of Bohl’s Theorem given in [7] are included in the counting procedure of Theorem 1.1.

2 Proof of the Main Result: Theorem 1.3

The proof of Theorem 1.3 is given in Sect. 2.2. It relies on Theorem 1.1 and basic arithmetic properties about open intervals (the number of integers that they contain). This is the content of Lemma 2.1, Lemma 2.3 and Lemma 2.5, which is proved in Sect. 2.1.

2.1 Arithmetic Properties for Open Intervals

From now on, unless otherwise specified,

$$\begin{aligned} I=(P-\omega , P+\omega ) \end{aligned}$$

denotes an open interval with center (pivot) \(P\in \mathbb {R}\) and radius \(\omega \ge 0\) with the understanding \(I=\emptyset \) for \(\omega =0\) and any \(P\in \mathbb {R}\). The numbers \(P-\omega \) and \(P+\omega \) are called the boundary points of I. For shorthand, we denote the length of I by \(\mu (I)\) and note that \(\mu (I)=2\omega \). Moreover, we denote by \(\#I\) the cardinality of the set \(I\cap \mathbb {Z}\).

In the sequel, we show that the length of an open interval I with no integer boundary points and containing precisely k integers satisfies \(k-1<\mu (I)<k+1\). We point out that for \(k=0\), the lower bound \(k-1=-1\) is not informative. This is the content of the following lemma.

Lemma 2.1

(Localization of the length given the cardinality) Assume that \(\#I=k\) for some \(k\in \mathbb {N}\cup \{0\}\) and the boundary points of I are not integers, then it follows that \(k-1< 2\omega < k+1\).

Proof

By hypothesis there exists a unique \(\ell \in \mathbb {Z}\) such that

$$\begin{aligned} \ell -1<P-\omega< \ell \quad \text { and }\quad \ell +k-1<P+\omega <\ell +k. \end{aligned}$$
(2.1)

Since \(2\omega =(P+\omega )-(P-\omega )\), (2.1) implies

$$\begin{aligned} \begin{aligned} k-1=\left( \ell +(k-1)\right) -\ell<2\omega <\ell +k -(\ell -1)=k+1. \end{aligned} \end{aligned}$$

The preceding inequality concludes the statement. \(\square \)

Remark 2.2

(Boundary points of I) If in Lemma 2.1 we omit the restriction that the boundary points of I are not integers, then it follows that \(k-1 < 2\omega \le k+1\).

Now, we study in detail the following question. Given an open interval I satisfying \(k-1<\mu (I)<k+1\), how many integers does it contain? It is not hard to see that there are three possible values: \(k-1\), k or \(k+1\). Moreover, once the length of the interval I is fixed, there are only two possible values depending on whether \(k-1<\mu (I)\le k\) or \(k<\mu (I)<k+1\). In the first case, the possible values are \(k-1\) and k, while in the second case, the possible values are k and \(k+1\). This is the content of the following lemma.

Lemma 2.3

(Localization of the cardinality given the length) Let k be a non-negative integer such that \(k-1<2\omega <k+1\) (\(0\le 2\omega < 1\) for \(k=0\)) then \(\#I \in \{k-1, k,k+1\}\) (\(\#I \in \{0, 1\}\) for \(k=0\)). In addition,

  1. (i)

    if \(k-1<2\omega <k\) (equivalently, if \(2\omega -(k-1) < k+1-2\omega \)) then \(\#I\in \{k-1,k\}\).

  2. (ii)

    if \(2\omega = k\) (equivalently, if \(2\omega -(k-1) = k+1-2\omega \)) then \(\#I=k\) or the boundary points of I are integers and \(\#I=k-1\).

  3. (iii)

    if \(k< 2\omega <k+1\) (equivalently, if \(2\omega -(k-1) > k+1-2\omega \)) then \(\#I\in \{k,k+1\}\).

Proof

The proof is done by contradiction. Let us assume that \(\#I=k+j\) for some \(|j|>1\). By Remark 2.2 we have that

$$\begin{aligned} k+j-1<2\omega \le k+j+1, \end{aligned}$$

which leads to a contradiction to the hypothesis \(k-1<2\omega <k+1\). As a consequence, \(\#I \in \{k-1, k,k+1\}\).

In the sequel, we show Item (i). Assume that \(k-1< 2\omega <k\). We claim that no interval of length \(2\omega \) contains exactly \(k+1\) integers. Indeed, by Remark 2.2 we have that \(k<2\omega \le k+2\) and it contradicts the assumption that \(k-1< 2\omega <k\).

Now, we provide two examples of open intervals \(I_1\) and \(I_2\) of length \(2\omega \) with precisely k and \(k-1\) integers, respectively. For instance, the open intervals

$$\begin{aligned} I_1:=\left( \frac{k-1}{2}-\omega , \, \, \omega + \frac{k-1}{2}\right) , \quad I_2:=\left( 0, 2\omega \right) \quad \end{aligned}$$

have length \(2\omega \), \(I_1\cap \mathbb {Z}=\{0, \ldots , k-1\}\) and \(I_2\cap \mathbb {Z}=\{1, \ldots , k-1\}\).

The proofs of Item (ii) and Item (iii) are analogous and we omit them. \(\square \)

Remark 2.4

(At most three different values given the length) Roughly speaking, Lemma 2.3 can be interpreted as follows. By moving the center (pivot) P of the original interval I and preserving its length \(2\omega \), it follows that the amount of integers in the new interval diminishes by one, does not change or increases by one. In addition, Lemma 2.3 yields precisely when the new interval remains with the same amount of integers, decreases by one or increases by one, according between which integers the length of the interval is located.

Broadly speaking, the next lemma allows us to quantify how far we can move the initial pivot \(P \in \mathbb {Z}/2:=\{\ell /2: \ell \in \mathbb {Z}\}\) of the open interval I with no integer boundary points, preserving the length of the interval and the number of integers contained in the new interval, which also has no integer boundary points.

Lemma 2.5

(Localization of the cardinality given the length and the pivot) Assume that \(\#I=k\ge 0\), the boundary points of I are not integers and \(P \in \mathbb {Z}/2\). We consider the open interval \(I':=(P'-\omega , P'+\omega )\) and define

$$\begin{aligned} \nu _1:=2\omega -(k-1),\qquad \nu _2:= k+1-2\omega . \end{aligned}$$

Then it follows that

  1. (i)

    If \(0\le k-1<2\omega <k\) and \(|P-P'|<\nu _1/2\) then \(\#I'=k\) and no boundary point of \(I'\) is an integer.

  2. (ii)

    If \(0\le k-1<2\omega <k\) and \(|P-P'|=\nu _1/2\) then some boundary point of \(I'\) is integer and \(\#I'=k-1\).

  3. (iii)

    If \(k=2 \omega \) and \(|P-P'|<\nu _1/2=\nu _2/2\) then \(\#I'=k\) and no boundary point of \(I'\) is an integer.

  4. (iv)

    If \(k=2 \omega \) and \(|P-P'|=\nu _1/2=\nu _2/2\) then both boundary points of \(I'\) are integers and \(\#I'=k-1\).

  5. (v)

    If \(k<2\omega < k+1\) and \(|P-P'|<\nu _2/2\) then \(\#I'=k\) and no boundary point of \(I'\) is an integer.

  6. (vi)

    If \(k<2\omega < k+1\) and \(|P-P'|=\nu _2/2\) then some boundary point of \(I'\) is an integer and \(\#I'=k\).

Proof

We start with the proof of Item (i). The proof of Item (i) is divided in two cases: \(P\in \mathbb {Z}\) or \(P\in (\mathbb {Z}+1/2)\).

First, we assume that \(P \in \mathbb {Z}\). By Item (i) of Lemma A.1 in Appendix A, we have that \(k=2k'+1\) for some non-negative integer \(k'\). Moreover,

$$\begin{aligned} I\cap \mathbb {Z}= \{P-k', P-k'+1, \ldots , P,\ldots , P+k'-1, P+k'\}. \end{aligned}$$

Since \(|P'-P|<\nu _1/2=\omega -\left( \frac{k-1}{2}\right) =\omega -k'\), we have that

$$\begin{aligned} P'-\omega<P-k' \quad \text { and } \quad P+k'< P'+\omega , \end{aligned}$$
(2.2)

Then \(|P'-P|<k'+1-\omega \) due to \(2\omega <k=2k'+1\). The latter yields

$$\begin{aligned} P-(k'+1)< P'-\omega \quad \text { and }\quad P'+\omega < P+k'+1. \end{aligned}$$
(2.3)

By (2.2) to (2.3) we deduce that

$$\begin{aligned} I' \cap \mathbb {Z}=\{P-k', P-k'+1,\ldots ,P,\ldots , P+k'-1, P+k'\} \end{aligned}$$

and \(P'-\omega \), \(P'+\omega \) are not integers. Therefore, \(\#I'=2k'+1=k\).

We continue the proof with the case \(P=\ell +1/2\) for some \(\ell \in \mathbb {Z}\). By Item (ii) of Lemma A.1 in Appendix A we have that \(\#I=2k'\) for some non-negative integer \(k'\). Moreover,

$$\begin{aligned} I\cap \mathbb {Z}=\{\ell -k'+1, \ell -k'+2, \ldots , \ell +k'-1,\ell +k'\}. \end{aligned}$$

Since \(|P'-(\ell +1/2)|=|P'-P|<\omega -k'+1/2\), it follows that

$$\begin{aligned} P'-\omega< \ell -k'+1\quad \text { and }\quad \ell +k' < P'+\omega . \end{aligned}$$
(2.4)

The hypothesis \(2\omega <k=2k'\) also reads as \(\omega -k'+1/2<k'+1/2-\omega \). As consequence, \(|P'-(\ell +1/2)|<\omega -k'+1/2<k'+1/2-\omega \), which implies

$$\begin{aligned} \ell -k'< P'-\omega \quad \text { and }\quad P'+\omega < \ell +k'+1. \end{aligned}$$
(2.5)

By (2.4) and (2.5) it follows that

$$\begin{aligned} I' \cap \mathbb {Z}= \{\ell -k'+1, \ell -k'+2, \ldots , \ell +k'\} =I \cap \mathbb {Z}, \end{aligned}$$

and the numbers \(P'-\omega \) and \(P'+\omega \) are not integers. This completes the proof of Item (i).

We continue with the proof of Item (ii). As in the proof of Item (i), the proof of Item (ii) is divided in two cases: \(P\in \mathbb {Z}\) or \(P\in (\mathbb {Z}+1/2)\). We point out that \(P'\ne P\) due to the assumptions.

We start assuming \(P \in \mathbb {Z}\). By Item (i) of Lemma A.1 in Appendix A, we have that \(k=2k'+1\) for some non-negative integer \(k'\). In addition,

$$\begin{aligned} I\cap \mathbb {Z}=\{P-k', P-k'+1, \ldots ,P,\ldots ,P+k'-1, P+k'\}. \end{aligned}$$

The hypothesis \( |P'-P|=\nu _1/2=\omega -k'>0\) yields \(P'-P=\omega -k'\) or \(P'-P=-(\omega -k')\). If \(P'-P=\omega -k'\) then

$$\begin{aligned} P'-\omega = P-k' \in \mathbb {Z}. \end{aligned}$$
(2.6)

The inequality \(P-P'<0<\omega -k'\) implies that

$$\begin{aligned} P+k'<P'+\omega . \end{aligned}$$
(2.7)

By hypothesis \(2\omega <k=2k'+1\), which implies \(\omega -k'<k'+1-\omega \). As a consequence, \(|P-P'|=\omega -k'<k'+1-\omega \), which yields

$$\begin{aligned} P'+\omega < P+k'+1. \end{aligned}$$
(2.8)

By (2.6), (2.7) and (2.8) we deduce that

$$\begin{aligned} I'\cap \mathbb {Z}:=\{P-k'+1,P-k',\ldots ,P,\ldots , P+k'-1,P+k'\} \end{aligned}$$

and \(P'-\omega \) is an integer. The proof for the case \(P'-P=-(\omega -k')\) is analogous and we omit it.

We continue the proof with the case \(P=\ell +1/2\) for some \(\ell \in \mathbb {Z}\). By Item (ii) of Lemma A.1 in Appendix A we have that \(k=2k'\) for some non-negative integer \(k'\). Moreover,

$$\begin{aligned} I\cap \mathbb {Z}=\{\ell -k'+1, \ell -k'+2, \ldots , \ell +k'-1,\ell +k'\}. \end{aligned}$$

As in the previous case, we have that \(P'-(\ell +1/2)=P'-P=\omega -k'+1/2>0\) or \(P'-P=-(\omega -k'+1/2)<0\). We show the case \(P'-P=\omega -k'+1/2\). The proof for the case \(P'-P=-(\omega -k'+1/2)\) is analogous and we omit it.

We note that \(P'-(\ell +1/2)=P'-P=\omega -k'+1/2>0\) implies

$$\begin{aligned} P'-\omega =\ell -k'+1. \end{aligned}$$
(2.9)

In addition, the inequality \(\ell +1/2-P'=P-P'<0<\omega -k'+1/2\) implies that

$$\begin{aligned} \ell +k' < P'+\omega . \end{aligned}$$
(2.10)

By hypothesis \(2\omega <k=2k'\), we have that \(\omega -k'+1/2<k'+1/2-\omega \). Thus,

$$\begin{aligned} |P'-\ell -1/2|=|P'-P|=\omega -k'+1/2<k'+1/2-\omega , \end{aligned}$$

which implies

$$\begin{aligned} P'+\omega < \ell +k'+1. \end{aligned}$$
(2.11)

By (2.9), (2.10), (2.11) we obtain

$$\begin{aligned} I'\cap \mathbb {Z}=\{\ell -k'+2, \ldots , \ell +k'-1,\ell +k'\} \end{aligned}$$

and \(P'-\omega \) is an integer. The proof of Item (ii) is complete.

The proofs of Item (iii), Item (iv), Item (v) and Item (vi) are similar and we left the details to the interested reader. \(\square \)

In the following lemma, Item (1) and Item (2) are restatements of Lemma 2.5 in a condensed form. We state them here for completeness of the presentation. Additionally, we introduce Item (3) which allows us to see when the new interval \(I'\) has different cardinality from the initial interval I.

Lemma 2.6

(Variation of the pivot) Assume that \(\# I =k\), the boundary points of I are not integers and \(P \in \mathbb {Z}/2:=\{ \ell /2: \ell \in \mathbb {Z}\}\). We denote the open interval \((P'-\omega , P'+\omega )\) by \(I'\), and

$$\begin{aligned} \nu = \min \left\{ 2\omega -(k-1), k+1-2\omega \right\} . \end{aligned}$$
(2.12)
  1. (1)

    If \(|P-P'| <\frac{\nu }{2}\) then \(\#I' =k\) and no boundary point of \(I'\) is an integer.

  2. (2)

    If \(|P-P'|=\frac{\nu }{2}\) then a boundary point of \(I'\) is integer.

  3. (3)

    If \(\frac{\nu }{2} < |P-P'| \le \frac{1}{2}\) then \(\# I' \ne k\) and no boundary point of \(I'\) is an integer.

Proof

We prove Item (3). For \(P_0:=P-1/2\) and \(Q_0:= P+1/2\), Lemma A.1 in Appendix A yields that the intervals \(I_0=(P_0 -\omega , P_0+\omega )\) and \(J_0=(Q_0-\omega , Q_0+\omega )\) satisfy \(\# I_0 = \# J_0 \ne k\).

By hypothesis \(\frac{\nu }{2}<|P-P'|\le \frac{1}{2}\) (so \(\nu <1\), and it means that no boundary point of \(I_0\) or \(J_0\) is an integer), which implies

$$\begin{aligned} |P_0-P'|< \frac{1-\nu }{2} \quad \text { or } \quad |Q_0-P'|< \frac{1-\nu }{2}. \end{aligned}$$

In the sequel, we show that \(\#I'=\# I_0=\# J_0\). Since \(\#I_0\ne k\) and \(\mu (I_0)=2\omega \), Lemma 2.3 implies that \(\#I_0\in \{k-1,k+1\}\). Assume that \(\#I_0=k-1\). Since \(\mu (I_0)=2\omega \), Lemma 2.1 yields \(k-2<2\omega <k\). By hypothesis \(\#I=k\) and \(\mu (I)=2\omega \), then Lemma 2.1 implies \(k-1<2\omega <k+1\). Therefore, \(k-1<2\omega <k\) and hence \(\nu _0=k-2\omega \), where \(\nu _0\) is the corresponding value of (2.12) for \(I_0\). Since

$$\begin{aligned} 1-\nu =1-(2\omega -(k-1))=\nu _0, \end{aligned}$$

Item (1) of Lemma 2.6 applied to \(I_0\) implies \(\# I'= \#I_0=k-1\) and no boundary point of \(I'\) is an integer. The case \(\#I_0=k+1\) is analogous. In summary, \(\# I '\ne k\) and no boundary point of \(I'\) is an integer. \(\square \)

2.2 Proof of Theorem 1.3

In this subsection, we show Theorem 1.3, which is a consequence of what we have already proved up to here.

Proof of Theorem 1.3

Without loss of generality, we assume that n is even number (the proof for the case n is an odd number is analogous).

We start showing the necessary implication. Let \([1:b:c] \in \Omega _n\) be fixed and write \(b=xe^{\textsf{i}\theta _1}\) and \(c=ye^{\textsf{i}\theta _2}\) for some \(\theta _1,\theta _2\in \mathbb {R}\), where \(x=|b|\), \(y=|c|\). By Proposition 7.9 in [5] we have that

$$\begin{aligned} {[}1:x:y]:=[1:|b|:|c|] \in \Pi _n(\Omega _n)\subset \Omega _n\cap \mathbb {P}^2 _{\mathbb {R}}, \end{aligned}$$
(2.13)

where \(\Pi _n\) is defined in (1.8). For convenience, we introduce the following notation

$$\begin{aligned} e^{\textsf{i}\theta } \cdot [1: b: c] := [1:b e^{-\textsf{i}(n-m)\theta }: c e^{-in \theta }]. \end{aligned}$$
(2.14)

In particular, for \(\sigma = \frac{\theta _2}{n}\) we have that

$$\begin{aligned} e^{\textsf{i}\sigma }\cdot [1:b:c]=[1:x e^{\textsf{i}t^\prime }:y], \end{aligned}$$
(2.15)

where \(t^\prime :=\theta _1-(n-m) \frac{\theta _2}{n}\). Since n and m are coprime numbers, we have that n and \(n-m\) are also coprime numbers. Then there exists (at most two) an n-th root of unity \(e^{2\pi \textsf{i}k /n}\) such that

$$\begin{aligned} \left( e^{\frac{2\pi \textsf{i}k}{n}}\right) ^{-(n-m)} e^{\textsf{i}t^\prime }= e^{\textsf{i}t},\quad \text { where }\quad |t|\le \frac{\pi }{n}. \end{aligned}$$
(2.16)

By (2.15) and (2.16) we obtain

$$\begin{aligned} e^{\frac{2 \pi \textsf{i}k}{n}}\cdot [1:xe^{\textsf{i}t^\prime }:y]=[1:xe^{\textsf{i}t}:y]. \end{aligned}$$
(2.17)

The choice \(s=-\frac{2\pi k}{n}-\sigma \mod 2\pi \), where \(0 \le s \le 2\pi \) with the help (2.15) and (2.17) we have that

$$\begin{aligned} \begin{aligned} e^{-\textsf{i}s}\cdot [1:b:c]&=(e^{\frac{2 \pi \textsf{i}k}{n}} e^{\textsf{i}\sigma })\cdot [1:b:c]= e^{\frac{2 \pi \textsf{i}k}{n}} \cdot \left( e^{\textsf{i}\sigma } \cdot [1:b:c]\right) \\&=e^{\frac{2 \pi \textsf{i}k}{n}} \cdot [1:xe^{\textsf{i}t^\prime }:y]=[1:xe^{\textsf{i}t}:y]. \end{aligned} \end{aligned}$$

The preceding equality with the help of (2.14) yields

$$\begin{aligned} {[}1:b:c]=e^{\textsf{i}s} \cdot [1:xe^{\textsf{i}t}:y]=[1:xe^{\textsf{i}t} e^{-(n-m)s}: ye^{-\textsf{i}ns}]\quad \text { with }\quad |t|\le \frac{\pi }{n}. \end{aligned}$$

By the definition of \(\Delta _0\) and \(\Gamma _0\) given in (1.11) we note that they are disjoint. Moreover, by Remark 1.5 we have that \(\Pi _n(\Omega _n)= \Delta _0\cup \Gamma _0\).

We point out that for \([1:x:y] \in \Gamma _0\) there is nothing to prove. In the sequel, we assume that \([1:x:y] \in \Delta _0\). For short, we write \(\omega =\omega (x,y)\). We claim that

$$\begin{aligned} |t|<\frac{(2\omega -n+1)\pi }{n}. \end{aligned}$$

Indeed, by contradiction argument assume that

$$\begin{aligned} \frac{(2\omega -n+1)\pi }{n}\le |t|\le \frac{\pi }{n}. \end{aligned}$$
(2.18)

Recall that \([1:b:c]\in \Omega _n\) and hence by (2.13) we also have \([1:x:y]\in \Omega _n\). Now, we apply Theorem 1.1 for the corresponding trinomials f and g associated to [1 : x : y] and \([1:b:c]=[1: x e^{\textsf{i}t} e^{-\textsf{i}(n-m)s}: ye^{-\textsf{i}ns}]\), respectively. Since \([1,x,y]\in \Delta _0\), Remark 1.6 yields that the positive numbers 1, x and y are the side lengths of some triangle (it may be degenerate). The corresponding pivots (1.3) are given by

$$\begin{aligned} P_f:=\frac{n-m}{2},\quad \quad P_g:=\frac{n(t+\pi )-m\pi }{2\pi }=P_f+\frac{nt}{2\pi } \end{aligned}$$
(2.19)

and

$$\begin{aligned} \omega _f(1)= \omega _g(1)=\frac{n\omega _1+m\omega _2}{2\pi }, \end{aligned}$$

where \(\omega _1\) and \(\omega _2\) are the opposite angles to the side lengths 1 and x of a triangle with side lengths 1, x and y. Recall that \(|t|\le \frac{\pi }{n}\). By (2.18) and (2.19)

$$\begin{aligned} \frac{2\omega -(n-1)}{2}\le |P_f-P_g|=\frac{n|t|}{2\pi }\le \frac{1}{2}. \end{aligned}$$

The preceding inequality with the help of Item (2) and Item (3) of Lemma 2.6 yields that the trinomial \(g\not \in \Omega _n\), which is a contradiction. This finishes the proof of the necessity implication.

We continue with the proof of the sufficient implication. Assume that

$$\begin{aligned} {[}1:xe^{\textsf{i}t}e^{-\textsf{i}(n-m)s}: ye^{-\textsf{i}n s}] \end{aligned}$$

satisfies (1) and (2) of Theorem 1.3. We show that \([1:xe^{\textsf{i}t}e^{-\textsf{i}(n-m)s}: ye^{-\textsf{i}n s}]\in \Omega _n\).

We recall that \(\Delta _0\) and \(\Gamma _0\) are disjoint and \(\Pi _n(\Omega _n)= \Delta _0\cup \Gamma _0\). For \([1:x:y] \in \Gamma _0\), (1.4) in Theorem 1.1 implies that \([1:x:y]\in \Omega _n\).

In the sequel, we assume that \([1:x:y] \in \Delta _0\). We apply Theorem 1.1 for the corresponding trinomials f and g associated to [1 : x : y] and \([1:b:c]=[1: x e^{\textsf{i}t} e^{-\textsf{i}(n-m)s}: ye^{-\textsf{i}ns}]\), respectively. By (2.19) we obtain \(|P_f-P_g|=\frac{n|t|}{2\pi }\) and for \(|t|<\frac{\pi (2 \omega -n+1)}{n}\) we have that

$$\begin{aligned} |P_f-P_g|< \frac{2\omega -(n-1)}{2}. \end{aligned}$$

The preceding inequality with the help of Item (1) of Lemma 2.6 implies that the trinomial \(g \in \Omega _n\). The proof of the necessity implication is complete. \(\square \)