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
Vincenzo Librandi, Table of n, a(n) for n = 1..80
FORMULA
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
KEYWORD
nonn
AUTHOR
Giovanni Teofilatto, May 13 2010
STATUS
approved