OFFSET
1,3
COMMENTS
Let T(n) be the number of twin primes with average n. These are the high-water marks of the sequence T(n).
LINKS
N. J. A. Sloane, Transforms (The RECORDS transform returns both the high-water marks and the places where they occur).
MATHEMATICA
m = 10^4; tp = Select[Range[3, m, 2], PrimeQ[#] && Or @@ PrimeQ[# + {-2, 2}] &]; f[n_] := Module[{k = Length @ IntegerPartitions[n, {2}, tp]}, If[MemberQ[tp, n/2], k - 1, k]]; s = {}; fm = 0; Do[f1 = f[n]; If[f1 > fm, fm = f1; AppendTo[s, f1]], {n, 2, m/2, 2}]; Prepend[s, 0] (* Amiram Eldar, Jul 11 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
P. Michael Kielstra, Jul 04 2020
STATUS
approved