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

A109558
a(n) = If[Floor[2*Mod[(Prime[n + 1] - Prime[n])*PrimePi[n]/n, 8]] == 4, Prime[n]]
0
7, 13, 19, 47, 53, 61, 73, 83, 131, 359, 389, 401, 449, 479, 491, 691, 709, 787, 811, 829, 919, 1021, 1039, 1051, 1153, 1171, 1249, 1399, 1471, 1627, 1699, 1723, 1801, 1879, 2017, 2029, 2053, 2069, 2089, 2099, 2143, 2297, 2399, 2447, 2579, 2621
OFFSET
0,1
MATHEMATICA
a = Flatten[Table[If[Floor[2*Mod[(Prime[n + 1] - Prime[n])*PrimePi[n]/n, 8]] == 4, Prime[n], {}], {n, 1, 400}]]
CROSSREFS
Cf. A001359.
Sequence in context: A181938 A073648 A298737 * A108106 A231506 A165724
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jun 27 2005
STATUS
approved