[go: up one dir, main page]

login
A191717
Numbers n such that n*(n-1)^n-(n-1)*n^(n-1)+1 is prime.
1
3, 5, 18, 23, 78, 131, 177
OFFSET
1,1
EXAMPLE
a(1)=3 because 3*2^3-2*3^2+1=7 is prime, a(2)=5 because 5*4^5-4*5^4+1=2621 is prime.
PROG
(PARI) is(n)=ispseudoprime(n*(n-1)^n-(n-1)*n^(n-1)+1) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A249759 A358342 A039584 * A373405 A136131 A143546
KEYWORD
nonn,hard
AUTHOR
STATUS
approved