Jacobsthal numbers are defined by the recurrence relation:
J_n =begin{cases} 0 & mbox{if } n = 0; 1 & mbox{if } n = 1; J_{n-1} + 2J_{n-2} & mbox{if } n > 1. end{cases}
The next Jacobsthal number is also given by the recursion formula:
The first recursion formula above is also satisfied by the powers of 2; the second is not.
The Jacobsthal number at a specific point in the sequence may be calculated directly using the closed-form equation:
3.
Jacobsthal-Lucas numbers retain the recurrence relation, Ln-1 + Ln-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:
L_n =begin{cases} 2 & mbox{if } n = 0; 1 & mbox{if } n = 1; L_{n-1} + 2L_{n-2} & mbox{if } n > 1. end{cases}
The following Jacobsthal-Lucas number also satisfies:
The Jacobsthal-Lucas number at a specific point in the sequence may be calculated directly using the closed-form equation:
L_n = 2^n + (-1)^n. ,
The first Jacobsthal-Lucas numbers are: