login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A242796 Least number k such that (k^k-n)/(k-n) is prime, or 0 if no such k exists. 0

%I

%S 2,4,6,5,0,13,9,11,0,12,22,13,37,28,36,0,0,171,73,85,0,0,0,29,0,0,0,0,

%T 517,35,40,49,44,49,0,41,46,40,0,0,51,0,52,0,0,0,0,0,0,0,0,0,2841,0,0,

%U 0,0,0,0,67,0,64,0,199,125,221,0,0,153,113,239,0,97,0,0,0

%N Least number k such that (k^k-n)/(k-n) is prime, or 0 if no such k exists.

%C a(n)=0 is confirmed for k <= 5000.

%e (1^1-2)/(1-2) = 1 is not prime. (3^3-2)/(3-2) = 25 is not prime. (4^4-2)/(4-2) = 254/2 = 127 is prime. Thus a(2) = 4.

%o (PARI) a(n)=for(k=1,5000,if(k!=n,s=(k^k-n)/(k-n);if(floor(s)==s,if(ispseudoprime(s),return(k)))));

%o n=1;while(n<100,print(a(n));n+=1)

%Y Cf. A242787, A242788.

%K nonn,more,hard

%O 1,1

%A _Derek Orr_, May 22 2014

%E 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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 2 18:09 EDT 2020. Contains 334787 sequences. (Running on oeis4.)