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!)
A004650 a(n) = prime(n) mod (n+1). 2
0, 0, 1, 2, 5, 6, 1, 1, 3, 7, 7, 11, 13, 13, 15, 2, 5, 4, 7, 8, 7, 10, 11, 14, 19, 20, 19, 20, 19, 20, 31, 32, 1, 34, 5, 3, 5, 7, 7, 9, 11, 9, 15, 13, 13, 11, 19, 27, 27, 25, 25, 27, 25, 31, 33, 35, 37, 35, 37, 37, 35, 41, 51, 51, 49, 49, 59, 61, 67, 65, 65, 67 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
MATHEMATICA
Table[Mod[Prime[n], n + 1], {n, 1, 90}] (* 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 [1..90]]; // Vincenzo Librandi, Sep 11 2014
CROSSREFS
Sequence in context: A196550 A011037 A111987 * A138279 A131800 A086038
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Daniel Wild (wild(AT)edumath.u-strasbg.fr)
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 March 19 03:33 EDT 2024. Contains 370952 sequences. (Running on oeis4.)