OFFSET
1,1
EXAMPLE
104 is in the sequence as tau(104) = 8, sigma(104) = 210 and sigma(104) = 210 | 840 = (104 + 1) * 8 = (104 + 1) * tau(104).
MATHEMATICA
Select[Range[4, 2^20], And[CompositeQ[#1], Divisible[(#1 + 1)*#2, #3]] & @@ Prepend[DivisorSigma[{0, 1}, #], #] &] (* Michael De Vlieger, May 31 2025 *)
PROG
(PARI) is(n) = my(f = factor(n), nd = numdiv(f)); nd > 2 && ((n+1)*nd) % sigma(f) == 0
(Python)
from sympy import divisors, isprime
def ok(n): return n > 3 and not isprime(n) and (n+1)*len(d:=divisors(n))%sum(d) == 0
print([k for k in range(10**6) if ok(k)]) # Michael S. Branicky, May 31 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
David A. Corneth and Ivan N. Ianakiev, May 31 2025
STATUS
approved
