OFFSET
3,2
FORMULA
EXAMPLE
5 +- 0 -> primes, 14 +- 3 -> primes, 42 +- 1 -> primes, 132 +- 5 -> primes, ...
MAPLE
MATHEMATICA
g[n_]:=(2n)!/n!/(n+1)!; f[n_]:=Block[{k}, If[OddQ[n], k=0, k=1]; While[ !PrimeQ[n-k]||!PrimeQ[n+k], k+=2]; k]; Table[f[g[n]], {n, 3, 4*4!}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 09 2010
STATUS
approved