OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..300
EXAMPLE
a(3) = 15 is a term because the sum of prime factors of 15 is 3+5 = 8 and 15^2 + 8^2 = 289 = 17^2.
MAPLE
sopfr:= proc(n) local t; add(t[1]*t[2], t=ifactors(n)[2]) end proc:
filter:= t -> issqr(t^2 + sopfr(t)^2):
select(filter, [$1..10^5]);
MATHEMATICA
Sopfr[1]=0; Sopfr[n_]:= Plus @@ Times @@@ FactorInteger@ n; Select[Range[500000], IntegerQ[Sqrt[#^2+Sopfr[#]^2]]&] (* James C. McMahon, Aug 14 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Aug 12 2025
STATUS
approved
