OFFSET
1,1
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
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
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved