A236169 Numbers n such that n!*3^n + 1 is prime.
0, 2, 3, 8, 13, 19, 124, 199, 288, 359, 692, 3610, 5316, 5372, 7442, 8251, 14288, 16883, 17131
Offset: 1
Programs
-
Mathematica
Do[f=n!*3^n+1;If[PrimeQ[f],Print[{n,f}]],{n,0,25000}]
-
PARI
isok(n) = isprime(n!*3^n + 1); \\ Michel Marcus, Jul 23 2017
Extensions
a(1)=0 prepended by Robert Price, Jul 22 2017
Comments