OFFSET
1,1
COMMENTS
A069496 is a subsequence.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..5000
EXAMPLE
3 is a term because 3 + 5 = 2^3.
17 is a term because 17 + 19 = 6^2.
107 is a term because 107 + 109 = 6^3.
139967 is a term because 139967 + 139969 = 6^7.
PROG
(PARI) t(n, p=3) = { while( p+2 < (p=nextprime( p+1 )) || n-->0, ); p-2}
for(n=1, 1e4, if(ispower(2*t(n)+2), print1(t(n), ", ")));
(Magma) [p:p in PrimesUpTo(1300000)|IsPrime(p+2) and IsPower(2*p+2)]; // Marius A. Burtea, Dec 20 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Mar 13 2016
STATUS
approved