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

A163603
Numbers k such that prime(k) == 5 (mod 7).
1
3, 8, 15, 18, 24, 27, 32, 40, 50, 55, 58, 65, 76, 78, 85, 91, 97, 99, 108, 111, 123, 125, 128, 130, 135, 149, 154, 158, 164, 170, 180, 184, 191, 194, 200, 203, 207, 214, 216, 227, 229, 237, 242, 246, 252, 260, 266, 271
OFFSET
1,1
COMMENTS
The asymptotic density of this sequence is 1/6 (by Dirichlet's theorem). - Amiram Eldar, Mar 01 2021
LINKS
FORMULA
a(n) = A000720(A045458(n)).
A000040(a(n)) = A045458(n).
MATHEMATICA
Select[Range[300], Mod[Prime[#], 7] == 5 &] (* G. C. Greubel, Jul 29 2017 *)
PROG
(PARI) isok(n) = (prime(n) % 7) == 5; \\ Michel Marcus, Jul 29 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Remainder in definition corrected by R. J. Mathar, Aug 01 2009
STATUS
approved