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”).

A039713
a(n) = n-th prime modulo 15.
4
2, 3, 5, 7, 11, 13, 2, 4, 8, 14, 1, 7, 11, 13, 2, 8, 14, 1, 7, 11, 13, 4, 8, 14, 7, 11, 13, 2, 4, 8, 7, 11, 2, 4, 14, 1, 7, 13, 2, 8, 14, 1, 11, 13, 2, 4, 1, 13, 2, 4, 8, 14, 1, 11, 2, 8, 14, 1, 7, 11, 13, 8, 7, 11, 13, 2, 1, 7, 2, 4, 8, 14, 7, 13, 4, 8, 14, 7
OFFSET
1,1
LINKS
FORMULA
Sum_k={1..n} a(k) ~ (15/2)*n. - Amiram Eldar, Dec 12 2024
MAPLE
seq(ithprime(n) mod 15, n=1..100); # Nathaniel Johnston, Jun 29 2011
MATHEMATICA
Table[Mod[Prime[n], 15], {n, 100}] (* Nathaniel Johnston, Jun 29 2011 *)
Mod[Prime[Range[100]], 15] (* Vincenzo Librandi, May 06 2014 *)
PROG
(Sage) [mod(p, 15) for p in primes(500)] # Bruno Berselli, May 05 2014
(Magma) [p mod(15): p in PrimesUpTo(500)]; // Vincenzo Librandi, May 06 2014
KEYWORD
nonn,easy
STATUS
approved