OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..249
EXAMPLE
a(4) = 36 because 4 = (17+31)/(5+7) where 17,31,5,7 are primes and 36-17 = 19, 36-31 = 5, 36-5 = 31 and 36-7 = 29 are primes, and 36 is the least number k for which such primes exist.
MAPLE
f:= proc(n) local P, i, c1, c2;
P:= select(t -> isprime(t) and isprime(n-t), {seq(i, i=3..n, 2)});
select(type, {seq(seq(convert(c1, `+`)/convert(c2, `+`), c1 = combinat:-choose(P minus c2, 2)), c2 = combinat:-choose(P, 2))}, integer)
end proc:
N:= 70: # for a(1)..a(N)
V:= Vector(N): count:= 0:
for n from 2 by 2 while count < N do
for v in f(n) do
if v <= N and V[v] = 0 then V[v]:= n; count:= count+1 fi
od od:
convert(V, list);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Feb 07 2021
STATUS
approved