A219842
Number of ways to write n as x+y (0
0, 1, 1, 1, 1, 3, 1, 1, 4, 2, 2, 4, 2, 2, 7, 4, 1, 3, 4, 5, 5, 4, 2, 8, 2, 7, 4, 2, 8, 11, 5, 3, 8, 7, 5, 14, 7, 5, 10, 8, 7, 8, 4, 8, 9, 5, 4, 11, 6, 11, 14, 5, 3, 19, 12, 7, 11, 6, 9, 12, 13, 8, 9, 10, 12, 16, 5, 6, 22, 8, 11, 11, 5, 10, 26, 15, 5, 11, 15, 10
Offset: 1
Keywords
Examples
a(10)=2 since 10=1+9=3+7 with 2*1*9+1=19 and 2*3*7+1=43 both prime.
Links
- Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
- Zhi-Wei Sun, Conjectures involving primes and quadratic forms, arXiv:1211.1588.
Programs
-
Mathematica
a[n_] := a[n] = Sum[If[PrimeQ[2k(n-k)+1] == True, 1, 0], {k, n/2}]; Do[Print[n," ", a[n]], {n, 100}]
Comments