login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A177771 Factorial of (prime(n) - 1). 6
1, 2, 24, 720, 3628800, 479001600, 20922789888000, 6402373705728000, 1124000727777607680000, 304888344611713860501504000000, 265252859812191058636308480000000 (list; graph; refs; listen; history; text; internal format)
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 18:05 EDT 2024. Contains 371962 sequences. (Running on oeis4.)