OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
PROG
(PARI) k(n, m) = forprime(x=2, n, if(ispower(x+m), print1(x", "))) ispower(n) = { local(p, r, j); r = sqrt(n); for(j=2, floor(r), p = floor(log(n)/log(j)+.5); if(j^p ==n, return(1)); ); return(0) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Jun 10 2004
EXTENSIONS
Comment deleted by Zak Seidov, Apr 17 2013
STATUS
approved