In
mathematics, a Lehmer sequence is a generalization of a
Lucas sequence
In mathematics, the Lucas sequences U_n(P,Q) and V_n(P, Q) are certain constant-recursive integer sequences that satisfy the recurrence relation
: x_n = P \cdot x_ - Q \cdot x_
where P and Q are fixed integers. Any sequence satisfying this r ...
.
Algebraic relations
If ''a'' and ''b'' are
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s with
:
:
under the following conditions:
* ''Q'' and ''R'' are
relatively prime
In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equival ...
nonzero
integer
An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
s
*
is not a
root of unity
In mathematics, a root of unity, occasionally called a de Moivre number, is any complex number that yields 1 when raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important i ...
.
Then, the corresponding Lehmer numbers are:
:
for ''n''
odd, and
:
for ''n''
even.
Their companion numbers are:
:
for ''n'' odd and
:
for ''n'' even.
Recurrence
Lehmer numbers form a linear
recurrence relation
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a paramete ...
with
:
with initial values
. Similarly the companion sequence satisfies
:
with initial values
References
Integer sequences
{{numtheory-stub