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

A229786
a(n) = n-th prime modulo 23.
2
2, 3, 5, 7, 11, 13, 17, 19, 0, 6, 8, 14, 18, 20, 1, 7, 13, 15, 21, 2, 4, 10, 14, 20, 5, 9, 11, 15, 17, 21, 12, 16, 22, 1, 11, 13, 19, 2, 6, 12, 18, 20, 7, 9, 13, 15, 4, 16, 20, 22, 3, 9, 11, 21, 4, 10, 16, 18, 1, 5, 7, 17, 8, 12, 14, 18, 9, 15, 2, 4, 8, 14, 22, 5, 11, 15, 21, 6, 10, 18, 5, 7, 17, 19, 2, 6, 12, 20, 1, 3, 7, 19, 4, 8, 16, 20, 3, 15, 17, 12, 18, 5, 11, 17, 19, 2, 12, 18, 1, 3, 9, 15, 19, 21
OFFSET
1,1
COMMENTS
The formula k(n,p)=p mod n classifies prime numbers p(A000040) with n(A000027) in classes k, here n=23. Other examples for n=2,3,4,... are in the cross reference. Another description of this sequence is a(n) = n-th prime modulo 23 or Prime(n) mod 23.
LINKS
FORMULA
k(n,p) = p mod n.
Sum_k={1..n} a(k) ~ (23/2)*n. - Amiram Eldar, Dec 12 2024
MATHEMATICA
Mod[Prime[Range[100]], 23] (* Vincenzo Librandi, May 07 2014 *)
PROG
(Magma) [p mod(23): p in PrimesUpTo(500)]; // Vincenzo Librandi, May 07 2014
CROSSREFS
Cf. similar sequences listed in A242119.
Sequence in context: A359373 A117094 A171057 * A242122 A074721 A242121
KEYWORD
nonn,easy
AUTHOR
Freimut Marschner, Sep 29 2013
STATUS
approved