OFFSET
0,1
COMMENTS
The analogous sequence for Fibonacci numbers instead of Lucas numbers is A333599.
LINKS
Robert Israel, Table of n, a(n) for n = 0..4760
Index entries for linear recurrences with constant coefficients, signature (-1,3,3,-1,-1).
FORMULA
G.f.: 4*x - 3 - (x + 3)/(2*(x^2 + x - 1)) - (x - 3)/(2*(x^2 - x - 1)) + 5/(x + 1).
a(n) = -a(n-1) + 3*a(n-2) + 3*a(n-3) - a(n-4) - a(n-5) for n >= 7.
a(n) = 5 for even n >= 2.
a(n) = A000032(n+2)-5 for odd n >= 3.
MAPLE
L:= n -> combinat:-fibonacci(n-1)+combinat:-fibonacci(n+1):
f:= n -> L(n)*L(n+1) mod L(n+2):
map(f, [$0..40]);
MATHEMATICA
With[{L = LucasL}, Table[Mod[L[n]*L[n + 1], L[n + 2]], {n, 0, 50}]] (* Amiram Eldar, Jan 24 2022 *)
PROG
(PARI) L(n) = fibonacci(n+1)+fibonacci(n-1);
a(n) = L(n)*L(n+1) % L(n+2); \\ Michel Marcus, Jan 24 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
J. M. Bergot and Robert Israel, Jan 23 2022
STATUS
approved