OFFSET
1,1
EXAMPLE
82 = 2*41, 41-2 = 39 = 3*13, 13-3 = 10 = 2*5 but 5-2 = 3 is not a squarefree semiprime.
106 = 2*53, 53-2 = 51 = 3*17, 17-3 = 14 = 2*7 but 7-2 = 5 is not a squarefree semiprime.
MAPLE
with(numtheory): P:=proc(n, h) local a, j, ok; ok:=1; a:=n; for j from 1 to h doif issqrfree(a) and nops(factorset(a))=2 then a:=ifactors(a)[2]; a:=a[1][1]-a[2][1]; else ok:=0; break; fi; od; if ok=1 then n; fi; end: seq(P(i, 3), i=1..2*10^3);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Dec 21 2017
STATUS
approved