A109080 Numbers n such that 5^n - 2 is prime.
1, 2, 14, 26, 50, 126, 144, 260, 624, 1424, 10472, 19784, 24558, 797390
Offset: 1
Examples
5^14 - 2 = 6103515623 is prime, hence 14 is in the sequence.
Links
- F. Firoozbakht, M. F. Hasler, Variations on Euclid's formula for Perfect Numbers, JIS 13 (2010) #10.3.1
Programs
-
Mathematica
Do[If[PrimeQ[5^n - 2], Print[n]], {n, 1, 18000}]
-
PARI
for(n=1, 10^5, if(ispseudoprime(5^n-2), print1(n, ", "))) \\ Felix Fröhlich, Jun 05 2014
Extensions
Two more terms from Ryan Propper, Dec 10 2008
a(14) from Paul Bourdelais, Mar 03 2021
Comments