OFFSET
1,5
COMMENTS
Conjecture: a(n) > 0 for all n > 1. Also, any integer n > 3 can be written as x + y with 0 < x <= y such that x!*y -1 is prime.
We have verified the conjecture for n up to 10^6.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..2000
EXAMPLE
a(9) = 1 since 9 = 3 + 6 with 3!*6 + 1 = 37 prime.
a(12) = 1 since 12 = 4 + 8 with 4!*8 + 1 = 193 prime.
MATHEMATICA
a[n_]:=Sum[If[PrimeQ[x!*(n-x)+1], 1, 0], {x, 1, n/2}]
Table[a[n], {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Nov 11 2013
STATUS
approved