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

A364807
Numbers k such that abs(k - Sum_{m=2..k} pi(prime(k)/m)) is a prime number, where pi(k) is number of primes <= k.
0
2, 3, 5, 6, 8, 9, 18, 19, 21, 26, 29, 34, 48, 50, 56, 63, 69, 79, 84, 87, 95, 97, 99, 101, 110, 111, 132, 134, 139, 149, 151, 157, 160, 163, 164, 168, 171, 187, 201, 204, 209, 220, 222, 226, 227, 231, 244, 250, 256, 258, 268, 276, 282, 290, 292, 294, 296, 306
OFFSET
0,1
COMMENTS
Inspired by Ramanujan primes A104272.
Primes in common with A104272 are 2, 29, 97, 101, 149, 151, 227, ...; of those, the first twin prime pair is (149, 151).
pi(a(n)) ~ a(n)/log_2(n), where pi(a(n)) is number of primes <= a(n).
EXAMPLE
k=6 is a term: abs(6 - Sum_{m=2..6} pi(prime(k)/m)) = abs(6 - 3 - 2 - 2 - 1 - 1) = abs(-3) = 3, which is prime.
MATHEMATICA
Select[Range[320], PrimeQ[Abs[# - Sum[PrimePi[Prime[#]/m], {m, 2, #}]]] &] (* Amiram Eldar, Aug 08 2023 *)
CROSSREFS
Sequence in context: A117522 A299101 A335658 * A294941 A028374 A050578
KEYWORD
nonn,easy
AUTHOR
Saish S. Kambali, Aug 08 2023
STATUS
approved