login
Numbers k such that k^k - (k-1)^k is prime.
3

%I #8 Mar 19 2020 08:24:33

%S 2,3,7,43,79,463,1277

%N Numbers k such that k^k - (k-1)^k is prime.

%C Each term of the sequence must be prime.

%H C. Rivera, <a href="https://www.primepuzzles.net/puzzles/puzz_185.htm">Puzzle 185</a>

%e 7 is in the sequence because 7^7 - 6^7 = 543607 is prime.

%o (PARI) isok(k) = ispseudoprime(k^k - (k-1)^k); \\ _Jinyuan Wang_, Mar 19 2020

%Y Cf. A072164, A072179, A073499.

%K nonn,more

%O 1,1

%A _Farideh Firoozbakht_, Jul 17 2003