OFFSET
1,4
COMMENTS
Conjecture: a(n) > 0 for all n > 0. Moreover, if n > 0 is not among 1, 3, 60, then there are positive integers x and y with x*(x+1)/2 + y = n such that y*(y+1)/2 + 1 is prime.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
Zhi-Wei Sun, On sums of primes and triangular numbers, J. Comb. Number Theory 1(2009), 65-76.
Zhi-Wei Sun, Conjectures involving primes and quadratic forms, preprint, arXiv:1211.1588 [math.NT], 2012-2017.
EXAMPLE
a(6) = 1 since 6 = 2*3/2 + 3 with 3*4/2 + 1 = 7 prime.
a(60) = 1 since 60 = 0*1/2 + 60 with 60*61/2 + 1 = 1831 prime.
MATHEMATICA
T[n_]:=n(n+1)/2
a[n_]:=Sum[If[PrimeQ[T[n-T[i]]+1], 1, 0], {i, 0, (Sqrt[8n+1]-1)/2}]
Table[a[n], {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Oct 15 2013
STATUS
approved