A305534 Index of the smallest prime in the n-Fibonacci sequence, or the Lucas U(n,-1) sequence.
3, 2, 2, 3, 2, 3, 2, 5, 29, 3, 2, 5, 2, 3, 23, 3, 2, 7, 2, 3, 29, 19, 2, 3, 83, 3, 53, 19, 2, 5, 2, 5, 5, 5479, 71, 3, 2, 17, 11, 3, 2, 37, 2, 31, 5, 11, 2, 5
Offset: 1
Crossrefs
Cf. A001605, A096650, A209493, which are the indices of the primes in the n-Fibonacci sequence for n = 1, 2, 3.
Cf. A000045, A000129, A006190, A001076, A052918, A005668, A054413, A041025, A099371, A041041, A049666, A041061 (the n-Fibonacci sequence for n = 1 to 12).
Cf. A302990 (for n-step Fibonacci sequence instead of n-Fibonacci sequence).
Programs
-
PARI
b(n,k)=([n,1;1,0]^k)[1,2] a(n)=for(k=1,2^12,if(ispseudoprime(b(n,k)),return(k)))
Extensions
a(34)-a(48) from Giovanni Resta, Jun 06 2018
Comments