OFFSET
1,2
COMMENTS
a(1) = 0 is the only confirmed 0 in this sequence.
a(n) = 0 for n > 1 is confirmed for k < 10000.
If a(n) = m, then a(m) <= n for m > 0 and n > 0.
EXAMPLE
(2^1-1^2)/(1-2) = -1 is not prime.
(2^3-3^2)/(3-2) = -1 is not prime.
(2^4-4^2)/(4-2) = 0 is not prime.
(2^5-5^2)/(5-2) = 7/3 is not prime.
(2^6-6^2)/(6-2) = 7 is prime. Thus a(2) = 6.
PROG
(PARI)
a(n)=for(k=1, 10^4, if(k!=n, s=(n^k-k^n)/(k-n); if(floor(s)==s, if(ispseudoprime(s), return(k)))))
n=1; while(n<100, print1(a(n), ", "); n++)
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Jul 28 2014
STATUS
approved