OFFSET
1,6
COMMENTS
Conjecture: (i) a(n) > 0 for all n > 3. Moreover, every n = 6, 7, ... can be written as p + q - pi(q) with p, p + 6 and q all prime.
(ii) For each integer n > 7, there is a prime p < n with n + p - pi(p) prime.
(iii) Any integer n > 4 not equal to 9 or 17 can be written as p + q + pi(q) with p and q both prime.
(iv) Each integer n > 7 can be written as p + q + pi(p) + pi(q) with p and q both prime.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
Zhi-Wei Sun, Conjectures involving primes and quadratic forms, preprint, arXiv:1211.1588.
EXAMPLE
a(4) = 1 since 4 = 3 + 3 - pi(3) with 3 prime.
a(5) = 1 since 5 = 3 + 5 - pi(5) with 3 and 5 prime.
a(6) = 2 since 6 = 3 + 7 - pi(7) = 5 + 3 - pi(3) with 3, 5, 7 all prime.
a(7) = 1 since 7 = 5 + 5 - pi(5) with 5 prime.
a(11) = 1 since 11 = 5 + 11 - pi(11) with 5 and 11 both prime.
MATHEMATICA
PQ[n_]:=PQ[n]=n>2&&PrimeQ[n]
a[n_]:=Sum[If[PQ[n-Prime[k]+k], 1, 0], {k, 2, PrimePi[2n-2]}]
Table[a[n], {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Nov 23 2013
STATUS
approved