login
A177771
Factorial of (prime(n) - 1).
6
1, 2, 24, 720, 3628800, 479001600, 20922789888000, 6402373705728000, 1124000727777607680000, 304888344611713860501504000000, 265252859812191058636308480000000
OFFSET
1,2
COMMENTS
By Wilson's theorem, a(n) = -1 (mod p) where p is the n-th prime. - Charles R Greathouse IV, Sep 04 2013
LINKS
FORMULA
a(n) = A010050(A005097(n-1)). a(n)^2= A177926(n). - R. J. Mathar, May 24 2010
MATHEMATICA
(Prime[Range[12]]-1)! (* Harvey P. Dale, Jul 12 2011 *)
PROG
(Magma) [Factorial(p-1): p in PrimesUpTo(20)]; // Vincenzo Librandi, May 31 2013
(PARI) apply(p->(p-1)!, primes(10)) \\ Charles R Greathouse IV, Sep 04 2013
CROSSREFS
Sequence in context: A186246 A012161 A009724 * A009396 A338188 A274634
KEYWORD
nonn
AUTHOR
Giovanni Teofilatto, May 13 2010
STATUS
approved