A243623 Prime terms in A214829.
7, 29, 1087, 1999, 3677, 6763, 5487349608898607, 115507410616162687, 878001744429057971864287, 210582098197038415344728317608265501, 870277059555114378903885645581650740066907
Offset: 1
Keywords
Links
- Robert Israel, Table of n, a(n) for n = 1..20
Crossrefs
Programs
-
Maple
f:= gfun:-rectoproc({a(n) = a(n-1) + a(n-2) + a(n-3), a(0) = 1, a(1) = 7, a(2) = 7},a(n),remember): select(isprime, map(f, [$2..1000])); # Robert Israel, Sep 02 2024
-
Mathematica
a={1,7,7}; Print["7"]; Print["7"]; For[n=3, n<=1000, n++, sum=Plus@@a; If[PrimeQ[sum], Print[sum]]; a=RotateLeft[a]; a[[3]]=sum]
Extensions
7 inserted as a(1) by Robert Israel, Sep 02 2024
Comments