OFFSET
1,4
EXAMPLE
a(1)=0 because 2*composite(1)=composite(1-0)+composite(1+0)=4+4=8.
MATHEMATICA
Composite[n_Integer] := FixedPoint[n + PrimePi@# + 1 &, n + PrimePi@ n + 1]; f[n_] := Block[{k = n - 1, m = Composite@ n}, While[k > 0 && 2 m != Composite[n + k] + Composite[n - k], k--]; k]; Array[f, 75]
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Dec 26 2010, Dec 31 2010
STATUS
approved