OFFSET
1,5
COMMENTS
Numbers k such that a(k) is prime are listed in A128163. Corresponding primes in {a(n)} are {3, 3, 31, 37, 137, 347, 487, 77951, 166409, 13506083561, ...}.
LINKS
Robert Israel, Table of n, a(n) for n = 1..4783
MAPLE
f:= n -> 3 &^ n mod combinat:-fibonacci(n):
map(f, [$1..100]); # Robert Israel, Jul 10 2020
MATHEMATICA
Table[PowerMod[3, n, Fibonacci[n]], {n, 1, 100}]
PROG
(Sage) [power_mod(3, n, fibonacci(n))for n in range(1, 41)] # - Zerinvary Lajos, Nov 28 2009
(PARI) a(n)=3^n%fibonacci(n) \\ Charles R Greathouse IV, Jun 19 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Feb 19 2007
STATUS
approved