OFFSET
0,1
LINKS
Robert Israel, Table of n, a(n) for n = 0..4762
EXAMPLE
a(3) = 4^7 mod 11 = 5.
MAPLE
luc:= n -> combinat:-fibonacci(n-1)+combinat:-fibonacci(n+1):
f:= n -> luc(n) &^ luc(n+1) mod luc(n+2):
map(f, [$0..50]);
MATHEMATICA
Table[PowerMod @@ LucasL[n + {0, 1, 2}], {n, 0, 50}] (* Amiram Eldar, Dec 23 2021 *)
PROG
(Python)
from gmpy2 import lucas2
def A350087(n):
a, b = lucas2(n+1)
return pow(b, a, a+b) # Chai Wah Wu, Dec 28 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Dec 22 2021
STATUS
approved