OFFSET
2,4
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 2..1000
MATHEMATICA
Table[Mod[Prime[n], n - 1], {n, 2, 100}] (* Vincenzo Librandi, Sep 11 2014 *)
PROG
(PARI) a(n) = prime(n) % (n-1) \\ Michel Marcus, Jun 12 2013
(Magma) [NthPrime(n) mod (n-1): n in [2..90]]; // Vincenzo Librandi, Sep 11 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Daniel Wild (wild(AT)edumath.u-strasbg.fr)
STATUS
approved