A113188 Primes that are the difference of two Fibonacci numbers; primes in A007298.
2, 3, 5, 7, 11, 13, 19, 29, 31, 47, 53, 89, 131, 139, 199, 233, 521, 607, 953, 1453, 1597, 2207, 2351, 2579, 3571, 6763, 9349, 10891, 28513, 28649, 28657, 42187, 44771, 46279, 75017, 189653, 317777, 514229, 1981891, 2177699, 3010349, 3206767
Offset: 1
Keywords
Examples
The prime 139 is here because it is F(12)-F(5).
Links
- T. D. Noe, Table of n, a(n) for n = 1..1000
Crossrefs
Programs
-
Mathematica
lst={}; Do[p=Fibonacci[n]-Fibonacci[i]; If[PrimeQ[p], AppendTo[lst, p]], {n, 2, 40}, {i, n-1}]; Union[lst] Select[Union[Flatten[Differences/@Subsets[Fibonacci[Range[50]],{2}]]],PrimeQ] (* Harvey P. Dale, Aug 04 2024 *)
-
PARI
list(lim)=my(v=List(),F=vector(A130233(lim),i,fibonacci(i)),s,t); for(i=1,#F, s=0; forstep(j=i,1,-1, s+=F[j]; if(s>lim, break); if(isprime(s), listput(v,s)))); Set(v) \\ Charles R Greathouse IV, Oct 07 2016
Comments