OFFSET
0,2
COMMENTS
a(n) is the least k such that there are exactly n primes of the form 2*prime(i)+prime(k) for i < k.
LINKS
Robert Israel, Table of n, a(n) for n = 0..690
EXAMPLE
MAPLE
f:= proc(n) local i, p;
p:= ithprime(n);
numboccur(true, map(isprime, [seq(2*ithprime(i)+p, i=1..n-1)]))
end proc:
A:= map(f, [$1..2000]):
V:= Array(0..200):
for i from 1 to 2000 do
if A[i]<=200 and V[A[i]] = 0 then V[A[i]]:= i fi
od:
convert(V, list);
MATHEMATICA
p = Prime[n];
q = Select[Range[p - 1], PrimeQ];
Count[p + 2 q, _?PrimeQ]];
a[n_] := For[k = 1, True, k++, If[A344793[k] == n, Return[k]]];
Table[a[n], {n, 0, 100}] (* Jean-François Alcover, May 16 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, May 28 2021
STATUS
approved