A230494 Number of ways to write n = x^2 + y (x, y >= 0) with 2*y^2 - 1 prime.
0, 1, 2, 2, 1, 2, 3, 3, 1, 2, 4, 3, 2, 2, 3, 2, 3, 3, 4, 2, 2, 5, 2, 3, 3, 4, 3, 3, 4, 1, 3, 2, 3, 3, 2, 2, 3, 5, 3, 5, 2, 5, 6, 3, 3, 5, 5, 1, 4, 6, 4, 4, 5, 4, 3, 3, 4, 3, 5, 4, 4, 3, 4, 5, 3, 5, 4, 5, 1, 5, 4, 4, 4, 5, 4, 1, 6, 3, 3, 3, 5, 4, 2, 3, 8, 3, 4, 6, 6, 2, 4, 7, 1, 4, 4, 5, 1, 6, 5, 3
Offset: 1
Keywords
Examples
a(9) = 1 since 9 = 1^2 + 8 with 2*8^2 - 1 = 127 prime. a(69) = 1 since 69 = 0^2 + 69 with 2*69^2 - 1 = 9521 prime. a(76) = 1 since 76 = 0^2 + 76 with 2*76^2 - 1 = 11551 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.
Programs
-
Mathematica
a[n_]:=Sum[If[PrimeQ[2(n-x^2)^2-1],1,0],{x,0,Sqrt[n]}] Table[a[n],{n,1,100}]
Comments