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!)
A004055 ((p-1)/2)! mod p for odd primes p. 3
1, 2, 6, 10, 5, 13, 18, 1, 12, 1, 31, 9, 42, 46, 23, 1, 11, 66, 1, 27, 78, 1, 34, 22, 91, 102, 1, 33, 15, 126, 130, 37, 1, 44, 1, 129, 162, 1, 80, 178, 162, 190, 81, 183, 198, 1, 1, 226, 122, 144, 1, 64, 1, 16, 262, 187, 1, 217, 53, 1, 138, 1, 1, 288, 114, 1, 189 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Values 1 correspond to primes listed in A058302. - Max Alekseyev, Oct 24 2023
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..9999 [b-file corrected by N. J. A. Sloane, Oct 04 2010]
MAPLE
a:= n-> (p-> ((p-1)/2)! mod p)(ithprime(n+1)):
seq(a(n), n=1..73); # Alois P. Heinz, Oct 25 2023
PROG
(PARI) lista(n)=forprime(p=3, n, print1(((p-1)/2)! % p, ", ")); \\ Michel Marcus, May 24 2013
(PARI) a(n, p=prime(n+1))=lift(prod(k=2, p\2, k, Mod(1, p))) \\ Charles R Greathouse IV, May 01 2016
(Magma) [Factorial((p-1) div 2) mod p: p in PrimesInInterval(3, 350)]; // Vincenzo Librandi, May 01 2016
CROSSREFS
Sequence in context: A073662 A086553 A342068 * A077933 A144762 A141572
KEYWORD
nonn
AUTHOR
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 12:28 EDT 2024. Contains 371937 sequences. (Running on oeis4.)