In mathematics, a Lehmer sequence
or
is a generalization of a Lucas sequence
or
, allowing the square root of an integer R in place of the integer P.
To ensure that the value is always an integer, every other term of a Lehmer sequence is divided by √R compared to the corresponding Lucas sequence. That is, when R = P2 the Lehmer and Lucas sequences are related as:
