login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A238386 a(n) = |{0 < k < n-1: p = prime(k) + pi(n-k) and p + 2 are both prime}|, where pi(.) is given by A000720. 3
0, 0, 1, 0, 1, 2, 1, 0, 0, 0, 1, 1, 2, 2, 1, 2, 1, 2, 3, 2, 3, 3, 2, 3, 2, 2, 2, 2, 3, 1, 1, 2, 2, 3, 2, 1, 2, 1, 1, 3, 3, 2, 1, 1, 3, 3, 5, 5, 2, 2, 2, 3, 4, 5, 5, 4, 3, 2, 2, 2, 3, 2, 3, 4, 1, 3, 4, 3, 4, 6, 7, 6, 3, 2, 2, 2, 3, 4, 5, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
COMMENTS
Conjecture: (i) a(n) > 0 for all n > 10.
(ii) For any integer n > 4, there is a positive integer k < n such that prime(k)^2 + pi(n-k)^2 is prime.
We have verified part (i) of the conjecture for n up to 10^7.
LINKS
EXAMPLE
a(7) = 1 since prime(1) + pi(7-1) = 2 + 3 = 5 and 5 + 2 = 7 are both prime.
a(30) = 1 since prime(16) + pi(30-16) = 53 + 6 = 59 and 59 + 2 are both prime.
a(108) = 1 since prime(15) + pi(108-15) = 47 + 24 = 71 and 71 + 2 = 73 are both prime.
MATHEMATICA
tq[n_]:=PrimeQ[n]&&PrimeQ[n+2]
a[n_]:=Sum[If[tq[Prime[k]+PrimePi[n-k]], 1, 0], {k, 1, n-2}]
Table[a[n], {n, 1, 80}]
CROSSREFS
Sequence in context: A301367 A334090 A179195 * A064662 A352193 A024944
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Feb 26 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 17:08 EDT 2024. Contains 371749 sequences. (Running on oeis4.)