[go: up one dir, main page]

login
A230607
Primes in the tribonacci-like sequence A214899.
29
2, 2, 5, 173, 1979, 10035601, 1314434453, 15043078019, 75946890143515970461691, 9947307490759622919990767, 33651500197152003774080593, 113842209720657202395344053, 577291982170349695261586984393, 33503139717732963900675717496847941
OFFSET
1,1
MATHEMATICA
a={2, 1, 2}; Print[2]; Print[2]; For[n=3, n<=1000, n++, sum=Plus@@a; If[PrimeQ[sum], Print[sum]]; a=RotateLeft[a]; a[[3]]=sum]
Select[LinearRecurrence[{1, 1, 1}, {2, 1, 2}, 300], PrimeQ] (* Harvey P. Dale, Jul 30 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Price, Dec 05 2013
EXTENSIONS
More terms from Harvey P. Dale, Jul 30 2015
STATUS
approved