login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A153866
Largest of four consecutive Fibonacci numbers whose sum is a prime number.
7
3, 5, 13, 21, 89, 233, 987, 1597, 4181, 1346269, 24157817, 165580141, 2971215073, 53316291173, 2504730781961, 308061521170129, 14472334024676221, 184551825793033096366333
OFFSET
1,1
COMMENTS
1+1+2+3=7, 1+2+3+5=11, 3+5+8+13=29, 5+8+13+21=47, 21+34+55+89=199, ...
MATHEMATICA
a=0; b=1; c=1; lst={}; Do[d=Fibonacci[n]; p=a+b+c+d; If[PrimeQ[p], AppendTo[lst, d]]; a=b; b=c; c=d, {n, 3, 6!}]; lst
Alternate: Transpose[Select[Partition[Fibonacci[Range[200]], 4, 1], PrimeQ[Plus@@#]&]][[4]] (* Harvey P. Dale, Dec 05 2010 *)
KEYWORD
nonn
AUTHOR
STATUS
approved