OFFSET
0,2
COMMENTS
a(n) is the least solution of A340728(k) = n.
EXAMPLE
a(3) = 18 because there are 3 such divisors of 18, namely 1,2,3: 18/1-1 = 17, 18/2-2 = 7 and 18/3-3 = 3, and 18 is the least number with 3 such divisors.
MAPLE
f:= proc(n) local D, i, m;
D:= sort(convert(numtheory:-divisors(n), list));
m:= nops(D);
nops(select(i -> isprime(D[m+1-i]-D[i]), [$1..(m+1)/2]));
end proc:
N:= 30: # for a(0)..a(N)
V:= Array(0..N): count:= 0:
for n from 1 while count < N+1 do
v:= f(n);
if v <= N and V[v]=0 then count:= count+1; V[v]:= n fi
od:
convert(V, list);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jan 17 2021
STATUS
approved