login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A153426
a(n) = (n+1)! mod prime(n).
1
0, 0, 4, 1, 5, 9, 13, 18, 21, 11, 16, 17, 15, 41, 41, 7, 1, 42, 22, 6, 56, 78, 33, 21, 2, 73, 84, 12, 44, 59, 125, 109, 90, 53, 57, 96, 48, 118, 152, 128, 6, 82, 118, 75, 18, 110, 104, 214, 157, 82, 166, 212, 6, 84, 183, 261, 48, 189, 76, 125, 55, 23, 243, 300, 179, 47, 112, 163, 273
OFFSET
1,3
LINKS
MATHEMATICA
Table[Mod[(n+1)!, Prime[n]], {n, 70}] (* Harvey P. Dale, Jun 08 2014 *)
PROG
(Magma) [Factorial(n+1) mod NthPrime(n): n in [1..80]]; // Vincenzo Librandi, Aug 22 2016
CROSSREFS
Sequence in context: A243525 A300071 A155060 * A261720 A080852 A204201
KEYWORD
nonn
AUTHOR
STATUS
approved