OFFSET
1,2
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1835
EXAMPLE
28 is a term because 28*(28-tau(28))/sigma(28) = 28*(28-6)/56 = 11 (integer).
MATHEMATICA
Select[Range[10^5], IntegerQ[#1 (#1 - #2)/#3] & @@ Prepend[DivisorSigma[{0, 1}, #], #] &] (* Michael De Vlieger, Mar 24 2019 *)
PROG
(Magma) [n: n in [1..1000000] | IsIntegral((n - NumberOfDivisors(n)) * n / SumOfDivisors(n))]
(PARI) isok(m) = frac(m*(m-numdiv(m))/sigma(m)) == 0; \\ Michel Marcus, Mar 25 2019
(Python)
from itertools import count, islice
from math import prod
from functools import reduce
from sympy import factorint
def A325020_gen(startvalue=1): # generator of terms >= startvalue
for n in count(max(startvalue, 1)):
f = factorint(n)
s = prod((p**(e+1)-1)//(p-1) for p, e in f.items())
if not (n-reduce(lambda x, y:x*y%s, (e+1 for e in f.values()), 1))*n%s:
yield n
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Mar 24 2019
STATUS
approved