OFFSET
1,1
COMMENTS
a(n) = 0 is confirmed for k <= 5000. (Which means that the zeros are at present only conjectural. - N. J. A. Sloane, May 26 2014)
If a(i) = j, then a(j) <= i for all i and j.
EXAMPLE
(2^2-1^1)/(2-1) = 3 is prime. Thus a(1) = 2.
PROG
(PARI) a(n)=for(k=1, 5000, if(k!=n, s=(k^k-n^n)/(k-n); if(floor(s)==s, if(ispseudoprime(s), return(k)))))
n=1; while(n<100, print(a(n)); n+=1)
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Derek Orr, May 25 2014
EXTENSIONS
We don't normally allow conjectural terms, except in special circumstances. This is one of those exceptions, for if we included only terms that are known for certain, not much of this sequence would remain. - N. J. A. Sloane, May 31 2014
STATUS
approved