OFFSET
1,1
COMMENTS
These abundant numbers along with their abundances form the legs of an integral Pythagorean triangle.
Odd terms are very rare: 19845 is the only one up to 10^9.
EXAMPLE
336 is a term because its abundance is 320 and 320^2 + 336^2 = 464^2.
MATHEMATICA
l={}; Do[a=DivisorSigma[1, n]-2*n; If[a>0&&IntegerQ@Sqrt[n^2+a^2], AppendTo[l, n]], {n, 12, 2*10^8}]; l
PROG
(PARI) for(n=12, 2*10^8, a=sigma(n)-2*n; a>0&&issquare(n^2+a^2)&&print1(n", "))
(Python)
import sympy as sp
for i in range(12, 200000000):
a=sp.ntheory.factor_.divisor_sigma(i) - 2*i
if a>0 and sp.ntheory.primetest.is_square(i*i+a*a):
print(i, end=", ")
CROSSREFS
KEYWORD
nonn
AUTHOR
Waldemar Puszkarz, Oct 17 2024
STATUS
approved