OFFSET
0,1
COMMENTS
a(n) is the least k such that A356864(k) = n.
LINKS
Robert Israel, Table of n, a(n) for n = 0..500
EXAMPLE
a(3) = 15 because there are exactly 3 primes p <= 15 with 30-p and p*(30-p)+30 prime, namely 7, 11 and 13, and no smaller number works.
MAPLE
f:= proc(n) local p, q, t;
p:= 1: t:= 0:
do
p:= nextprime(p);
q:= n-p;
if q <= p then return t fi;
if isprime(q) and isprime(p*q+n) then t:= t+1 fi;
od
end proc:
V:= Array(0..100): V[0]:= 2: count:= 1:
for nn from 2 while count < 101 do
v:= f(2*nn);
if v > 100 then next fi;
if V[v] = 0 then count:= count+1; V[v]:= nn; fi;
od:
convert(V, list);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Sep 01 2022
STATUS
approved