OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 5 the 5th semiprime is 14=2*7, and the area of the triangle with vertices (1,2), (2,7) and (7,14) is a(5)=9.
MAPLE
N:= 1000: # for semiprimes <= N
SP:= select(t -> numtheory:-bigomega(t)=2, [$4..N]):
f:= proc(n) local p, q;
p, q:= (min, max)(numtheory:-factorset(n));
(q-1)*abs(p^2-q)/2
end proc:
map(f, SP);
MATHEMATICA
ar[{a_, b_}]:=Abs[Det[{{1, a, b}, {a, b, a b}, {1, 1, 1}}]]/2; ar/@(If[Length[#]==1, Flatten[ {#, #}], #]&/@(FactorInteger[#][[;; , 1]]&/@Select[Range[200], PrimeOmega[ #] == 2&])) (* Harvey P. Dale, Mar 05 2023 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
J. M. Bergot and Robert Israel, Dec 03 2020
STATUS
approved