A303263 Indices of primes in tribonacci sequence A000073.
4, 6, 7, 11, 87, 98, 215, 802, 4202, 18699, 96879
Offset: 1
Crossrefs
Programs
-
Mathematica
-1 + Position[LinearRecurrence[{1, 1, 1}, {0, 0, 1}, 10^4], ?PrimeQ][[All, 1]] (* _Michael De Vlieger, Apr 21 2018 *)
-
PARI
a(n,N=4,S=vector(N,i,i>N-2))={for(i=N,oo,ispseudoprime(S[i%N+1]=2*S[(i-1)%N+1]-S[i%N+1])&&!n--&&return(i))}
Comments