|
|
A361436
|
|
Primes of the form k! - Sum_{i=1..k-1} (-1)^(k-i)*i!.
|
|
1
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Primes of the form k! + A005165(k - 1).
|
|
LINKS
|
|
|
EXAMPLE
|
139 is in the sequence because it is 5! + (4! - 3! + 2! - 1!).
|
|
PROG
|
(PARI) \\ here b(n) is n! + A005165(n-1).
b(n) = {n! - sum(i=1, n-1, (-1)^(n-i)*i!)}
{ for(k=1, 150, if(ispseudoprime(b(k)), print1(b(k), ", "))) } \\ Andrew Howroyd, Mar 12 2023
|
|
CROSSREFS
|
|
|
KEYWORD
|
hard,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|