In mathematics, the Jacobsthal numbers are an integer sequence named after the German mathematician Ernst Jacobsthal. Like the related Fibonacci numbers, they are a specific type of Lucas sequence for which P = 1, and Q = −2[1]—and are defined by a similar recurrence relation: in simple terms, the sequence starts with 0 and 1, then each following number is found by adding the number before it to twice the number before that. The first Jacobsthal numbers are:
Jacobsthal numbers are defined by the recurrence relation:
The next Jacobsthal number is also given by the recursion formula:
or by:
The first recursion formula above is also satisfied by the powers of 2.
The Jacobsthal number at a specific point in the sequence may be calculated directly using the closed-form equation:[2]
The generating function for the Jacobsthal numbers is
Jacobsthal-Lucas numbers retain the recurrence relation, Ln-1 + 2Ln-2, of Jacobsthal numbers, but use the starting conditions of the Lucas numbers, i.e. L0 = 2, and L1 = 1; they are defined by the recurrence relation:
The following Jacobsthal-Lucas number also satisfies:[3]
The Jacobsthal-Lucas number at a specific point in the sequence may be calculated directly using the closed-form equation:[3]
The first Jacobsthal-Lucas numbers are: