OFFSET
3,9
COMMENTS
We exclude i=n-2 and i=n-1 because they yield Lucas(n-2) and Lucas(n-1), respectively. Sequence A113194 lists the n for which a(n)=0.
MATHEMATICA
Lucas[n_] := Fibonacci[n+1]+Fibonacci[n-1]; Table[cnt=0; Do[If[PrimeQ[Lucas[n]-Lucas[i]], cnt++ ], {i, 0, n-3}]; cnt, {n, 3, 150}]
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Oct 17 2005
STATUS
approved