A139206 Smallest son factorial prime p of order n: smallest p such that p!/n-1 is prime.
3, 3, 29, 5, 5, 5, 7, 11, 17, 5, 19, 7, 13, 7, 5, 37, 139, 19
Offset: 1
Programs
-
Mathematica
a = {}; Do[k = 1; While[ ! PrimeQ[(Prime[k]! - n)/n], k++ ]; Print[a]; AppendTo[a, Prime[k]], {n, 1, 100}]; a (*Artur Jasinski*)
-
PARI
a(n)=forprime(p=1,,p!%n==0 && ispseudoprime(p!/n-1) && return(p)) \\ - M. F. Hasler, Nov 03 2013
Extensions
Edited by M. F. Hasler, Nov 03 2013
Comments