OFFSET
1,1
COMMENTS
The sequence of generalized tetranacci numbers is defined as beginning with 1, 3, 7, 15. Subsequent terms are the sum of the previous four terms. Note that the sequence of these generalized tetranacci numbers has many more primes than the tetranacci sequence A000078 (whose prime indices are in A104534).
LINKS
Tony D. Noe and Jonathan Vos Post, Primes in Fibonacci n-step and Lucas n-step Sequences, J. of Integer Sequences, Vol. 8 (2005), Article 05.4.4
MATHEMATICA
a={-1, -1, -1, 4}; Do[s=Plus@@a; a=RotateLeft[a]; a[[4]]=s; If[PrimeQ[s], Print[n]], {n, 30000}]
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Mar 16 2005
STATUS
approved