OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..2000
EXAMPLE
Prime corresponding to the Fibonacci number F(7) = 13 is 4*13+1 = 53.
MAPLE
F:= n-> (<<0|1>, <1|1>>^n)[1, 2]:
a:= proc(n) option remember; local f, p; f:= F(n);
for p from f+1 by f while not isprime(p) do od; p
end:
seq(a(n), n=1..50);
MATHEMATICA
F[n_] := MatrixPower[{{0, 1}, {1, 1}}, n][[1, 2]];
a[n_] := a[n] = Module[{f = F[n], p}, For[p = f+1, !PrimeQ[p], p += f]; p];
Array[a, 50] (* Jean-François Alcover, Nov 18 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 09 2003
EXTENSIONS
Offset corrected by Alois P. Heinz, Jul 09 2017
STATUS
approved