OFFSET
1,1
LINKS
EXAMPLE
20 = 2^2 + 4^2, so 20 is in the sequence.
MATHEMATICA
Select[Range[10^4], 1 == Catch@ Do[Do[If[#2[[i]]^2 + #2[[j]]^2 == #1, Throw[1]], {j, i + 1, #3}], {i, #3}] & @@ {#, Divisors[#], DivisorSigma[0, #]} &] (* Michael De Vlieger, Oct 10 2020 *)
PROG
(PARI) isok(m) = {my(d=divisors(m)); for (i=2, #d, for (j=1, i-1, if (d[i]^2+d[j]^2 == m, return (1)); ); ); } \\ Michel Marcus, Oct 07 2020
(Python)
from sympy import divisors, integer_nthroot
A337988_list = []
for n in range(1, 10**6):
for d in divisors(n):
if 2*d*d >= n:
break
a, b = integer_nthroot(n-d*d, 2)
if b and n % a == 0:
A337988_list.append(n)
break # Chai Wah Wu, Oct 30 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Oct 06 2020
EXTENSIONS
More terms from Michel Marcus, Oct 07 2020
STATUS
approved